Marthee commited on
Commit
f8f51bb
·
verified ·
1 Parent(s): 27cb15c

Update doors_fasterrcnn.py

Browse files
Files changed (1) hide show
  1. doors_fasterrcnn.py +4 -0
doors_fasterrcnn.py CHANGED
@@ -297,6 +297,10 @@ def add_annotations_to_pdf(image, pdf_name, lines, sanda, char_width, line_midpo
297
  tpl2 = (doubleD_bbox[i][2], doubleD_bbox[i][3])
298
  tpl_derotated = fitz.Point(*tpl1) * derotationMatrix
299
  tpl2_derotated = fitz.Point(*tpl2) * derotationMatrix
 
 
 
 
300
  #coordinates_derotated = [tpl_derotated[0],tpl_derotated[1],tpl2_derotated[0],tpl2_derotated[1]]
301
  x1, y1 = tpl_derotated
302
  x2, y2 = tpl2_derotated
 
297
  tpl2 = (doubleD_bbox[i][2], doubleD_bbox[i][3])
298
  tpl_derotated = fitz.Point(*tpl1) * derotationMatrix
299
  tpl2_derotated = fitz.Point(*tpl2) * derotationMatrix
300
+ print("Derotated tuples:")
301
+ print(tpl_derotated)
302
+ print("Derotated tuples 2:")
303
+ print(tpl2_derotated)
304
  #coordinates_derotated = [tpl_derotated[0],tpl_derotated[1],tpl2_derotated[0],tpl2_derotated[1]]
305
  x1, y1 = tpl_derotated
306
  x2, y2 = tpl2_derotated