Laex / Delphi-OpenCV

Project Delphi-OpenCV. Translation of OpenCV library header files in Delphi
500 stars 226 forks source link

During FastDetect startup 2.exe an error occurs. #147

Open AlexSh7 opened 2 years ago

AlexSh7 commented 2 years ago

During startup FastDetect 2.exe an error occurs.

OpenCV Error: Unspecified error (The node does not represent a user object (unknown type?)) in cvRead

Error in function cvLoad

Laex commented 2 years ago

In version 2.4.13, developers began to switch to the new Haar cascade file format. This was due to the development of the OpenCV 3.0 branch. The developers broke cvLoad for Haar cascade and recommended using C++ classes (CascadeClassifier cascade). Some Haar cascades remain in the old format, such as haarcascade_frontalface_default.xml. Other Haar cascades need to be tested. Also look in https://github.com/opencv/opencv/tree/master/data/haarcascades

jornada812 commented 1 year ago

the examples don't work with any cascade (at least it didn't work for me) Doesn't work at all anymore?

opa79 commented 1 year ago

None of .xml files work. All xml files both in facedetectxml and in facedetectxml_new folders seem to be bad/broken.

I always get this error: OpenCV Error: Unspecified error (The node does not represent a user object (unknown type?)) in cvRead, file C:\build ... \core\src\persistence.cpp, line 5008. EExternalException: External exception E06D7363

Laex commented 1 year ago

Try to test Delphi-OpenCV\samples\MultiDemo\FaceDetect\FaceDetect.dpr It normally loads "resource\facedetectxml\haarcascade_frontalface_alt.xml"

opa79 commented 1 year ago

I've tried that project. It fails with all .xml files as well. OpenCV is compliled with VS2015, Delphi version is 10.2 Tokyo.

Laex commented 1 year ago

Duplicate of #71