CN107133972A - 一种视频运动目标检测方法 - Google Patents
一种视频运动目标检测方法 Download PDFInfo
- Publication number
- CN107133972A CN107133972A CN201710328432.9A CN201710328432A CN107133972A CN 107133972 A CN107133972 A CN 107133972A CN 201710328432 A CN201710328432 A CN 201710328432A CN 107133972 A CN107133972 A CN 107133972A
- Authority
- CN
- China
- Prior art keywords
- moving target
- image
- frame
- object detection
- video
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/20—Analysis of motion
- G06T7/254—Analysis of motion involving subtraction of images
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/20—Analysis of motion
- G06T7/269—Analysis of motion using gradient-based methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10016—Video; Image sequence
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20212—Image combination
- G06T2207/20224—Image subtraction
Abstract
本发明公开了一种视频运动目标检测方法,包括以下步骤:S1:利用改进的三帧差分算法对图像预处理,降低图像背景对运动目标的影响,经过膨胀得到运动目标的大致区域;S2:对预处理过的图像用基于灰度优化的光流法计算光流,得到运动目标的精确区域,检测到运动目标。本发明使用最大类间方差法进行阈值选择,能够相对快速准确地检测运动目标,改进的三帧差算法实现简单,检测效果有明显的提升,具有一定的实用价值。
Description
技术领域
本发明具体涉及一种视频运动目标检测方法。
背景技术
随着计算机技术的不断发展,计算机视觉研究方兴未艾,而运动目标检测在智能交通、军事等领域成为热点。视频图像中的运动目标检测在计算机视觉领域成为一个重要的研究课题。
传统的视频运动目标检测方法有背景差分法、帧间差分法和光流法。背景差分法是利用图像序列中当前帧图像和背景图像相对于参考模型进行比较的一种检测运动目标方法。此算法相对简单,检测效率较高,其性能依赖于所使用的背景建模技术。但是一旦图像背景发生变化或被其他物体干扰时,就不能准确地检测出运动目标,即背景差分法的抗干扰能力较弱。传统的帧间差分法是用图像序列中的连续两帧图像进行差分,然后二值化该灰度差分图像来提取运动信息。这种方法的优点是算法实现简单,程序设计复杂度低,对光线等场景变化不太敏感,能够适应各种动态环境,稳定性较好。缺点是不能提取出对象的完整区域,只能提取边界,同时依赖于选择的帧间时间间隔。
发明内容
本发明要解决的技术问题是提供一种视频运动目标检测方法。
一种视频运动目标检测方法,包括以下步骤:
S1:利用改进的三帧差分算法对图像预处理,降低图像背景对运动目标的影响,经过膨胀得到运动目标的大致区域;
S2:对预处理过的图像用基于灰度优化的光流法计算光流,得到运动目标的精确区域,检测到运动目标。
进一步的,步骤S1的具体方法如下:
1)设视频共有连续的n帧,把这些帧分别表示成f0(x,y),f1(x,y),…,fn-1(x,y),然后选取序列中fk-1(x,y),fk(x,y),…,fk+1(x,y)连续的三帧图像,分别求相邻两帧间的二值化图像;选取任意连续的三帧图像,设定合适的阈值T,第一帧与第二帧做差分,得到的二值化图像表示为dk-1(x,y):
第二帧与第三帧做差分,得到的二值化图像表示为dk,k+1(x,y)
2)对得到的dk-1(x,y)、dk,k+1(x,y)两个差分图像进行与运算,得到d(x,y):
把d1(x,y)、d2(x,y)进行与运算,得到d3(x,y),具体操作为:
3)将d(x,y)和d3(x,y)进行与运算,去除目标图像中的孤立点,得到的图像检测结果记作D(x,y):
本发明的有益效果是:
本发明使用最大类间方差法进行阈值选择,能够相对快速准确地检测运动目标,改进的三帧差算法实现简单,检测效果有明显的提升,具有一定的实用价值。
具体实施方式
以下具体实施例对本发明作进一步阐述,但不作为对本发明的限定。
一种视频运动目标检测方法,包括以下步骤:
S1:利用改进的三帧差分算法对图像预处理,降低图像背景对运动目标的影响,经过膨胀得到运动目标的大致区域;
S2:对预处理过的图像用基于灰度优化的光流法计算光流,得到运动目标的精确区域,检测到运动目标。
步骤S1的具体方法如下:
1)设视频共有连续的n帧,把这些帧分别表示成f0(x,y),f1(x,y),…,fn-1(x,y),然后选取序列中fk-1(x,y),fk(x,y),…,fk+1(x,y)连续的三帧图像,分别求相邻两帧间的二值化图像;选取任意连续的三帧图像,设定合适的阈值T,第一帧与第二帧做差分,得到的二值化图像表示为dk-1(x,y):
第二帧与第三帧做差分,得到的二值化图像表示为dk,k+1(x,y)
2)对得到的dk-1(x,y)、dk,k+1(x,y)两个差分图像进行与运算,得到d(x,y):
把d1(x,y)、d2(x,y)进行与运算,得到d3(x,y),具体操作为:
3)将d(x,y)和d3(x,y)进行与运算,去除目标图像中的孤立点,得到的图像检测结果记作D(x,y):
Claims (2)
1.一种视频运动目标检测方法,其特征在于,包括以下步骤:
S1:利用改进的三帧差分算法对图像预处理,降低图像背景对运动目标的影响,经过膨胀得到运动目标的大致区域;
S2:对预处理过的图像用基于灰度优化的光流法计算光流,得到运动目标的精确区域,检测到运动目标。
2.根据权利要求1所述的视频运动目标检测方法,其特征在于,步骤S1的具体方法如下:
1)设视频共有连续的n帧,把这些帧分别表示成f0(x,y),f1(x,y),…,fn-1(x,y),然后选取序列中fk-1(x,y),fk(x,y),…,fk+1(x,y)连续的三帧图像,分别求相邻两帧间的二值化图像;选取任意连续的三帧图像,设定合适的阈值T,第一帧与第二帧做差分,得到的二值化图像表示为dk-1(x,y):
dk,k+1(x,y)
第二帧与第三帧做差分,得到的二值化图像表示为
2)对得到的dk-1(x,y)、dk,k+1(x,y)两个差分图像进行与运算,得到d(x,y):
把d1(x,y)、d2(x,y)进行与运算,得到d3(x,y),具体操作为:
3)将d(x,y)和d3(x,y)进行与运算,去除目标图像中的孤立点,得到的图像检测结果记作D(x,y):
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710328432.9A CN107133972A (zh) | 2017-05-11 | 2017-05-11 | 一种视频运动目标检测方法 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710328432.9A CN107133972A (zh) | 2017-05-11 | 2017-05-11 | 一种视频运动目标检测方法 |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107133972A true CN107133972A (zh) | 2017-09-05 |
Family
ID=59732843
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710328432.9A Withdrawn CN107133972A (zh) | 2017-05-11 | 2017-05-11 | 一种视频运动目标检测方法 |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107133972A (zh) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107967695A (zh) * | 2017-12-25 | 2018-04-27 | 北京航空航天大学 | 一种基于深度光流和形态学方法的运动目标检测方法 |
CN107993254A (zh) * | 2017-12-14 | 2018-05-04 | 广西科技大学 | 基于关联帧差分法的运动目标检测方法 |
WO2019127269A1 (zh) * | 2017-12-26 | 2019-07-04 | 中国科学院深圳先进技术研究院 | 图像拼接方法、图像拼接装置及电子设备 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101354359A (zh) * | 2008-09-04 | 2009-01-28 | 湖南大学 | 药液内运动可见异物的检测跟踪与识别方法 |
CN101902642A (zh) * | 2010-05-31 | 2010-12-01 | 中山大学 | 一种h.264帧间skip模式快速判定方法 |
US8358834B2 (en) * | 2009-08-18 | 2013-01-22 | Behavioral Recognition Systems | Background model for complex and dynamic scenes |
US20130129144A1 (en) * | 2011-11-23 | 2013-05-23 | Seoul National University Industry Foundation | Apparatus and method for detecting object using ptz camera |
-
2017
- 2017-05-11 CN CN201710328432.9A patent/CN107133972A/zh not_active Withdrawn
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101354359A (zh) * | 2008-09-04 | 2009-01-28 | 湖南大学 | 药液内运动可见异物的检测跟踪与识别方法 |
US8358834B2 (en) * | 2009-08-18 | 2013-01-22 | Behavioral Recognition Systems | Background model for complex and dynamic scenes |
CN101902642A (zh) * | 2010-05-31 | 2010-12-01 | 中山大学 | 一种h.264帧间skip模式快速判定方法 |
US20130129144A1 (en) * | 2011-11-23 | 2013-05-23 | Seoul National University Industry Foundation | Apparatus and method for detecting object using ptz camera |
Non-Patent Citations (1)
Title |
---|
李秀丽 等: ""一种改进的视频运动目标检测算法"", 《软件导刊》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107993254A (zh) * | 2017-12-14 | 2018-05-04 | 广西科技大学 | 基于关联帧差分法的运动目标检测方法 |
CN107967695A (zh) * | 2017-12-25 | 2018-04-27 | 北京航空航天大学 | 一种基于深度光流和形态学方法的运动目标检测方法 |
CN107967695B (zh) * | 2017-12-25 | 2018-11-13 | 北京航空航天大学 | 一种基于深度光流和形态学方法的运动目标检测方法 |
WO2019127269A1 (zh) * | 2017-12-26 | 2019-07-04 | 中国科学院深圳先进技术研究院 | 图像拼接方法、图像拼接装置及电子设备 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Mueggler et al. | Fast event-based corner detection | |
Singla | Motion detection based on frame difference method | |
Chen et al. | Haze removal using radial basis function networks for visibility restoration applications | |
Roa'a et al. | Generation of high dynamic range for enhancing the panorama environment | |
Shaikh et al. | Moving object detection approaches, challenges and object tracking | |
Dimou et al. | Multi-target detection in CCTV footage for tracking applications using deep learning techniques | |
CN106296744A (zh) | 一种结合自适应模型和多阴影属性的运动目标检测方法 | |
CN107067416A (zh) | 一种运动目标的检测方法 | |
Sengar et al. | Foreground detection via background subtraction and improved three-frame differencing | |
CN107133972A (zh) | 一种视频运动目标检测方法 | |
Feng et al. | Infrared target detection and location for visual surveillance using fusion scheme of visible and infrared images | |
Roy et al. | A comprehensive survey on computer vision based approaches for moving object detection | |
Li et al. | Illumination and motion-based video enhancement for night surveillance | |
Xing et al. | Joint prediction of monocular depth and structure using planar and parallax geometry | |
Ding et al. | E-mlb: Multilevel benchmark for event-based camera denoising | |
Hu et al. | A low illumination video enhancement algorithm based on the atmospheric physical model | |
CN113065534A (zh) | 一种基于人像分割精度提升的方法、系统和存储介质 | |
CN107203979B (zh) | 一种低照度图像增强的方法 | |
Huang et al. | Image dehazing in disproportionate haze distributions | |
Adidela et al. | Single Image And Video Dehazing: A Dark Channel Prior (DCP)-based Approach | |
Ran et al. | Multi moving people detection from binocular sequences | |
Wang et al. | Cross camera object tracking in high resolution video based on tld framework | |
Madhurima | Object tracking in a video sequence using Mean-Shift Based Approach: An Implementation using MATLAB7 | |
Chen et al. | ESTN: Exacter Spatiotemporal Networks for Violent Action Recognition | |
Liu et al. | Real-Time Shadow Detection From Live Outdoor Videos for Augmented Reality |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20170905 |