Ask Your Question

Revision history [back]

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.