I'm working on training OpenCV to detect an object using opencv_traincascade
.
I see from the OpenCV documentation that there is an option to specify -bgcolor
and -bgthresh
for the positive images. From what I understand, this would set those pixels to clear and OpenCV would ignore them.
My questions:
- Is this correct?
- Would it be useful to shoot my objects against a green screen and specify the green as the background color?
- Would anything be lost by doing that instead of shooting against a variety of backgrounds?