Hayk Arutyunyan commited on
Commit
baa8934
·
1 Parent(s): 0e66bfe

Add print for roi and ocr_results

Browse files
Files changed (1) hide show
  1. src/ocr_utils_demo.py +2 -1
src/ocr_utils_demo.py CHANGED
@@ -61,7 +61,8 @@ def ocr_sensors(rois: list[np.ndarray]) -> list[dict]:
61
  return results
62
 
63
  try:
64
- ocr_results = paddle_ocr.predict(rois)
 
65
  except Exception as e:
66
  print(f"⚠ Ошибка OCR.predict: {e}")
67
  return [{"text": "?", "score": 0.0} for _ in rois]
 
61
  return results
62
 
63
  try:
64
+ ocr_results = paddle_ocr.ocr(rois)
65
+ print(ocr_results) # для отладки
66
  except Exception as e:
67
  print(f"⚠ Ошибка OCR.predict: {e}")
68
  return [{"text": "?", "score": 0.0} for _ in rois]