Compare the LBP in python
问题 I generated a texture image like this I have to compare two textures. I have used histogram comparison method. image_file = 'output_ori.png' img_bgr = cv2.imread(image_file) height, width, channel = img_bgr.shape hist_lbp = cv2.calcHist([img_bgr], [0], None, [256], [0, 256]) print("second started") image_fileNew = 'output_scan.png' img_bgr_new = cv2.imread(image_fileNew) height_new, width_new, channel_new = img_bgr_new.shape print("second lbp") hist_lbp_new = cv2.calcHist([img_bgr_new], [0],