Ayesha352 commited on
Commit
0e14d57
·
verified ·
1 Parent(s): 493e736

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -119,9 +119,9 @@ def homography_all_detectors(flat_file, persp_file, json_file, xml_file):
119
  # 2. Perspective with Homography ROI
120
  roi_corners_persp = cv2.perspectiveTransform(roi_corners_flat.reshape(-1,1,2),H).reshape(-1,2)
121
  persp_roi = persp_img.copy()
122
- cv2.polylines(persp_roi,[roi_corners_persp.astype(int)],True,(255,255,0),5) #--------------------thicknes------------------------------------
123
  for px,py in roi_corners_persp:
124
- cv2.circle(persp_roi,(int(px),int(py)),5,(255,0,0),-1)
125
 
126
  # 3. Perspective with GT ROI (from XML)
127
  xml_gt_img = persp_img.copy()
 
119
  # 2. Perspective with Homography ROI
120
  roi_corners_persp = cv2.perspectiveTransform(roi_corners_flat.reshape(-1,1,2),H).reshape(-1,2)
121
  persp_roi = persp_img.copy()
122
+ cv2.polylines(persp_roi,[roi_corners_persp.astype(int)],True,(255,0,255),5) #--------------------thicknes------------------------------------
123
  for px,py in roi_corners_persp:
124
+ cv2.circle(persp_roi,(int(px),int(py)),5,(0,255,0),3)
125
 
126
  # 3. Perspective with GT ROI (from XML)
127
  xml_gt_img = persp_img.copy()