Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -119,8 +119,8 @@ def homography_show_three(flat_file, persp_file, json_file, xml_file):
|
|
| 119 |
|
| 120 |
# Resize + Headings
|
| 121 |
flat_rgb = add_heading(fit_to_box(cv2.cvtColor(flat_with_roi,cv2.COLOR_BGR2RGB),600,600), "Flat Image with JSON ROI")
|
| 122 |
-
roi_rgb = add_heading(fit_to_box(cv2.cvtColor(persp_roi,cv2.COLOR_BGR2RGB),600,600), "Perspective
|
| 123 |
-
xml_rgb = add_heading(fit_to_box(cv2.cvtColor(xml_gt_img,cv2.COLOR_BGR2RGB),600,600), "Perspective
|
| 124 |
|
| 125 |
# Side-by-side 1 row
|
| 126 |
combined = np.hstack([flat_rgb, roi_rgb, xml_rgb])
|
|
|
|
| 119 |
|
| 120 |
# Resize + Headings
|
| 121 |
flat_rgb = add_heading(fit_to_box(cv2.cvtColor(flat_with_roi,cv2.COLOR_BGR2RGB),600,600), "Flat Image with JSON ROI")
|
| 122 |
+
roi_rgb = add_heading(fit_to_box(cv2.cvtColor(persp_roi,cv2.COLOR_BGR2RGB),600,600), "Perspective Img with ROI(Homography)")
|
| 123 |
+
xml_rgb = add_heading(fit_to_box(cv2.cvtColor(xml_gt_img,cv2.COLOR_BGR2RGB),600,600), "Perspective Img with GT ROI")
|
| 124 |
|
| 125 |
# Side-by-side 1 row
|
| 126 |
combined = np.hstack([flat_rgb, roi_rgb, xml_rgb])
|