Laex / Delphi-OpenCV

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

All samples run cvLoad function throw the External exception E06D7363 #71

Open cxwall opened 7 years ago

cxwall commented 7 years ago

when i intall the environment,and run the samples。step by cvLoad function。The application throw the "External exception E06D7363"。who know it,can you tell me?

opa79 commented 1 year ago

It is NOT fixed. The error persists.

Laex commented 1 year ago

What are you loading with cvLoad?

opa79 commented 1 year ago

I'm trying to run FaceDetect demo. It fails with this error message: 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

Exception is thrown on line 97: .... // load the trained haar cascade classifier from file // and create storage required for detections cascade := cvLoad(cascade_name, nil, nil, nil); <----- exception ... at that cascade_name is equal to '....\resource\facedetectxml\haarcascade_frontalface_alt.xml'.

I've tried different classifier file names, but problem persists. OpenCV is compliled with VS2015, Delphi version is 10.2 Tokyo.

Laex commented 1 year 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.