OpenCV Images not being Shown in Output
import cv2 as cv import matplotlib.pyplot as plt import numpy as np img1_path = ‘/home/marco/building_demo_test_set_1/DJI_20230927080749_0001_V.JPG’ img2_path = ‘/home/marco/building_demo_test_set_1/DJI_20230927080751_0002_V.JPG’ label1_path = ‘/home/marco/building_demo_test_set_1/labels/DJI_20230927080749_0001_V.txt’ label2_path = ‘/home/marco/building_demo_test_set_1/labels/DJI_20230927080751_0002_V.txt’ # Load images img1 = cv.imread(img1_path) img2 = cv.imread(img2_path) if img1 is None or img2 is None: print(“Error loading images”) exit() # Load labels def load_labels(label_path): with open(label_path, ‘r’) as file: […]