2016-09-14 15:01:56 -0600 | commented question | Object Detection issue While using the CascadeClassifier::detectMultiScale, you can play around with the function arguments, particularly scale and size of the object detected. This should weed out small objects such as the leaf stem. Take a look here PS: The third image from the bottom right in your training set suspiciously resembles the falsely detected leaf stem in the sample test image you've provided, hence the misclassification. Adjusting the minSize argument in detectMultiscale might help fix this issue. |
2016-09-14 14:30:31 -0600 | answered a question | crack detect red line opencv I recommend using Probabilistic Hough Transform -
Now, What berak means to say is that since cracks are detected as lines by Hough Transform, if you get lines.size() = 0 (i.e. the lines vector is empty), no cracks were found. |
2016-09-14 14:19:37 -0600 | answered a question | Cropping a face and removing the background? Check out the Face detection module tutorial to detect the face. You should be able to directly apply it to extract the face (along with neck/torso and the surrounding background) as a Are you using a camera with a stationary scene with faces popping in and out? In that case, subtracting a detected face from the background is quite straightforward. You will first need to save template background image Once you detect a face as Note: This will produce poor results if your illumination varies. In this case, you should threshold both Additionally, you can also check out this module for background subtraction. Let me know if this helps! |