Ask Your Question

mattm401's profile - activity

2016-08-20 13:02:54 -0600 commented question PR Curve for Cascade w/ detectMultiScale3: Never Completes

I ended up downgrading to OpenCV 3.0.0 and the code worked without any changes; it would appear that detectMultiScale3 is not working in OpenCV 3.1.0. If anyone else is encountering this issue and isn't using anything specific to 3.1.0 then this work around may work for you as well!

2016-08-20 12:57:25 -0600 asked a question PR Curve for Cascade w/ detectMultiScale3: Never Completes

I have a custom trained cascade and using detectMultiScale I am able to sweep over my test set (128 images) for the best performing scale and neighborhood parameters in a minute or two. I am getting a decent results, but what I'd like to do is generate a PR curve for the cascade and for that I need a threshold or confidence value. I did a little reading/searching that suggested using OpenCV 3.1.0 and detectMultiScale3 with outputRejectLevels=True which would provide me with some weights (or confidence levels) that could be used for this purpose; however, when I updated my version of OpenCV, the function call, and tried to run the classifier on a single image to compare the results... the classifier never seems to finish running even after 10 minutes or so. I should also mention that I am running Python 2.7, Windows 7, with the x86 version of OpenCV 3.1.0. My questions are:

Is this a known issue? Might there be another option for generating a PR Curve for cascades? I suppose I could alter the neighborhood and scale parameters, but I am not accustom to doing this for generating PR curves.