We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f03a08 commit ac44e0cCopy full SHA for ac44e0c
1 file changed
module/ocr/pp_ocr.py
@@ -80,7 +80,7 @@ def ocr(self, img, detect=True):
80
81
image = self._preprocess_image(image)
82
preds = self._predict(image)
83
- result = self._postprocess_text(preds)
+ result = self._postprocess_text(preds)[0]
84
return result
85
86
def atomic_ocr_for_single_lines(self, img_list, cand_alphabet=None, batch_size=10, batch_threshold=20, detect=True):
0 commit comments