error(-215)
I've got this "error: (-215) _samples.type() == CV_32F in function cv::ml::SVMImpl::do_train",even if there is no data of the type of CV_32F
I've got this "error: (-215) _samples.type() == CV_32F in function cv::ml::SVMImpl::do_train",even if there is no data of the type of CV_32F
ok, that's a c++ assertion (you have to read it "the other way round").
_samples.type() should be CV_32F, but wasn't.
in other words, to train an SVM, you need a 2d numpy float array, with each feature being one row,
Asked: 2016-08-16 04:08:23 -0600
Seen: 3,380 times
Last updated: Aug 16 '16
Area of a single pixel object in OpenCV
Weird result while finding angle
cv2.perspectiveTransform() with Python
cv2 bindings incompatible with numpy.dstack function?
Getting single frames from video with python
Line detection and timestamps, video, Python
Different behaviour of OpenCV Python arguments in 32 and 64-bit systems