Ask Your Question
0

OpenCv on windows server

asked 2019-11-28 06:36:54 -0600

updated 2019-11-28 07:09:45 -0600

Hello , i have script for licence plate recognition using opencv and openalpr , then i converted the script into exe file , got all libraries and uploaded them to windows server , and when i try to run the script error pops up : // OpenCL not detected OpenCV Error: Assertion failed (!empty()) in cv::CascadeClassifier::detectMultiScale, file C:\projects\openalpr-win\windows\opencv\modules\objdetect\src\cascadedetect.cpp, line 1634 Caught exception in OpenALPR recognize: C:\projects\openalpr-win\windows\opencv\modules\objdetect\src\cascadedetect.cpp:1634: error: (-215) !empty() in function cv::CascadeClassifier::detectMultiScale

Press any key to exit // This exe works on normal other PC without installed OpenCV or OpenAlpr can please someone help me

Plus :C:\projects\openalpr-win\windows\opencv\modules\objdetect\src\cascadedetect.cpp this path is not on my pc

edit retag flag offensive close merge delete

Comments

which opencv version is it ? how did you install it ?

this path is not on my pc

that's where the code was built, not where it is running

berak gravatar imageberak ( 2019-11-28 07:14:09 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-11-28 07:23:21 -0600

berak gravatar image

updated 2019-11-28 07:32:41 -0600

the error means, that your cascade.xml file was not loaded, when you tried to call detectMultiScale().

check, that you uploaded the resp. xml correctly, that it can be found from your code, add some debugging code around the CascadeDetector constructor or the load() function (should return True)

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-11-28 06:36:54 -0600

Seen: 256 times

Last updated: Nov 28 '19