Background subtractor MoG2 in HSV colour space
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
Step2: Apply background subtractor MoG2 (Non-moving object)
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.
I don't understand. I just update the result when apply Mog2 to HSV colour space
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.