Skip to content

Commit dfba010

Browse files
committed
Fix: Method ocr should return flat array
1 parent 2f1380f commit dfba010

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module/ocr/pp_ocr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def ocr(self, img, detect=True):
8080

8181
image = self._preprocess_image(image)
8282
preds = self._predict(image)
83-
result = self._postprocess_text(preds)
83+
result = self._postprocess_text(preds)[0]
8484
return result
8585

8686
def atomic_ocr_for_single_lines(self, img_list, cand_alphabet=None, batch_size=10, batch_threshold=20, detect=True):

0 commit comments

Comments
 (0)