Skip to content

Commit 858fccd

Browse files
committed
Fix: Variable used before initialized in ocr method
1 parent ac44e0c commit 858fccd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

module/ocr/pp_ocr.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ def ocr(self, img, detect=True):
7777
image = img[y:y + h, x:x + w]
7878
else:
7979
image = img
80+
else:
81+
image = img
8082

8183
image = self._preprocess_image(image)
8284
preds = self._predict(image)

0 commit comments

Comments
 (0)