摄像头逻辑进行修改,更改分辨率进行快速的读取识别

This commit is contained in:
dxc
2026-02-06 11:28:48 +08:00
parent e027ebd4a9
commit 489e62e55b
7 changed files with 788 additions and 708 deletions

View File

@ -139,8 +139,8 @@ class LabelPrintService:
CURRENT_Y = LabelPrintService.TOP_MARGIN_PX
# --- A. 绘制条形码 (居中) ---
bc_w = int(35 * LabelPrintService.DOTS_PER_MM)
bc_h = int(7 * LabelPrintService.DOTS_PER_MM) # 高度
bc_w = int(37 * LabelPrintService.DOTS_PER_MM)
bc_h = int(8 * LabelPrintService.DOTS_PER_MM) # 高度
bc_img = LabelPrintService._generate_barcode_image(sku_code, bc_w, bc_h)