Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 77 |
-
persp_img = cv2.imread(persp_file
|
| 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"]
|