Spaces:
Sleeping
Sleeping
Update doors_fasterrcnn.py
Browse files- doors_fasterrcnn.py +2 -2
doors_fasterrcnn.py
CHANGED
|
@@ -191,12 +191,12 @@ def add_annotations_to_pdf(image, pdf_name, annotation_s, annotation_d,width_ann
|
|
| 191 |
for annotation in width_ann_single:
|
| 192 |
x, y, text = annotation
|
| 193 |
rect = fitz.Rect(x, y, x + 200, y + 50) # Adjust the width and height as needed
|
| 194 |
-
annot = page.add_freetext_annot(rect, text, fontsize=
|
| 195 |
annot.update()
|
| 196 |
for annotation in width_ann_double:
|
| 197 |
x, y, text = annotation
|
| 198 |
rect = fitz.Rect(x, y, x + 200, y + 50) # Adjust the width and height as needed
|
| 199 |
-
annot = page.add_freetext_annot(rect, text, fontsize=
|
| 200 |
annot.update()
|
| 201 |
|
| 202 |
#Annotation kind of the line drawings (marra single we marra double)
|
|
|
|
| 191 |
for annotation in width_ann_single:
|
| 192 |
x, y, text = annotation
|
| 193 |
rect = fitz.Rect(x, y, x + 200, y + 50) # Adjust the width and height as needed
|
| 194 |
+
annot = page.add_freetext_annot(rect, text, fontsize=10, fontname="helv", text_color=(1,0,0))
|
| 195 |
annot.update()
|
| 196 |
for annotation in width_ann_double:
|
| 197 |
x, y, text = annotation
|
| 198 |
rect = fitz.Rect(x, y, x + 200, y + 50) # Adjust the width and height as needed
|
| 199 |
+
annot = page.add_freetext_annot(rect, text, fontsize=10, fontname="helv", text_color=(1,0,0))
|
| 200 |
annot.update()
|
| 201 |
|
| 202 |
#Annotation kind of the line drawings (marra single we marra double)
|