Spaces:
Runtime error
Runtime error
Commit
·
d62afa0
1
Parent(s):
4a4cc2c
Update app.py
Browse files
app.py
CHANGED
@@ -156,13 +156,13 @@ def detect_Custom(img,model,boundedImage):
|
|
156 |
plt.figure(figsize = (10,20))
|
157 |
|
158 |
fig, ax = plt.subplots(figsize=(10, 20))
|
159 |
-
keras_ocr.tools.drawAnnotations(image=images[0], predictions=prediction_groups[0], ax=ax)
|
160 |
if save_txt or save_img:
|
161 |
s = f"\n{len(list(save_dir.glob('labels/*.txt')))} labels saved to {save_dir / 'labels'}" if save_txt else ''
|
162 |
|
163 |
print(f'Done. ({time.time() - t0:.3f}s)')
|
164 |
|
165 |
-
return Image.fromarray(im0[:,:,::-1]), keras_ocr.tools.drawAnnotations(image=images[0], predictions=prediction_groups[0], ax=ax)
|
166 |
|
167 |
|
168 |
|
|
|
156 |
plt.figure(figsize = (10,20))
|
157 |
|
158 |
fig, ax = plt.subplots(figsize=(10, 20))
|
159 |
+
#keras_ocr.tools.drawAnnotations(image=images[0], predictions=prediction_groups[0], ax=ax)
|
160 |
if save_txt or save_img:
|
161 |
s = f"\n{len(list(save_dir.glob('labels/*.txt')))} labels saved to {save_dir / 'labels'}" if save_txt else ''
|
162 |
|
163 |
print(f'Done. ({time.time() - t0:.3f}s)')
|
164 |
|
165 |
+
return Image.fromarray(im0[:,:,::-1]), keras_ocr.tools.drawAnnotations(image=images[0], predictions=prediction_groups[0], ax=ax)
|
166 |
|
167 |
|
168 |
|