【问题标题】:How to detect a moving object in a short sequence of images using opencv? [closed]如何使用opencv检测短序列图像中的移动物体? [关闭]
【发布时间】:2018-09-18 11:07:38
【问题描述】:

我有一小段灰度图像(20 张图像),它们是从相机收集的连续帧。我需要识别每个图像中一个小的移动物体的位置。我尝试使用背景减法,并且可以识别每个图像中的移动像素。如何继续检测该移动物体的确切位置?

【问题讨论】:

标签: python opencv image-processing computer-vision object-detection


【解决方案1】:

你可以试试这个方法。

(1)第一次使用模板匹配找到对象。

https://docs.opencv.org/3.0-beta/doc/tutorials/imgproc/histograms/template_matching/template_matching.html?highlight=template%20matching

(2) 使用 camshift 或其他跟踪算法跟踪对象。 https://github.com/opencv/opencv/blob/master/samples/python/camshift.py

【讨论】:

    猜你喜欢
    • 2015-09-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-10-08
    • 1970-01-01
    • 2019-09-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多