Error using .detectMultiScale using the haarcascade (face detection)

asked 2018-09-05 08:21:49 -0500

mvdb3 gravatar image

Hi there I am currently using OpenCV 3.4.2. and Visual Studio and coding in C++. I am trying to detect faces. Using CascadeClassifier and haarcascade_frontalface.xml (all of the variations are giving me the same error). The classifier is loading fine and I amusing the correct variables for .detectMultiScale (vector<rect> and Mat with a grayscale image). The error is a "Exception thrown: read access violation. _Right was 0x246547D7000"and appears not in the code I have written but in the xstddef? Can anyone help me with this problem? It doesn't appear to be my code as I am calling a premade function from the contrib libraries. Could I possibly have a problem with my settings or the OpenCV version? (I have checked the and the opencv_objdetect342d.dll file is not a read/write only file). Any help would be appreciated. Thank you for your time!

edit retag flag offensive close merge delete


show your code, nonetheless.

berak gravatar imageberak ( 2018-09-05 08:44:06 -0500 )edit