CN101789127B - 视频图像中提取目标的方法 - Google Patents

视频图像中提取目标的方法 Download PDF

Info

Publication number
CN101789127B
CN101789127B CN2010101149227A CN201010114922A CN101789127B CN 101789127 B CN101789127 B CN 101789127B CN 2010101149227 A CN2010101149227 A CN 2010101149227A CN 201010114922 A CN201010114922 A CN 201010114922A CN 101789127 B CN101789127 B CN 101789127B
Authority
CN
China
Prior art keywords
frame image
target
image
foreground area
angle point
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.)
Expired - Fee Related
Application number
CN2010101149227A
Other languages
English (en)
Other versions
CN101789127A (zh
Inventor
补建
罗安
周聪俊
白云
胡入幻
杨云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Santai Intelligent Technology Co ltd
Original Assignee
CHENGDU SANTAI ELECTRONIC INDUSTRY Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by CHENGDU SANTAI ELECTRONIC INDUSTRY Co Ltd filed Critical CHENGDU SANTAI ELECTRONIC INDUSTRY Co Ltd
Priority to CN2010101149227A priority Critical patent/CN101789127B/zh
Publication of CN101789127A publication Critical patent/CN101789127A/zh
Application granted granted Critical
Publication of CN101789127B publication Critical patent/CN101789127B/zh
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Analysis (AREA)

Abstract

本发明涉及一种在视频图像中提取目标的方法。本发明针对现有技术的目标检测方法容易受到光照影响,检测准确性低的问题,公开了一种视频图像中目标提取方法,可以提高目标检测的准确性。本发明的技术方案是,视频图像中提取目标的方法,包括以下步骤:a、采集前一帧图像和当前帧图像;b、检测前一帧图像和当前帧图像的角点;c、根据当前帧图像与前一帧图像的差,得到前景区域;d、分别统计前一帧图像和当前帧图像在所述前景区域中的角点数,以及前一帧图像和当前帧图像在该区域中位置匹配的角点数;e、根据步骤d统计的角点数与设定参数的关系,判断所述前景区域是否有目标。本发明特别适合在光照影响的情况下检测固定区域的目标。

Description

视频图像中提取目标的方法
技术领域
本发明涉及视频图像处理技术,特别涉及一种在视频图像中提取目标的方法。
背景技术
视频图像中目标的提取(或称为前景提取、前景检测)是计算机视觉、视频监控、目标跟踪等领域的常用技术。背景减除方法是最常用的方法,该方法用当前帧图像imgC与背景图像(或前一帧图像)imgB的差分:F=imgC-imgB,得到前景图像F,从而确定前景区域。
但光照的变化会造成前景提取错误,所以消除光照的影响对于前景提取有很重要的意义。
为消除光照对目标提取的影响,现已提出很多算法。《光照突变环境下基于高斯混合模型和梯度信息的视频分割》(中国图像图形学报,2007.12(11):2068-2072)提出将结构梯度互相关函数应用于光照引起的前景检测,在光照变化的区域,亮度和色彩分量均未发生改变,但是梯度和背景相关性大,而目标引起的前景区域,其梯度发生较大改变,与背景相关性小。经实验发现,梯度反映了纹理信息,梯度信息的变化一定程度上代表了纹理的变化,图像整体发生光照变化时,图像的纹理信息不变,检测可行。但有两种情况,该方法不适用:(1)当图像局部发生光照变化时,产生光斑,光斑有边缘,其梯度变化很大,会被误测为目标。(2)目标颜色分布均匀时,目标内部会被认为是等比例的发生了改变,目标内部会出现空洞,影响目标检测。
发明内容
本发明所要解决的技术问题,就是针对现有技术的目标检测方法容易受到光照影响,检测准确性低的问题,提供一种视频图像中目标提取方法,提高目标检测的准确性。
本发明解决所述技术问题采用的技术方案是,视频图像中提取目标的方法,包括以下步骤:
a、采集前一帧图像和当前帧图像;
b、检测前一帧图像和当前帧图像的角点;
c、根据当前帧图像与前一帧图像的差,得到前景区域;
d、分别统计前一帧图像和当前帧图像在所述前景区域中的角点数,以及前一帧图像和当前帧图像在该区域中位置匹配的角点数;
e、根据步骤d统计的角点数与设定参数的关系,判断所述前景区域是否有目标;
具体的,步骤d中,采用背景减除法得到当前帧图像与前一帧图像的差;
进一步的,记当前帧图像在前景区域中的角点个数为Nc,前一帧图像在同一区域中角点个数为Nb,前一帧图像和当前帧图像在前景区域中位置匹配的角点数为Nm
步骤e的具体判断方法如下:
e1、若
Nm<T;Nb>T1;Nc>T1
其中T、T1为设定阈值,则判定有目标进入;
e2、若
Nb≥T;Nc<T;Nm<T;
则判定有目标被移除;
e3、若
Nc<T;Nb<T2
其中T2为设定阈值,则判定此时并无目标出现,前景区域变化是由光照变化而引起的;
e4、若
Nc>T1;Nm≥Nb×T3;Nm≥T;
其中T3为设定阈值,且T3为一个百分比,则判定此时并无目标出现,前景区域变化是由光照引起的;
具体的,所述前一帧图像为固定区域的背景图像。
本发明的有益效果是,能够快速有效的消除光照影响,对目标做出准确的判断,并且通过角点匹配还可判断目标是移除还是带入,对视频的后续处理及视频预警有着重要意义。
具体实施方式
下面结合实施例,详细描述本发明的技术方案。
本发明以角点作为图像特征,根据视频图像中角点的变化,与设定值(参数)的比较,判断前景区域的变化是否由目标引起,或者是由于光照的变化引起,从而对目标进行准确的判断。
本发明采用Harris角点检测技术,下面介绍该技术的角点检测方法。
1)计算图像I(x,y)的局部结构矩阵M
M = Σ ( x , y ) w ( x , y ) A C C B
其中:
A = ( ∂ I ∂ x ) 2 ⊗ w ( x , y ) ; B = ( ∂ I ∂ y ) 2 ⊗ w ( x , y ) ; C = ( ∂ I ∂ x ∂ I ∂ y ) ⊗ w ( x , y ) ; ⊗ 表示卷积运算;w(x,y)表示高斯模板。
2)计算每个像素的角点度量值C(x,y)
C(x,y)=det(M)-k×(trace(M))2
其中:
det(M)=AB-C2;trace(M)=A+B;k为常数。
3)角点判断
若C(x,y)<户(户为一个经验值,一般为零),则置C(x,y)为零,然后检测各像素点的角点度量值是否为所在局部区域最大,若为最大,则保留,否则置零。最后,若C(x,y)非零,则认为它是角点。
采用上述方法对前一帧图像和当前帧图像进行处理,便可得它们的角点图像。
当然也可以采用其他角点检测技术,如:基于梯度的角点检测(参见DericheR,Giraudon G.A Computational Approach for Corner and Vertex Detection[J].Computer Vision,1993,10(2):101-120)、基于轮廓曲线的角点检测(参见肖茜,鲁宏伟.基于高斯平滑的自适应角点检测[J].计算机辅助设计与图形学学报,2003,15(11):1358-1361)。
本发明采用背景减除法(或称为背景差法)确定前景区域。
实施例
下面以监控摄像头采集的背景图像和当前图像分别作为前一帧图像和当前帧图像来说明本发明的目标检测方法。这里的背景图像就是固定区域的背景图像。
第一步、采集背景图像和当前图像。
第二步、采用采用Harris角点检测方法分别检测背景图像和当前图像的角点。
第三步、采用背景减除法作背景图像和当前图像的差分运算,根据背景图像和当前图像的差,得到前景区域。
第四步、统计角点数:前一帧图像和当前帧图像在前景区域中位置匹配的角点数,记为Nm;当前图像中处于前景区域中的角点数,记为Nc;背景图像在同一区域中的角点数,记为Nb
第五步、根据当前图像和背景图像在所述前景区域中的角点数Nc、Nb以及在该区域匹配的角点数Nm,与设定参数T、T1、T2、T3的关系,判断所述前景区域是否有目标。其中:T、T1、T2、T3为设定阈值,他们的值与实际图像内容有关,如图像中的角点数等。
具体判断方法如下:
若Nm<T;Nb>T1;Nc>T1;这里T1约等于背景图像在前景区域中的角点数,T可以取较小的值;
这种情况表示当前图像和背景图像在前景区域中角点都很多,而该区域中匹配角点很少的情况,则判定有新物体(目标)出现。
若Nb≥T;Nc<T;Nm<T;这里T约等于背景图像在前景区域中的角点数,T1可以取较小的值;
这种情况表示当前图像在前景区域中的角点少,背景图像在前景区域中的角点多,该区域中匹配角点少的情况,则判定有物体(目标)被移除。
若Nc<T;Nb<T2;这里T、T2可以取较小的值;
这种情况表示当前图像和背景图像在前景区域中角点都很少的情况,判定此时并无物体(目标)出现,前景是由光照引起的。
若Nc>T1;Nm≥Nb×T3;Nm≥T;这里T1约等于背景图像在前景区域中的角点数,T≤T1,T3为一个百分比;
这种情况表示当前图像在前景区域中角点多,背景图像在前景区域中角点多,该区域中匹配角点个数达到背景图像角点个数的一定百分比的情况,判定此时并无物体(目标)出现,前景是由光照引起的。
本发明与已有的相应技术相比,这种基于角点检测的目标提取方法,能够在强光环境中即使产生光斑以及目标颜色分布均匀的情况下,消除光照影响,更加准确的提取出目标,提高了目标检测的准确性。

