Marthee commited on
Commit
dc685d9
·
verified ·
1 Parent(s): 936964b

Update doors_fasterrcnn.py

Browse files
Files changed (1) hide show
  1. 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=12, fontname="helv", text_color=(0,1,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=12, fontname="helv", text_color=(0,1,0))
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)