Hayk Arutyunyan commited on
Commit ·
387ddd5
1
Parent(s): 1f0ae0c
Fix OCR sensors: remove forced ROI height clamp (hh=17) causing unreadable ROIs
Browse files- src/pipeline_hf.py +3 -3
src/pipeline_hf.py
CHANGED
|
@@ -50,12 +50,12 @@ def process_single_image(img: np.ndarray, cfg_path: str | Path = "configs/config
|
|
| 50 |
if ww < 90 or hh < 17:
|
| 51 |
continue
|
| 52 |
|
| 53 |
-
hh_clamped = min(hh, 17)
|
| 54 |
|
| 55 |
-
roi = img_bgr[y:y +
|
| 56 |
|
| 57 |
rois.append(roi)
|
| 58 |
-
positions.append((x, y, ww,
|
| 59 |
|
| 60 |
# ---------- 3. OCR сенсоров ----------
|
| 61 |
sensors = []
|
|
|
|
| 50 |
if ww < 90 or hh < 17:
|
| 51 |
continue
|
| 52 |
|
| 53 |
+
#hh_clamped = min(hh, 17)
|
| 54 |
|
| 55 |
+
roi = img_bgr[y:y + hh, x:x + ww]
|
| 56 |
|
| 57 |
rois.append(roi)
|
| 58 |
+
positions.append((x, y, ww, hh))
|
| 59 |
|
| 60 |
# ---------- 3. OCR сенсоров ----------
|
| 61 |
sensors = []
|