Sergey Mikhno
commited on
Commit
·
9cf899b
1
Parent(s):
ed533ad
read image
Browse files- app/app.py +1 -1
app/app.py
CHANGED
@@ -60,7 +60,7 @@ def doc_layout():
|
|
60 |
blocknames = [names[int(n)] for n in det_res[0].boxes.cls]
|
61 |
xyxy = [a.tolist() for a in det_res[0].boxes.xyxy]
|
62 |
res = [{"coords": y, "type": x} for x, y in zip(blocknames, xyxy)]
|
63 |
-
pimg = cv2.imread(filename
|
64 |
blocks = dict()
|
65 |
for i, r in enumerate(res):
|
66 |
if r["type"] == "plain text":
|
|
|
60 |
blocknames = [names[int(n)] for n in det_res[0].boxes.cls]
|
61 |
xyxy = [a.tolist() for a in det_res[0].boxes.xyxy]
|
62 |
res = [{"coords": y, "type": x} for x, y in zip(blocknames, xyxy)]
|
63 |
+
pimg = cv2.imread(filename)
|
64 |
blocks = dict()
|
65 |
for i, r in enumerate(res):
|
66 |
if r["type"] == "plain text":
|