Upload 2 files
Browse files- feature_solution.py +4 -4
feature_solution.py
CHANGED
|
@@ -616,13 +616,13 @@ def predict(entry, visualize=False) -> Tuple[np.ndarray, List[int]]:
|
|
| 616 |
mkpts_filtered_1 = mkpts_filtered_1[filtered_index]
|
| 617 |
|
| 618 |
|
| 619 |
-
save_image_with_keypoints(f'keypoints_{i}.png', np.array(good_entry['gestalt'][i]), mkpts_filtered_0, (255, 0, 0))
|
| 620 |
-
save_image_with_keypoints(f'keypoints_{j}.png', np.array(good_entry['gestalt'][j]), mkpts_filtered_1, (255, 0, 0))
|
| 621 |
|
| 622 |
# Line matching
|
| 623 |
line_0, line_1 = line_matcher(good_entry['gestalt'][i], good_entry['gestalt'][j], good_entry['depthcm'][i])
|
| 624 |
-
save_image_with_lines(f'line_{i}.png', np.array(good_entry['gestalt'][i]), line_0, (255, 0, 0))
|
| 625 |
-
save_image_with_lines(f'line_{j}.png', np.array(good_entry['gestalt'][j]), line_1, (255, 0, 0))
|
| 626 |
|
| 627 |
|
| 628 |
# Triangulation with matched keypoints
|
|
|
|
| 616 |
mkpts_filtered_1 = mkpts_filtered_1[filtered_index]
|
| 617 |
|
| 618 |
|
| 619 |
+
# save_image_with_keypoints(f'keypoints_{i}.png', np.array(good_entry['gestalt'][i]), mkpts_filtered_0, (255, 0, 0))
|
| 620 |
+
# save_image_with_keypoints(f'keypoints_{j}.png', np.array(good_entry['gestalt'][j]), mkpts_filtered_1, (255, 0, 0))
|
| 621 |
|
| 622 |
# Line matching
|
| 623 |
line_0, line_1 = line_matcher(good_entry['gestalt'][i], good_entry['gestalt'][j], good_entry['depthcm'][i])
|
| 624 |
+
# save_image_with_lines(f'line_{i}.png', np.array(good_entry['gestalt'][i]), line_0, (255, 0, 0))
|
| 625 |
+
# save_image_with_lines(f'line_{j}.png', np.array(good_entry['gestalt'][j]), line_1, (255, 0, 0))
|
| 626 |
|
| 627 |
|
| 628 |
# Triangulation with matched keypoints
|