Spaces:
Sleeping
Sleeping
Update Counting_Columns_2_1.py
Browse files- Counting_Columns_2_1.py +2 -1
Counting_Columns_2_1.py
CHANGED
|
@@ -168,7 +168,8 @@ def generate_legend(found_tuple):
|
|
| 168 |
return df
|
| 169 |
|
| 170 |
def add_annotations_to_pdf(image, pdf_name, slctd_clm, columns_types_v):
|
| 171 |
-
image_width
|
|
|
|
| 172 |
|
| 173 |
# Create a new PDF document
|
| 174 |
pdf_document = fitz.open('pdf',pdf_name)
|
|
|
|
| 168 |
return df
|
| 169 |
|
| 170 |
def add_annotations_to_pdf(image, pdf_name, slctd_clm, columns_types_v):
|
| 171 |
+
image_width = image.shape[1]
|
| 172 |
+
image_height = image.shape[0]
|
| 173 |
|
| 174 |
# Create a new PDF document
|
| 175 |
pdf_document = fitz.open('pdf',pdf_name)
|