I am working on a hand gesture recognition problem, when I try to extract the foreground bu subtraction of the still background the object appears to be transparent. Why? Please help and suggest any better approach to detection of foreground. Thank you.