How to do background subtraction on a video that has constant movement

조회 수: 1 (최근 30일)
Neil Lester
Neil Lester 2022년 3월 29일
답변: Tala 2022년 3월 29일
My question is, what is the best method of doing background subtraction on a video that has constant movement? e.g. it would not have a frame where the background is fully in show.
I was thinking about getting a mode frame, by taking the mode of all frames within the video, and then using this frame to perform background subtraction, however I am unsure how to do this in code. Any help would be greatly appreciated, Thanks

답변 (1개)

Tala
Tala 2022년 3월 29일
If your background is not moving, try foreground detector. If you dont have enough frame that represents your background, reduce th enumber of "NumTrainingFrames".

카테고리

Help CenterFile Exchange에서 Computer Vision Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by