Closed Toefinder closed 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.
cv2.imread(image_path)
image_path
infer()
cv2.imread(image_path)
opensimage_path
as a BGR ndarray. Meanwhile theinfer()
function expects an RGB image format. This causes the yellow "5" target to be misclassified as the blue "S" target.