-
Motion detection with still background, moving subject
Hi,
I have a footage with a completely static background and a subject that moves about. I need to mask the subject out from the background so that I can add effects to the background.
Because of poor lighting, the contrast between the edge of the subject and the background isn’t too good at times, and motion tracking points around the edge of the subject fails because of that.
I wonder if there is another tool to accomplish this? I can’t imagine this is very difficult, at least in terms of the algorithm involved — say, if a pixel (or an area of the video) remains constant from one frame to the next, then consider it as part of the background; otherwise, if the pixel changes, consider it as part of the subject. Something along those lines.
So far the only option I had was to manually mask the subject; however, with 12 seconds of footage at 30 fps, you could imagine that the progress isn’t very satisfactory.
Any suggestions would be very much appreciated.