Spaces:
Sleeping
Sleeping
Update doors_fasterrcnn.py
Browse files- 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(
|
| 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
|