Ask Your Question

jla's profile - activity

2016-03-27 09:31:48 -0600 received badge  Famous Question (source)
2015-11-27 20:19:08 -0600 received badge  Notable Question (source)
2015-08-23 17:03:34 -0600 received badge  Popular Question (source)
2015-01-05 06:08:26 -0600 received badge  Scholar (source)
2015-01-05 05:59:29 -0600 commented answer OpenCV Error: Assertion failed (!empty()) in detectMultiScale

Well, the solution is (for any readers experiencing the same problem): instead of

face_cascade.load('haarcascade_frontalface_default.xml')

writing the whole path like:

face_cascade.load('/home/user/.../haarcascade_frontalface_default.xml')

should do it, and you Sir FooBar helped ,me a lot. Thank you very much, here ist your correct answer :) Have a nice day!

2015-01-05 05:45:30 -0600 commented answer OpenCV Error: Assertion failed (!empty()) in detectMultiScale

thank you,

test = face_cascade.load('haarcascade_frontalface_default.xml')

print(test)

returns false

2015-01-05 05:28:55 -0600 commented answer OpenCV Error: Assertion failed (!empty()) in detectMultiScale

thanks for your fast answer. Since i'm using opencv as a wrapper and the programm is in python, i need a little heads up, how to call the CascadeClassifier::load() from pythoncode!? Thanks in advance

2015-01-05 05:12:14 -0600 received badge  Editor (source)
2015-01-05 05:06:48 -0600 asked a question OpenCV Error: Assertion failed (!empty()) in detectMultiScale

Hi, i am trying to work with the example from the face-detection tutorial: tutorial link

While i do so and try to execute the examplecode in python, the following error occurs:

OpenCV Error: Assertion failed (!empty()) in detectMultiScale, file /home/julian/Downloads/opencv-3.0.0-beta/modules/objdetect/src/cascadedetect.cpp, line 1580 Traceback (most recent call last): File "/home/julian/PycharmProjects/PicProcessingTutorial/Face_Detection.py", line 15, in <module> faces = face_cascade.detectMultiScale(gray, 1.3, 5) cv2.error: /home/julian/Downloads/opencv-3.0.0-beta/modules/objdetect/src/cascadedetect.cpp:1580: error: (-215) !empty() in function detectMultiScale

What could be the reason for the error, how should i react to fix it? Thank you for your time and advice,

regards

jla

2015-01-05 04:49:11 -0600 commented question OpenCV Error: Assertion failed (!empty()) in detectMultiScale

same error here, trying to execute the example tutorial from: http://docs.opencv.org/trunk/doc/py_t...

2015-01-05 04:41:44 -0600 received badge  Supporter (source)