Negative sample image dimensions for training cascaded classifier in OpenCV?

狂风中的少年 提交于 2019-12-06 12:21:43

问题


So following up from here, I now need to collect negative samples, for cascaded classification using OpenCV. With positive samples, I know that all samples should have the same aspect ratio.

What about negative samples?

Should they all be larger than positive samples (since OpenCV is going to paste positives on top of negatives to create the test images).

Should all be the same size?

Can they be arbitrary sizes?

Should they too have the same aspect ratio among themselves?


回答1:


From OpenCV doc on Cascade Classifier Training:

Negative samples are taken from arbitrary images. These images must not contain detected objects. [...] Described images may be of different sizes. But each image should be (but not nessesarily) larger then a training window size, because these images are used to subsample negative image to the training size.



来源:https://stackoverflow.com/questions/22419545/negative-sample-image-dimensions-for-training-cascaded-classifier-in-opencv

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!