cansik / opencv-processing

OpenCV for Processing. A creative coding computer vision library based on the official OpenCV Java API
Other
24 stars 5 forks source link

OpenCV.CASCADE_PEDESTRIANS generates CvException #3

Open ajavamind opened 1 year ago

ajavamind commented 1 year ago

When I try to run pedestrian detection code (version 0.7 using modified LiveCamTest example)

println("OpenCV.CASCADE_PEDESTRIANS="+ OpenCV.CASCADE_PEDESTRIANS); opencv.loadCascade(OpenCV.CASCADE_PEDESTRIANS);

A CvException occurs with this console log:

Processing video library using bundled GStreamer 1.20.3 Scanning GStreamer plugins... Done. Java OpenCV 4.6.0 OpenCV.CASCADE_PEDESTRIANS=hogcascade_pedestrians.xml Load cascade from: C:/Users/andym/Documents/Processing4/libraries/opencv_processing/library/cascade-files/hogcascade_pedestrians.xml CvException: cv::Exception: OpenCV(4.6.0) D:\a\javacpp-presets\javacpp-presets\opencv\cppbuild\windows-x86_64\opencv-4.6.0\modules\objdetect\src\cascadedetect.cpp:1465: error: (-213:The function/feature is not implemented) HOG cascade is not supported in 3.0 in function 'cv::CascadeClassifierImpl::Data::read'