EC2 Default User
commited on
Commit
•
c4c5de7
1
Parent(s):
b7d1177
dont't draw text
Browse files
app.py
CHANGED
@@ -186,14 +186,14 @@ def visualize_cells(image, table_structures, cells):
|
|
186 |
text = new_text
|
187 |
|
188 |
cv2.rectangle(image, (x1, y1), (x2, y2), color=(0,255,0))
|
189 |
-
cv2.putText(image, str(row_num)+'-'+str(col_num), (x1, y1+30), cv2.FONT_HERSHEY_SIMPLEX, fontScale=1, color=(0,0,255))
|
190 |
|
191 |
# cv2.rectangle(empty_image, (x1, y1), (x2, y2), color=(0,0,255))
|
192 |
# cv2.putText(empty_image, str(row_num)+'-'+str(col_num), (x1-10, y1), cv2.FONT_HERSHEY_SIMPLEX, fontScale=1, color=(0,0,255))
|
193 |
# cv2.putText(empty_image, text, (x1, y1), cv2.FONT_HERSHEY_SIMPLEX, fontScale=1, color=(0,0,255))
|
194 |
draw.rectangle([(x1, y1), (x2, y2)], (255,255,255), (0,255,0))
|
195 |
-
draw.text((x1-20, y1), str(row_num)+'-'+str(col_num), (255,0,0), font=fontStyle)
|
196 |
-
draw.text((x1, y1), text, (0,0,255), font=fontStyle)
|
197 |
|
198 |
df = pd.DataFrame(data_rows)
|
199 |
df.columns = df.columns.astype(str)
|
|
|
186 |
text = new_text
|
187 |
|
188 |
cv2.rectangle(image, (x1, y1), (x2, y2), color=(0,255,0))
|
189 |
+
# cv2.putText(image, str(row_num)+'-'+str(col_num), (x1, y1+30), cv2.FONT_HERSHEY_SIMPLEX, fontScale=1, color=(0,0,255))
|
190 |
|
191 |
# cv2.rectangle(empty_image, (x1, y1), (x2, y2), color=(0,0,255))
|
192 |
# cv2.putText(empty_image, str(row_num)+'-'+str(col_num), (x1-10, y1), cv2.FONT_HERSHEY_SIMPLEX, fontScale=1, color=(0,0,255))
|
193 |
# cv2.putText(empty_image, text, (x1, y1), cv2.FONT_HERSHEY_SIMPLEX, fontScale=1, color=(0,0,255))
|
194 |
draw.rectangle([(x1, y1), (x2, y2)], (255,255,255), (0,255,0))
|
195 |
+
# draw.text((x1-20, y1), str(row_num)+'-'+str(col_num), (255,0,0), font=fontStyle)
|
196 |
+
# draw.text((x1, y1), text, (0,0,255), font=fontStyle)
|
197 |
|
198 |
df = pd.DataFrame(data_rows)
|
199 |
df.columns = df.columns.astype(str)
|