Open aleksandrpak opened 9 years ago
@aleksandrpak I believe that has something to do with the deprecation of the OpenCV C API (which is what rust-opencv uses) so you should load the older xml file using the code you've written.
@woxtu OpenCV-Java loads the new haar-cascade files without a problem. Have you worked this out?
I suppose old format file raises this error, but I don't know the details.
Try to use /usr/local/Cellar/opencv/2.4.9/share/OpenCV/haarcascades/haarcascade_frontalface_alt.xml
instead. It works well for now.
Thanks @woxtu - that worked for me
Hi , i'm using Ubuntu 14.04 with opencv 2.4.10 i get those errors OpenCV Error: Unspecified error (The node does not represent a user object (unknown type?)) in cvRead, file /home/chfakht/opencv/opencv-2.4.10/modules/core/src/persistence.cpp, line 4991 terminate called after throwing an instance of 'cv::Exception' what(): /home/chfakht/opencv/opencv-2.4.10/modules/core/src/persistence.cpp:4991: error: (-2) The node does not represent a user object (unknown type?) in function cvRead any help ??
Here is my Cargo.toml:
Trying to run following piece of code:
I receive following error:
haarcascade_frontalface_alt.xml file is taken from opencv github repository: https://github.com/Itseez/opencv/blob/master/data/haarcascades/haarcascade_frontalface_alt.xml
And following example is working with exact same file.
opencv is installed using brew. My OS is Mac OS Yosemite 10.10.1.