Skip to content

Commit

Permalink
fill ocr result
Browse files Browse the repository at this point in the history
  • Loading branch information
aeon0 committed Feb 5, 2024
1 parent 3849497 commit a6721d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/ocr/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def image_to_text(img: np.ndarray, line_boxes: bool = False, do_pre_proc: bool =

if img is None or len(img) == 0:
Logger.warning("img provided to image_to_text() is empty!")
return OcrResult(), [] if line_boxes else ""
return OcrResult("", "", word_confidences=0, mean_confidence=0), [] if line_boxes else ""

if do_pre_proc:
pre_proced_img = pre_proc_img(img)
Expand Down

0 comments on commit a6721d9

Please sign in to comment.