First time here? Check out the FAQ!
cv2.error: OpenCV(4.3.0) error: (-215:Assertion failed) ann.train(np.array(image, dtype=np.float32), cv2.ml.ROW_SAMPLE