Spaces:
Running
Running
pragnakalp
commited on
Commit
•
e5a831d
1
Parent(s):
51b3915
Update app.py
Browse files
app.py
CHANGED
@@ -132,10 +132,10 @@ def generate_ocr(Method,img):
|
|
132 |
text_output = ocr_with_paddle(img)
|
133 |
|
134 |
new_data=img.reshape(img.shape)
|
135 |
-
print("^^^^^^^^^^^^^^^",new_data)
|
136 |
imge = Image.fromarray(new_data.astype(np.uint8),'RGB')
|
137 |
-
# imge.show()
|
138 |
add_csv = [Method,imge,text_output]
|
|
|
139 |
with open(DATA_FILE, "a") as f:
|
140 |
writer = csv.writer(f)
|
141 |
# write the data
|
|
|
132 |
text_output = ocr_with_paddle(img)
|
133 |
|
134 |
new_data=img.reshape(img.shape)
|
135 |
+
# print("^^^^^^^^^^^^^^^",new_data)
|
136 |
imge = Image.fromarray(new_data.astype(np.uint8),'RGB')
|
|
|
137 |
add_csv = [Method,imge,text_output]
|
138 |
+
print("^^^^^",add_csv)
|
139 |
with open(DATA_FILE, "a") as f:
|
140 |
writer = csv.writer(f)
|
141 |
# write the data
|