Spaces:
Sleeping
Sleeping
Update doors_fasterrcnn.py
Browse files- doors_fasterrcnn.py +1 -1
doors_fasterrcnn.py
CHANGED
|
@@ -339,7 +339,7 @@ def add_annotations_to_pdf(image, pdf_name, lines, sanda, char_width, line_midpo
|
|
| 339 |
else:
|
| 340 |
text = "Double Door"
|
| 341 |
# Create an annotation (sticky note)
|
| 342 |
-
annot = page.add_text_annot((p_midpoint.x p_midpoint.y), text)
|
| 343 |
annot.set_border(width=0.2, dashes=(1, 2)) # Optional border styling
|
| 344 |
annot.set_colors(stroke=(1, 0, 0), fill=None) # Set the stroke color to red
|
| 345 |
annot.update()
|
|
|
|
| 339 |
else:
|
| 340 |
text = "Double Door"
|
| 341 |
# Create an annotation (sticky note)
|
| 342 |
+
annot = page.add_text_annot((p_midpoint.x, p_midpoint.y), text)
|
| 343 |
annot.set_border(width=0.2, dashes=(1, 2)) # Optional border styling
|
| 344 |
annot.set_colors(stroke=(1, 0, 0), fill=None) # Set the stroke color to red
|
| 345 |
annot.update()
|