CZ3004Group27 / algo

Simulator and path planning algorithms
1 stars 0 forks source link

Wrong image format when input into `imagerec.infer.infer()` function #45

Closed Toefinder closed 2 years ago

Toefinder commented 2 years ago

cv2.imread(image_path) opens image_path as a BGR ndarray. Meanwhile the infer() function expects an RGB image format. This causes the yellow "5" target to be misclassified as the blue "S" target.