Marthee commited on
Commit
b06a1da
·
verified ·
1 Parent(s): 1d3d10f

Update Counting_Columns_2_1.py

Browse files
Files changed (1) hide show
  1. Counting_Columns_2_1.py +1 -1
Counting_Columns_2_1.py CHANGED
@@ -206,7 +206,7 @@ def add_annotations_to_pdf(image, pdf_name, slctd_clm, columns_types_v):
206
  x, y = slctd_clm[i]
207
  p_midpoint = fitz.Point(x, y) * derotationMatrix
208
  annot = page.add_circle_annot(
209
- fitz.Rect(x - 10, y - 10, x + 10,y + 10) # Small circle
210
  )
211
  # ✅ Assign required Bluebeam metadata
212
  annot.set_colors(stroke=(1, 0, 0), fill=(1, 1, 1)) # Set stroke color and fill white
 
206
  x, y = slctd_clm[i]
207
  p_midpoint = fitz.Point(x, y) * derotationMatrix
208
  annot = page.add_circle_annot(
209
+ fitz.Rect(p_midpoint.x - 10, p_midpoint.y - 10, p_midpoint.x + 10,p_midpoint.y + 10) # Small circle
210
  )
211
  # ✅ Assign required Bluebeam metadata
212
  annot.set_colors(stroke=(1, 0, 0), fill=(1, 1, 1)) # Set stroke color and fill white