Marthee commited on
Commit
2e4290e
·
verified ·
1 Parent(s): c69589f

Update Counting_Columns_2_1.py

Browse files
Files changed (1) hide show
  1. 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, image_height = image.size
 
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)