Marthee commited on
Commit
2dc288d
·
verified ·
1 Parent(s): e0ee72b

Update doors_fasterrcnn.py

Browse files
Files changed (1) hide show
  1. doors_fasterrcnn.py +1 -1
doors_fasterrcnn.py CHANGED
@@ -208,7 +208,7 @@ def main_run(pdf_fullpath, weights_path, pdf_name,pdfpath): ####pdf_fullpath her
208
  double_annotations = create_annotations("double door", double_info)
209
 
210
  # add_annotations_to_pdf(new_image, pdf_name, single_annotations, double_annotations)
211
- pdf_document=add_annotations_to_pdf(new_image, pdf_name, single_annotations, double_annotations)
212
 
213
  page=pdf_document[0]
214
  pix = page.get_pixmap() # render page to an image
 
208
  double_annotations = create_annotations("double door", double_info)
209
 
210
  # add_annotations_to_pdf(new_image, pdf_name, single_annotations, double_annotations)
211
+ pdf_document=add_annotations_to_pdf(img_pillow, pdf_name, single_annotations, double_annotations)
212
 
213
  page=pdf_document[0]
214
  pix = page.get_pixmap() # render page to an image