Spaces:
Sleeping
Sleeping
Update doors_fasterrcnn.py
Browse files- doors_fasterrcnn.py +4 -0
doors_fasterrcnn.py
CHANGED
|
@@ -297,6 +297,10 @@ def add_annotations_to_pdf(image, pdf_name, lines, sanda, char_width, line_midpo
|
|
| 297 |
tpl2 = (doubleD_bbox[i][2], doubleD_bbox[i][3])
|
| 298 |
tpl_derotated = fitz.Point(*tpl1) * derotationMatrix
|
| 299 |
tpl2_derotated = fitz.Point(*tpl2) * derotationMatrix
|
|
|
|
|
|
|
|
|
|
|
|
|
| 300 |
#coordinates_derotated = [tpl_derotated[0],tpl_derotated[1],tpl2_derotated[0],tpl2_derotated[1]]
|
| 301 |
x1, y1 = tpl_derotated
|
| 302 |
x2, y2 = tpl2_derotated
|
|
|
|
| 297 |
tpl2 = (doubleD_bbox[i][2], doubleD_bbox[i][3])
|
| 298 |
tpl_derotated = fitz.Point(*tpl1) * derotationMatrix
|
| 299 |
tpl2_derotated = fitz.Point(*tpl2) * derotationMatrix
|
| 300 |
+
print("Derotated tuples:")
|
| 301 |
+
print(tpl_derotated)
|
| 302 |
+
print("Derotated tuples 2:")
|
| 303 |
+
print(tpl2_derotated)
|
| 304 |
#coordinates_derotated = [tpl_derotated[0],tpl_derotated[1],tpl2_derotated[0],tpl2_derotated[1]]
|
| 305 |
x1, y1 = tpl_derotated
|
| 306 |
x2, y2 = tpl2_derotated
|