Common trick is to use color which separate intensity and color such
as HSV, YUV, or others.
Hope this helps.
--- In [hidden email], "mattia lipreri" <mattia.lipreri@...>
> in OReilly openCv book I read:
> "Shadows are oft en a problem in background subtraction because they can
> show up
> as a foreground object. Use the averaging or codebook method of
> to learn the background. Have a person then walk in the foreground.
> will "emanate" from the bottom of the foreground object.
> a. Outdoors, shadows are darker and bluer than their surround; use
> eliminate them.
> b. Indoors, shadows are darker than their surround; use this fact to
> them. "
> Anybody has solved it?
> What should I do to remove shadow? Have I to do it before or after
> background substraction?
> Thank you
> while ( ! ( succeed = try() ) );
> Mattia Lipreri
> [Non-text portions of this message have been removed]