Background subtractor MoG2 in HSV colour space

asked 2017-01-17 20:54:32 -0600

hoang anh tuan gravatar image

updated 2017-01-18 00:34:12 -0600

When applying the MoG2 method in RGB colour space, I did successfully. But in HSV colour space, not success. Because it detects even non-moving objects. Can I apply MoG2 for HSV? If yes, how can I apply it?

Edit 1: Steps:

Step1: Convert to HSV colour space

Step 1

Step2: Apply background subtractor MoG2 (Non-moving object)

Step 2

edit retag flag offensive close merge delete

Comments

Well, I'm not sure, but I do know you have to turn off the shadow detection. Since it's expecting RGB, the shadow detection will give all sorts of bad results.

I think you would be ok if you just use the V channel, but I don't think H and S work as well.

Tetragramm gravatar imageTetragramm ( 2017-01-17 23:41:02 -0600 )edit

I don't understand. I just update the result when apply Mog2 to HSV colour space

hoang anh tuan gravatar imagehoang anh tuan ( 2017-01-18 00:35:11 -0600 )edit

It is not meant to be used with HSV. Do not expect good results. At low intensity, the hue and saturation can vary widely between almost identical pixels. Note that most of your changes are on the dark objects in the scene.

Tetragramm gravatar imageTetragramm ( 2017-01-18 17:43:51 -0600 )edit