Ayesha352 commited on
Commit
7428a71
·
verified ·
1 Parent(s): c892605

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -73,8 +73,8 @@ def detect_and_match(img1_gray, img2_gray, method="SIFT", ratio_thresh=0.78):
73
 
74
  # ---------------- Main Homography Function ----------------
75
  def homography_all_detectors(flat_file, persp_file, json_file):
76
- flat_img = cv2.imread(flat_file.name)
77
- persp_img = cv2.imread(persp_file.name)
78
  mockup = json.load(open(json_file.name))
79
 
80
  roi_data = mockup["printAreas"][0]["position"]
 
73
 
74
  # ---------------- Main Homography Function ----------------
75
  def homography_all_detectors(flat_file, persp_file, json_file):
76
+ flat_img = cv2.imread(flat_file)
77
+ persp_img = cv2.imread(persp_file)
78
  mockup = json.load(open(json_file.name))
79
 
80
  roi_data = mockup["printAreas"][0]["position"]