Claims (5)

1.视频图像中提取目标的方法,包括以下步骤:
a、采集前一帧图像和当前帧图像;
b、检测前一帧图像和当前帧图像的角点;
c、根据当前帧图像与前一帧图像的差,得到前景区域;
d、分别统计前一帧图像和当前帧图像在所述前景区域中的角点数,以及前一帧图像和当前帧图像在该区域中位置匹配的角点数;
e、根据步骤d统计的角点数与设定参数的关系,判断所述前景区域是否有目标。
2.根据权利要求1所述的视频图像中提取目标的方法,其特征在于,步骤d中,采用背景减除法得到当前帧图像与前一帧图像的差。
3.根据权利要求1或2所述的视频图像中提取目标的方法,其特征在于,记当前帧图像在前景区域中的角点个数为Nc,前一帧图像在同一区域中角点个数为Nb,前一帧图像和当前帧图像在前景区域中位置匹配的角点数为Nm
步骤e的具体判断方法如下:
e1、若
Nm<T;Nb>T1;Nc>T1
其中T、T1为设定阈值,则判定有目标进入;
e2、若
Nb≥T;Nc<T;Nm<T;
则判定有目标被移除;
e3、若
Nc<T;Nb<T2
其中T2为设定阈值,则判定此时并无目标出现,前景区域是由光照引起的;
e4、若
Nc>T1;Nm≥Nb×T3;Nm≥T;
其中T3为设定阈值,且T3为一个百分比,则判定此时并无目标出现,前景区域是由光照引起的。
4.根据权利要求3所述的视频图像中提取目标的方法,其特征在于,所述前一帧图像为固定区域的背景图像。
5.根据权利要求1或2所述的视频图像中提取目标的方法,其特征在于,所述前一帧图像为固定区域的背景图像。
CN2010101149227A 2010-02-26 2010-02-26 视频图像中提取目标的方法 Expired - Fee Related CN101789127B (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010101149227A CN101789127B (zh) 2010-02-26 2010-02-26 视频图像中提取目标的方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010101149227A CN101789127B (zh) 2010-02-26 2010-02-26 视频图像中提取目标的方法

Publications (2)

Publication Number Publication Date
CN101789127A CN101789127A (zh) 2010-07-28
CN101789127B true CN101789127B (zh) 2012-01-18

Family

ID=42532330

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010101149227A Expired - Fee Related CN101789127B (zh) 2010-02-26 2010-02-26 视频图像中提取目标的方法

Country Status (1)

Country Link
CN (1) CN101789127B (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102044080B (zh) * 2010-12-16 2014-04-23 北京航空航天大学 一种运动物体检测方法和装置
CN102685398B (zh) * 2011-09-06 2014-08-13 天脉聚源(北京)传媒科技有限公司 一种新闻视频场景生成方法
CN104182993B (zh) * 2014-09-10 2017-02-15 四川九洲电器集团有限责任公司 一种目标跟踪的方法

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100511269C (zh) * 2006-06-26 2009-07-08 北京航空航天大学 一种基于角点引导的图像快速边缘匹配方法
CN101216941B (zh) * 2008-01-17 2010-04-21 上海交通大学 剧烈光照变化下基于角点匹配与光流法的运动估计方法
CN101655982B (zh) * 2009-09-04 2011-06-29 上海交通大学 基于改进Harris角点的图像配准方法

Also Published As

Publication number Publication date
CN101789127A (zh) 2010-07-28

Similar Documents

Publication Publication Date Title
CN103530878B (zh) 一种基于融合策略的边缘提取方法
CN103778624A (zh) 一种基于最优阈值分割的织物疵点检测方法
CN105447512A (zh) 一种精粗结合的光学表面缺陷的检测方法及装置
CN104574418A (zh) 基于神经网络的压力容器焊缝缺陷识别方法及其装置
CN109255326B (zh) 一种基于多维信息特征融合的交通场景烟雾智能检测方法
CN115249246A (zh) 一种光学玻璃表面缺陷检测方法
Jin et al. TFT-LCD mura defect detection using DCT and the dual-γ piecewise exponential transform
CN109767445A (zh) 一种高精度的pcb缺陷智能检测方法
CN111611907A (zh) 一种图像增强的红外目标检测方法
CN101789127B (zh) 视频图像中提取目标的方法
CN106327464A (zh) 一种边缘检测方法
Yang et al. An efficient method for vehicle model identification via logo recognition
CN106353324A (zh) 磁环表面缺陷提取方法
CN114494318A (zh) 基于大津算法的角膜动态形变视频提取角膜轮廓的方法
CN100465997C (zh) 基于元胞自动机的图像边缘检测算法
CN102313740B (zh) 太阳能电池板裂痕检测方法
CN101877135B (zh) 一种基于背景重构的运动目标检测方法
Gong et al. An improved Canny algorithm based on adaptive 2D-Otsu and Newton Iterative
CN109584269A (zh) 一种目标跟踪方法
CN102279925B (zh) 链式处理人脸识别方法及***
Chen et al. Study of Sub-pixel Level Edge Extraction for Graphics Under Different Environmental Conditions
CN108830281B (zh) 一种基于局部变化检测和空间加权的重复图像匹配方法
Wu et al. Moving-object Detection Based on Shadow Removal and Prospect Reconstruction
Cao et al. False alarm sources detection based on LNIP and local probability distribution in infrared image
CN111815600A (zh) 一种基于视觉的环形磁钢外观缺陷检测方法

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB03 Change of inventor or designer information

Inventor after: Supplementary construction

Inventor after: Luo An

Inventor after: Zhou Congjun

Inventor after: Bai Yun

Inventor after: Hu Ruhuan

Inventor after: Yang Yun

Inventor before: Lu Lu

Inventor before: Zou Jianhua

Inventor before: Bai Yun

COR Change of bibliographic data

Free format text: CORRECT: INVENTOR; FROM: LU LU ZOU JIANHUA BAI YUN TO: BU JIAN LUO AN ZHOU CONGJUN BAI YUN HU RUHUAN YANG YUN

C14 Grant of patent or utility model
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Method for extracting target from video image

Effective date of registration: 20150119

Granted publication date: 20120118

Pledgee: The Agricultural Bank of Chengdu branch of Limited by Share Ltd. China Chengdu

Pledgor: CHENGDU SANTAI ELECTRONIC INDUSTRY Co.,Ltd.

Registration number: 2015510000005

PLDC Enforcement, change and cancellation of contracts on pledge of patent right or utility model
C56 Change in the name or address of the patentee

Owner name: CHENGDU SANTAI HOLDINGS GROUP CO., LTD.

Free format text: FORMER NAME: CHENGDU SANTAI ELECTRONIC INDUSTRY CO., LTD.

CP01 Change in the name or title of a patent holder

Address after: 610091 Jinniu District high tech Industrial Park, Sichuan, Sichuan West Road, No. 42, No.

Patentee after: CHENGDU SANTAI HOLDING GROUP CO.,LTD.

Address before: 610091 Jinniu District high tech Industrial Park, Sichuan, Sichuan West Road, No. 42, No.

Patentee before: CHENGDU SANTAI ELECTRONIC INDUSTRY Co.,Ltd.

PLDC Enforcement, change and cancellation of contracts on pledge of patent right or utility model
PM01 Change of the registration of the contract for pledge of patent right

Change date: 20160205

Registration number: 2015510000005

Pledgor after: CHENGDU SANTAI HOLDING GROUP CO.,LTD.

Pledgor before: CHENGDU SANTAI ELECTRONIC INDUSTRY Co.,Ltd.

PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20160229

Granted publication date: 20120118

Pledgee: The Agricultural Bank of Chengdu branch of Limited by Share Ltd. China Chengdu

Pledgor: CHENGDU SANTAI HOLDING GROUP CO.,LTD.

Registration number: 2015510000005

PLDC Enforcement, change and cancellation of contracts on pledge of patent right or utility model
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Method for extracting target from video image

Effective date of registration: 20160317

Granted publication date: 20120118

Pledgee: The Agricultural Bank of Chengdu branch of Limited by Share Ltd. China Chengdu

Pledgor: CHENGDU SANTAI HOLDING GROUP CO.,LTD.

Registration number: 2016510000008

PLDC Enforcement, change and cancellation of contracts on pledge of patent right or utility model
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20210129

Granted publication date: 20120118

Pledgee: The Agricultural Bank of Chengdu branch of Limited by Share Ltd. China Chengdu

Pledgor: CHENGDU SANTAI HOLDING GROUP Co.,Ltd.

Registration number: 2016510000008

PC01 Cancellation of the registration of the contract for pledge of patent right
TR01 Transfer of patent right

Effective date of registration: 20210305

Address after: No. 1305, unit 1, building 1, No. 1700, North Tianfu Avenue, Chengdu hi tech Zone, China (Sichuan) pilot Free Trade Zone, Chengdu, Sichuan 610093

Patentee after: CHENGDU SANTAI INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: 610091 No. 42 Shu West Road, Jinniu District hi tech Industrial Park, Sichuan, Chengdu

Patentee before: CHENGDU SANTAI HOLDING GROUP Co.,Ltd.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120118

CF01 Termination of patent right due to non-payment of annual fee