Spaces:
Sleeping
Sleeping
Update doors_fasterrcnn.py
Browse files- doors_fasterrcnn.py +1 -1
doors_fasterrcnn.py
CHANGED
|
@@ -312,7 +312,7 @@ def add_annotations_to_pdf(image, pdf_name, lines, sanda, char_width, line_midpo
|
|
| 312 |
print(x2)
|
| 313 |
print("y2:")
|
| 314 |
print(y2)
|
| 315 |
-
rect = fitz.Rect(int(x1),
|
| 316 |
print("RECT:")
|
| 317 |
print(rect)
|
| 318 |
rect_annot = page.add_rect_annot(rect)
|
|
|
|
| 312 |
print(x2)
|
| 313 |
print("y2:")
|
| 314 |
print(y2)
|
| 315 |
+
rect = fitz.Rect(int(x1), int(y1), int(x2), int(y2))
|
| 316 |
print("RECT:")
|
| 317 |
print(rect)
|
| 318 |
rect_annot = page.add_rect_annot(rect)
|