简体   繁体   English

我应该遵循哪些背景减法方法?

[英]Which background substraction methods I should follow?

I have a college work which I have a short video to cut the background off (keeping only what moves in the scene) with three differente method,我有一个大学作品,我有一个短视频来用三种不同的方法剪掉背景(只保留场景中移动的东西),

  • Fixed Background or Fixed Fundus固定背景或固定眼底
  • Average background or average fundus平均背景或平均眼底
  • Median background or median fundus中位背景或中位眼底

So I searched and found this example from OpenCV: https://docs.opencv.org/3.4/d1/dc5/tutorial_background_subtraction.html So I guess this should be the first one所以我从 OpenCV 搜索并找到了这个例子: https : //docs.opencv.org/3.4/d1/dc5/tutorial_background_subtraction.html所以我想这应该是第一个

And this : https://learnopencv.com/simple-background-estimation-in-videos-using-opencv-c-python/ Should be the median fundus..而这个: https : //learnopencv.com/simple-background-estimation-in-videos-using-opencv-c-python/应该是眼底中位数..

Am I right?我对吗? I'm confused because the teacher did not pass us the terms in english.我很困惑,因为老师没有给我们传授英语术语。 This algorithms are right with the methods required?该算法是否与所需的方法相符? Or where can I find example of these methods?或者我在哪里可以找到这些方法的例子?

There are 2 types of background subtraction:有两种类型的背景减法:

  1. Morphological operation based基于形态学操作
  2. Artificial Intelligence(AI) based基于人工智能(AI)

Morphological operation based基于形态学操作

This approach assumes that background is constant or better saying that it works fine if the background is constant.这种方法假设背景是恒定的,或者更好地说,如果背景是恒定的,它就可以正常工作。 What I mean is that camera is stable.我的意思是相机是稳定的。

  • OpenCV library has already have some beautiful functions for this: BackgroundSubtractorMOG2 and BackgroundSubtractorKNN are some of famous ones. OpenCV 库已经为此提供了一些漂亮的函数: BackgroundSubtractorMOG2BackgroundSubtractorKNN是一些著名的函数。 These functions are also able to hold story in memory so even camera is moving(background changement), they can update it.这些功能还可以将故事保存在内存中,因此即使相机正在移动(背景更改),它们也可以对其进行更新。
  • I also worked on this topic before, and designed an algorithm for that.我之前也研究过这个主题,并为此设计了一个算法。 Here is the github link for code and video results refered to that.这是代码和视频结果的github 链接

Note: In this approach, the biggest problem is lightening.注意:在这种方法中,最大的问题是减光。

Artificial Intelligence(AI) based基于人工智能(AI)

This method is the popular one and used widely.这种方法很流行,应用广泛。 Many meeting app in store are also using this one to change background.商店中的许多会议应用程序也在使用这个来更改背景。 This approach basically detect the target objects and mask them.这种方法基本上检测目标对象并屏蔽它们。 As an example you may have a look at the Mask-RCNN .作为一个例子,你可以看看Mask-RCNN So after detecting mask of target(human, car etc.), its very easy to change background.所以在检测到目标(人、汽车等)的掩码后,很容易改变背景。 Camera movement and background changings don't affect.相机移动和背景变化不受影响。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我应该按照哪个顺序升级 Python、DJango 和 DJango-cms? - Which order i should follow to upgrade in Python, DJango and DJango-cms? 我应该使用在erlang中使用python的两种方法中的哪一种? - Which of two methods of using python within erlang should I use? 适用于允许您指定应调试哪些方法的类的 Python 装饰器。 我该如何实施? - Python decorator applicable to a class that allows you to specify which methods should be debugged. How can I implement it? 我应该用_开始内部方法吗? - Should I start internal methods with _? python中的web爬虫。 我应该从哪里开始,我应该遵循什么? - 需要帮助 - A web crawler in python. Where should i start and what should i follow? - Help needed 我应该在这种Python场景中使用抽象方法吗? - Should I be using abstract methods in this Python scenario? 我应该在Django模型中测试方法吗? - Should I test methods in Django models? 我应该如何在Python中安排类中的方法? - How should I arrange methods in a class in Python? 我什么时候应该在 model 中创建方法 - When should I create methods in model 我是否应该以及如何向 python 中的 int 添加方法? - Should I, and how to, add methods to int in python?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM