0

I am new to the OpenCV background subtraction model that is definte using codebook method.

I was running the sample code here and to see how it works, seems a very great approach. I was trying to segment out a cup. Works fine until the cup gets close to the camera at which point the whole output of the both foreground codebook image and codebook connected component image, both turn completely white.

Why does this happen?

Wajih

Charles
  • 50,943
  • 13
  • 104
  • 142

1 Answers1

2

can you try turning off automatic exposure/brightness control of your camera? it could be causing illumination changes in the scene and thus being registered as fg.

Zaw Lin
  • 5,629
  • 1
  • 23
  • 41
  • Well that is something that I cannot really control :( –  Jan 08 '13 at 17:59
  • i think most webcams and ipcams allow manual setting. vlc can be used to set if it is a webcam just in case you dont know – Zaw Lin Jan 08 '13 at 18:29
  • Well let me check if I can. I am using my Dell laptop so not sure if the setting changes are allowed –  Jan 08 '13 at 18:43