Various background subtraction models are designed using classical computer vision methods for different type of video sequences like those with static background, moving background, changing illumination background, etc. The problem statement can be found here and detailed discussion can be found here.
We build system for static, illumination, jitter, moving, and pan-tilt-zoom scene categories.
Generate the prediction masks
python main.py --inp_path=<path to input frames> --out_path=<path to generated masks> --eval_frames=<path to eval_frames.txt file> --category="<b/i/j/m/p>"
Evaluate the prediction masks against ground truth
python eval.py --pred_path=<path to generated masks folder> --gt_path=<path to groundtruth masks folder>
Generate video containing foreground using original frames and corresponding masks
python makevideo.py --imgs_path=<path to input frames> --masks_path=<path to masks> --video_path=<path to save video> --eval_frames=<path to eval_frames.txt file>
Course assignment in Computer Vision course (course webpage) taken by Prof. Chetan Arora