any possible to detect object with cascade training model and HOG feature
I'm an newbie to OpenCV 3.2.0. recently I train a object detector via opencv_traincascade with HOG feature type. Then I write the code for detecting object.
HOGDescriptor hog_desc; if (hog_desc.load("hog-cascade.xml")) { Mat src, src_gray; src = imread("test.jpg"); cvtColor(src, src_gray, COLOR_RGB2GRAY); equalizedHist(src_gray, src_gray); vector<rect> foundLocations; hog_desc.detectMultiScale(src_gray, foundLocations); }
the last line of code raises the error OpenCV Error: Assertion failed( dsize.area() > 0 || (inv_scale_x > 0 && inv_scale_y > 0)) in size, file .../opencv/modules/imgproc/src/imgwarp.cpp, line 3493
my question is HOG detector was removed from opencv 3.2?
it seems, you're confusing HOG cascades and the HOG descriptor.
HOG feature was remove quietly from cascade classifier without any comment in 3.2.0 release note.