Removing Background from image or a video

21 visualizaciones (últimos 30 días)
DP
DP el 20 de Nov. de 2019
Respondida: Walter Roberson el 29 de En. de 2025 a las 8:23
Hello,
I have one video , in that video one car in passing 2-d direction, i convert that video into freams ,
so now i have N number of frames i picked one frame and i want to remove the background of that car and i want to apply this on whole video or N no. of frames .
Can you help me?

Respuestas (2)

Sourabh
Sourabh el 29 de En. de 2025 a las 5:57
Hey @DP
This technique is called Background Subtraction. It can be done using OpenCV in MATLAB.
Please refer to the following example:

Walter Roberson
Walter Roberson el 29 de En. de 2025 a las 8:23

There is no possible technique for automatically subtracting background.

Consider solar observation telescopes. Most of the time they are observing near the surface of the Sun and "background" for them includes anything moving around.

However, using exactly the same movies but blocking out the Sun and examining the objects moving around is what is done for observing solar comets moving close to the Sun. In this case, the solar disk is the background.

Therefore, using exactly the same movies, what is "background" depends on what you are looking for, and it is thus not possible to automatically detect "background" in movies, because the exact same movies can be processed for multiple purposes.

Community Treasure Hunt

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

Start Hunting!

Translated by