-
Notifications
You must be signed in to change notification settings - Fork 865
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing haarcascades xml files #48
Comments
Thanks for the report, I'll add them to the package in next release. I have to go first through the licenses of those files. Most of them seem to be under BSD-like license so shouldn't be a problem to include them. |
Great, thanks! |
I had a better look into this. That tutorial is a bit misleading since it's not very clear on where the script has to executed:
Now, even if I distribute all the XML files with this package the following line won't still work because it tries to read the XML file from the same folder where your script is executed:
If I add those files in the package, you will have to use something like this:
|
Maybe add Or maybe even a constant |
Yes, I was thinking about something like |
The haarcascades path can be accessed now via |
Can anybody tell how to set path for xml files |
Hi all..I am using openCV2 with OS X Xcode....why there is no data folder in opencv framework ? to use haar cascade xml file..kindly help me out |
First thanks for putting this package together!
I'm trying to perform face detection by following this tutorial: http://docs.opencv.org/trunk/d7/d8b/tutorial_py_face_detection.html, however this leads to an error as the haarcascade xml files appear to be missing from the wheel:
This should print
False
and then perform face detection. However, it printsTrue
and then leads to an error:opencv-python/opencv/modules/objdetect/src/cascadedetect.cpp:1698: error: (-215) !empty() in function detectMultiScale
It looks as though the files under https://github.com/opencv/opencv/tree/master/data are missing from the wheels so I guess that adding them should fix this.
(This works as expected using the conda package).
Thanks!
The text was updated successfully, but these errors were encountered: