Ask Your Question

Ihor Zabrotsky's profile - activity

2017-05-30 07:41:22 -0600 commented answer OpenCV HaarTraining Positive images background

And what about 1 - should I stop using all those synthetic images?

2017-05-30 07:25:18 -0600 commented answer OpenCV HaarTraining Positive images background

Just wanted to clarify some things:

  1. I use many positive images but almost all of them are synthetic (a simple picture of black and white downloaded from Internet) and only few of them I created using a camera. Is this a mistake and should I always make photos or use opencv__annotation?

  2. You say that I don't need to crop an image. But there are many sources that say that we need to reduce an image as much as possible to contain only the object we want to recognize (because all the other information is treated as positive as well and it worsens the training result)? So, as I understand, the best way is to restrict the image to contain only the object and do nothing if there's some portion of background left, isn't it?

2017-05-30 04:43:23 -0600 asked a question OpenCV HaarTraining Positive images background

Hi all!

I have a few questions about background in positive images for haartraining.

  1. Is it good to have only the desired object in the positive image or to have also some portion of different possible backgrounds?
  2. If it's better to have only the desired object what is the best way to crop it if it has some specific shape? I mean a situation when you can't dispose of all the background because the object is not rectangular? Is it good just to make this background transparent?