CN100543765C - Method for monitoring instruction based on computer vision - Google Patents

Method for monitoring instruction based on computer vision Download PDF

Info

Publication number
CN100543765C
CN100543765C CNB2008100075534A CN200810007553A CN100543765C CN 100543765 C CN100543765 C CN 100543765C CN B2008100075534 A CNB2008100075534 A CN B2008100075534A CN 200810007553 A CN200810007553 A CN 200810007553A CN 100543765 C CN100543765 C CN 100543765C
Authority
CN
China
Prior art keywords
target
moving target
pixel
model
monitoring instruction
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
CNB2008100075534A
Other languages
Chinese (zh)
Other versions
CN101256626A (en
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.)
Dalian Feng Feng Information Technology Co Ltd
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CNB2008100075534A priority Critical patent/CN100543765C/en
Publication of CN101256626A publication Critical patent/CN101256626A/en
Application granted granted Critical
Publication of CN100543765C publication Critical patent/CN100543765C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Analysis (AREA)

Abstract

A kind of method for monitoring instruction based on computer vision is used for the intelligent video monitoring field.This method is gathered the video image of some frames in advance by rig camera, set up model of place based on nonparametric statistics with this.Video image for new detects the foreground point with model of place, and obtains moving target by further processing of morphologic filtering.Then moving target is extracted the weighted histogram feature, and adopt histogram matching pursuit movement target, obtain the movement locus of target.Judge whether target trajectory enters the warning region of setting, thereby whether decision gives the alarm.This invasion inspection method for supervising adopts computer vision technique, the video information of utilizing the Computer Processing rig camera to obtain, and realization detects automatically and reports to the police, and equipment is simple, easy realizes having vast market prospect and using value.

Description

Method for monitoring instruction based on computer vision
Technical field
The present invention relates to a kind of method for monitoring instruction, be specifically related to a kind of method for monitoring instruction based on computer vision technique.
Background technology
The monitoring instruction system refers to utilizes camera to judge the system that concerns between target and the fixed area, as judging swarming into of warning region, and being strayed into etc. of dangerous area.At present, this type systematic is mainly finished by 24 hours visual inspection monitoring screens of security personnel.This is a very hard work, and owing to reasons such as fatigues, people's notice is easy to disperse.So handle the video information that camera returns by computing machine, monitor highly significant to replace manpower.
Summary of the invention
The object of the present invention is to provide a kind of method for monitoring instruction, to improve the deficiency that adopts manpower to monitor in the existing method based on computer vision.
Method for monitoring instruction based on computer vision of the present invention may further comprise the steps: obtain the successive frame video image of some, the scene information when these images are mainly described no moving target and existed; According to the pixel value of the multiple image that obtains, set up background model with nonparametric statistical method; For the image that newly obtains, utilize the background model that obtains, the thresholding comparison that each pixel is under the jurisdiction of the probability of background and sets in advance in the estimated image judges with this whether this point is the foreground point; The morphologic filtering processing is carried out in the foreground point obtain the prospect block, whether the area size decision according to the prospect block is moving target afterwards; Adopt the weighted histogram feature to modeling target, and adopt histogram matching to follow the tracks of above-mentioned moving target; Utilize pursuit path, judge whether moving target enters the sensitizing range of prior setting, report to the police if enter then
Below each step of this invention is specified:
(1) background modeling
At first collect the background image of some.Then each pixel in the background image is carried out statistical modeling.The background model that obtains is distributed by the background color of each location of pixels in the image and describes, and the nonparametric statistical method of these distributions is as follows:
p ( x i ) = 1 N Σ i = 1 N Π j = 1 d 1 2 πσ j 2 exp ( - ( x t j - x t j ) 2 2 σ j 2 )
Wherein, x tBe the d dimension color characteristic observed reading of certain location of pixels of moment t, { x i} I=1 ..., NThis pixel position that expression is collected in advance one group of d dimension background color observed reading, exp (x) represents exponential function, σ jBe each dimensional feature corresponding variance, then p (x t) be t this pixel value x constantly tThe probable value that belongs to background.
(2) moving object detection
Obtain after the background statistical model, carve t at a time, the detection of foreground target can be by comparing probable value p (x in the image t) and the size of certain threshold values decide.Pixel value x for certain position in the image tIf, probable value p (x t) less than the threshold values of certain setting, then current corresponding pixel is the foreground point, otherwise corresponding pixel is a background dot.In order to increase robustness, need further carry out mathematical morphology filter for the detected foreground point of background model and handle.The step that these mathematical morphology filters are handled comprises medium filtering, morphological erosion and morphology expansive working.For the foreground area that obtains after handling, choose area wherein greater than given threshold value as moving target.
(3) modeling target
After obtaining motion target area, this method adopts weighting color histogram model to come modeling target.For certain height h, width w, center position is y cThe foreground moving target area, this regional weighting color histogram model is
Figure C200810007553D00051
Wherein u is that color space quantizes back corresponding quantitative sequence number, and scope is 1 ..., m.Each
Figure C200810007553D00052
Computing method as follows:
q ^ u = C Σ i = 1 n k ( | | y i - y c h 2 + w 2 | | 2 ) δ [ b ( y i ) - u ]
Wherein, y 1Represent certain pixel coordinate of this motion target area, the number of pixels of whole target area is n, b (y i) function obtains the quantification sequence number of this location of pixels pixel value, δ (x) function shows the Kronecker function, is defined as:
Figure C200810007553D00054
C is a normalization coefficient, makes
Figure C200810007553D00055
Satisfy Σ u = 1 m q ^ u = 1 Requirement.Function k (x) is the Epanechnikov function, and form is
Figure C200810007553D00057
D wherein, c dBe constant
(4) motion tracking and invasion are judged
Here adopt the method for histogram feature coupling to come the pursuit movement target.At t constantly, the weighted histogram model of certain moving target A is
Figure C200810007553D00058
At t+1 constantly, in order to determine the reposition of target A.At first in the image of t+1, find, calculate their weighting color model, then calculate apart from the nearer several moving targets of target A original position Similarity with these targets Then the moving target of maximum similarity correspondence and target A are complementary, thereby obtain the reposition of target A.
q ^ A t + 1 = arg max q ^ i t + 1 s ( q ^ A t , q ^ i t + 1 ) = arg max q ^ t t + 1 ( Σ n = 1 m q ^ A u , q ^ i u )
Just can realize the tracking of moving target by the target of continuous coupling consecutive frame.When this target trajectory dropped in advance warning region by user's appointment, then system judged that invasion takes place and reports to the police.
Method for monitoring instruction based on computer vision of the present invention, adopt computer vision technique, utilize rig camera and computing machine to realize the monitoring instruction of sensitizing range, equipment needed thereby realize simply, easily and also cost lower, avoided manual supervisory hard work amount and fatigue problem.
Description of drawings
In order to understand the present invention better, the present invention will be described in detail below in conjunction with accompanying drawing, wherein:
Fig. 1 is the hardware system block diagram of method for monitoring instruction of the present invention;
Fig. 2 is the scene synoptic diagram of method for monitoring instruction of the present invention.
Fig. 3 is the realization flow figure of method for monitoring instruction of the present invention.
Embodiment
As shown in Figure 1, the hardware system of method for monitoring instruction of the present invention comprises: video camera is used to gather video image; Video Codec, the image that is used for video camera is gathered carries out encoding and decoding processing and Network Transmission; Computing machine is used to receive the video image from Video Codec, utilizes method for monitoring instruction of the present invention that the video image that is received is handled then.
Below in conjunction with Fig. 3 the method for monitoring instruction based on computer vision of the present invention is described.
At first set up initial back-ground model, promptly utilize the camera acquisition video image, collect the background image of N frame, and obtain each pixel in the image (i, j) d of position dimension pixel value.
Then, utilize N pixel value of each pixel position to set up the nonparametric statistics model, this model is expressed with a probability function:
p ( x i ) = 1 N Σ i = 1 N Π j = 1 d 1 2 πσ j 2 exp ( - ( x t j - x t j ) 2 2 σ j 2 ) (formula 1)
Wherein, x iBe the d dimension color characteristic observed reading of certain location of pixels of moment t, { x i} T=1 ..., NThis pixel position that expression is collected in advance one group of d dimension background color observed reading, exp (x) represents exponential function, σ jBe each dimensional feature corresponding variance, then p (x t) be moment t pixel value x tThe probable value that belongs to background.
(i after the background model of j) locating, utilizes given threshold values TH obtaining pixel 1Detect the foreground point: at moment t, for pixel (i, pixel value x j) tIf, p (x t)≤TH 1, then (i j) is the foreground point to pixel, denys the person, and (i j) is background dot to pixel.Because the major part point of generalized case hypograph all is a background dot, the sum term in the formula (1) had generally just surpassed threshold values before also not calculated the N item, and therefore most of point just can dispose in very short time.
After having detected the foreground point, need carry out mathematical morphology to foreground image and handle with filtering noise, filling cavity, specifically described processing comprises medium filtering, corrosion operation and expansive working.Carry out according to the following steps: foreground image is carried out 3 * 3 medium filtering, to remove isolated noise spot; The image that obtains after the filtering carried out 5 * 5 morphology expansive working; The image that obtains after expanding is carried out border tracking or marginal point connection, obtain the border of each connected region in the image, thereby the relevant information that obtains each connected region is gone out area less than certain threshold values TH then as size, area etc. 2Or connected region in irregular shape; The pixel of inside, border is set to the foreground point, to fill the cavity that wherein may exist.Through after the aftertreatment, area is greater than given threshold values TH 3The zone be chosen to be moving target.
Then adopt the weighting color histogram to come moving target is carried out modeling, specific as follows:
If { y i} I=1,2 ..., nBe certain height h, width w, center position is y cThe foreground moving target area in the set of n pixel.B (y i) represent the quantification sequence number of this pixel in the color quantizing space to quantize serial number range u=0,1 ..., m.Weighting color histogram model that then should the zone is
Figure C200810007553D00071
Each
Figure C200810007553D00072
Computing method as follows:
q ^ u = C Σ i = 1 n k ( | | y i - y c h 2 + w 2 | | 2 ) δ [ b ( y i ) - u ] (formula 2)
Wherein, y iRepresent certain pixel coordinate of this motion target area, C is a normalization coefficient, makes
Figure C200810007553D00074
Satisfy Σ u = 1 m q ^ u = 1 Requirement.δ (x) function shows the Kronecker function, is defined as:
Figure C200810007553D00076
Function k (x) is the Epanechnikov function, and form is
D wherein, c dBe constant.
Obtain after the color histogram model of moving target, adopt the method for histogram feature coupling to come the pursuit movement target.At t constantly, the weighted histogram model of certain moving target A is
Figure C200810007553D00078
At t+1 constantly, in order to determine the reposition of target A, at first in the image of t+1, find, and calculate their weighting color model apart from the nearer several moving targets of target A original position.Then respectively and and
Figure C200810007553D00081
Relatively, try to achieve similarity
Figure C200810007553D00082
Here adopt the Bhattacharyya coefficient to calculate similarity:
s ( q ^ A t , q ^ i t + 1 ) = Σ u = 1 m q ^ A u , q ^ i u (formula 5)
Satisfying s ( q ^ A t , q ^ i t + 1 ) ≥ TH 4 All targets in, find the moving target with target A similarity maximum, this target location is exactly the reposition of target A.
q ^ A t + 1 = arg max q ^ i t + 1 s ( q ^ A t , q ^ i t + 1 ) = arg max q ^ t t + 1 ( Σ n = 1 m q ^ A u , q ^ i u ) (formula 6)
If target A can not find certain target and makes s ( q ^ A t , q ^ i t + 1 ) ≥ TH 4 , Then may target A left the target in the visual field and by other target occlusion, for this situation, A is kept with target, and in some two field pictures of back, continue to mate, if never mate, just think that this target left the target in the visual field,, then rebulid the pursuit path of A target in follow-up image if the coupling target is arranged.
Just can obtain the pursuit path of moving target by the target of continuous coupling consecutive frame.When this target trajectory dropped in advance warning region by user's appointment, then system judged that invasion takes place and reports to the police.

Claims (6)

1, a kind of method for monitoring instruction based on computer vision is characterized in that, may further comprise the steps: obtain the successive frame video image of some, the scene information when these images are mainly described no moving target and existed; According to the pixel value of the multiple image that obtains, set up background model with nonparametric statistical method; For the image that newly obtains, utilize the background model that obtains, the thresholding comparison that each pixel is under the jurisdiction of the probability of background and sets in advance in the estimated image judges with this whether this point is the foreground point; The morphologic filtering processing is carried out in the foreground point obtain the prospect block, whether the area size decision according to the prospect block is moving target afterwards; Adopt the weighted histogram feature to modeling target, and adopt histogram matching to follow the tracks of above-mentioned moving target; Utilize pursuit path, judge whether moving target enters the sensitizing range of prior setting, report to the police if enter then.
2, method for monitoring instruction according to claim 1 is characterized in that, background model is distributed by the background color of each pixel position in the image and describes, and these distributions obtain by the nonparametric statistics of multiframe background image:
p ( x t ) = 1 N Σ i = 1 N Π j = 1 d 1 2 πσ j 2 exp ( - ( x t j - x t j ) 2 2 σ j 2 )
Wherein, x tBe the d dimension color characteristic observed reading of certain location of pixels of moment t, { x l} L=1 ..., NThe observed one group of d dimension in this pixel position color characteristic observed reading during the expression modeling, exp (x) represents exponential function, σ jBe every dimensional feature corresponding variance, then p (x t) be t pixel value x constantly tThe probable value that belongs to background.
3, method for monitoring instruction according to claim 1 is characterized in that, this method is by comparing probable value p (x t) and certain size of setting threshold values decide t this pixel value x constantly tWhether belong to prospect: if probable value p is (x t) less than the threshold values of certain setting, then current corresponding pixel is the foreground point, otherwise corresponding pixel is a background dot.
4, method for monitoring instruction according to claim 1, it is characterized in that, mathematical morphology filter is carried out in the detected foreground point of background model to be handled, the step that these mathematical morphology filters are handled comprises medium filtering, morphological erosion and morphology expansive working, for the foreground area after handling, the chosen area area greater than given threshold value as moving target.
5, method for monitoring instruction according to claim 1 is characterized in that, adopts weighting color histogram model to come modeling target; For height h, width w, center position is y cThe foreground moving target area, this regional weighting color histogram model is
Figure C200810007553C00022
Wherein u is that color space quantizes back corresponding quantitative sequence number, and scope is 1 ..., m; Then each
Figure C200810007553C00023
Computing method as follows:
q ^ u = C Σ i = 1 n k ( | | y i - y c h 2 + w 2 | | 2 ) δ [ b ( y i ) - u ]
Wherein, y iRepresent certain pixel coordinate of this motion target area, total number of pixels of target area is n, b (y i) function obtains the quantification sequence number of this location of pixels pixel value under quantizing in the space, C is a normalization coefficient, makes
Figure C200810007553C00025
Satisfy Σ n = 1 m q ^ u = 1 Requirement; δ (x) function is the Kronecker function, is defined as:
Figure C200810007553C00031
Function k (x) is the Epanechnikov function, and form is
Figure C200810007553C00032
D wherein, c dBe constant.
6, method for monitoring instruction according to claim 1 is characterized in that, adopts based on the method for histogram feature coupling and comes the pursuit movement target; At t constantly, the weighted histogram model of moving target A is
Figure C200810007553C00033
At t+1 constantly, calculate near the weighting color model of the several moving targets of target A original position
Figure C200810007553C00034
And and
Figure C200810007553C00035
Relatively try to achieve similarity
Figure C200810007553C00036
Then the moving target of maximum similarity correspondence and target A are complementary:
q ^ A t + 1 = arg max q ^ t t + 1 s ( q ^ A t , q ^ i t + 1 ) = arg max q ^ t t + 1 ( Σ u = 1 m q ^ A u , q ^ i u )
Thereby realized the tracking of moving target by the target of continuous coupling consecutive frame; For the moving target on following the tracks of, judge whether its movement locus drops in the warning region of prior appointment, judge with this whether invasion takes place and report to the police.
CNB2008100075534A 2008-02-28 2008-02-28 Method for monitoring instruction based on computer vision Expired - Fee Related CN100543765C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2008100075534A CN100543765C (en) 2008-02-28 2008-02-28 Method for monitoring instruction based on computer vision

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2008100075534A CN100543765C (en) 2008-02-28 2008-02-28 Method for monitoring instruction based on computer vision

Publications (2)

Publication Number Publication Date
CN101256626A CN101256626A (en) 2008-09-03
CN100543765C true CN100543765C (en) 2009-09-23

Family

ID=39891436

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2008100075534A Expired - Fee Related CN100543765C (en) 2008-02-28 2008-02-28 Method for monitoring instruction based on computer vision

Country Status (1)

Country Link
CN (1) CN100543765C (en)

Families Citing this family (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420536B (en) * 2008-11-28 2011-03-02 江苏科海智能系统有限公司 Background image modeling method for video stream
CN101577812B (en) * 2009-03-06 2014-07-30 北京中星微电子有限公司 Method and system for post monitoring
CN102222342A (en) * 2010-04-16 2011-10-19 上海摩比源软件技术有限公司 Tracking method of human body motions and identification method thereof
CN102222343A (en) * 2010-04-16 2011-10-19 上海摩比源软件技术有限公司 Method for tracking human body motions and system thereof
CN101969547A (en) * 2010-07-30 2011-02-09 新疆宏开电子系统集成有限公司 Method for processing infrared digital video signal at night
CN102096977A (en) * 2010-11-26 2011-06-15 上海电力带电作业技术开发有限公司 Method for video monitoring and prewarning of intrusive external force
CN102169614B (en) * 2011-01-14 2013-02-13 云南电力试验研究院(集团)有限公司 Monitoring method for electric power working safety based on image recognition
CN102096926B (en) * 2011-01-21 2012-12-12 浙江宇视科技有限公司 Motion detection method and device
CN102855465B (en) * 2012-04-12 2016-10-05 江苏慧眼数据科技股份有限公司 A kind of tracking of mobile object
CN102855466B (en) * 2012-04-12 2016-12-21 江苏慧眼数据科技股份有限公司 A kind of demographic method based on Computer Vision
CN103489202A (en) * 2013-01-15 2014-01-01 上海盈觉智能科技有限公司 Intrusion detection method based on videos
CN103152558B (en) * 2013-03-29 2015-10-07 西南交通大学 Based on the intrusion detection method of scene Recognition
CN104392464B (en) * 2014-09-30 2017-08-29 天津艾思科尔科技有限公司 A kind of artificial intrusion detection method based on color video frequency image
CN105303582B (en) * 2014-12-01 2018-07-10 天津光电高斯通信工程技术股份有限公司 High ferro platform perimeter detection method
CN104601969A (en) * 2015-02-26 2015-05-06 张耀 District fortifying method and device
CN105957098A (en) * 2016-04-15 2016-09-21 张志华 Unmanned reservoir monitoring system
CN105957099A (en) * 2016-04-15 2016-09-21 张志华 Red light running monitoring device
CN106297130A (en) * 2016-08-22 2017-01-04 国家电网公司 Transmission line of electricity video analysis early warning system
CN109889793A (en) * 2016-08-30 2019-06-14 吴玉芳 Cloud computing platform and can recognition of face video monitoring intelligence Skynet system
CN107222660B (en) * 2017-05-12 2020-11-06 河南工业大学 Distributed network vision monitoring system
CN107316024B (en) * 2017-06-28 2021-06-29 北京博睿视科技有限责任公司 Perimeter alarm algorithm based on deep learning
CN108281001A (en) * 2018-02-13 2018-07-13 山东顺国电子科技有限公司 Vehicle monitoring method and device
CN108846335B (en) * 2018-05-31 2021-07-30 武汉市蓝领英才科技有限公司 Intelligent construction site area management and intrusion detection method and system based on video images
CN108540780A (en) * 2018-06-08 2018-09-14 苏州清研微视电子科技有限公司 Intelligent mobile household monitoring system based on sweeping robot equipment
CN110458045A (en) * 2019-07-22 2019-11-15 浙江大华技术股份有限公司 Acquisition methods, image processing method and the device of response probability histogram
CN110766917A (en) * 2019-09-26 2020-02-07 山东中衡光电科技有限公司 Video monitoring and early warning system for mine dangerous area
CN111444854B (en) * 2020-03-27 2021-03-02 科大讯飞(苏州)科技有限公司 Abnormal event detection method, related device and readable storage medium
CN111402298A (en) * 2020-03-30 2020-07-10 南京财经大学 Grain depot video data compression method based on target detection and trajectory analysis
CN112183337A (en) * 2020-09-28 2021-01-05 华北电力大学(保定) Detection method and device for preventing mechanical invasion of power transmission line
CN115690162B (en) * 2022-12-28 2023-03-10 武汉凡德智能科技有限公司 Method and device for detecting moving large target in fixed video

Also Published As

Publication number Publication date
CN101256626A (en) 2008-09-03

Similar Documents

Publication Publication Date Title
CN100543765C (en) Method for monitoring instruction based on computer vision
CN102073851B (en) Method and system for automatically identifying urban traffic accident
CN100578563C (en) Vehicle count method based on video image
CN104240235A (en) Method and system for detecting whether camera is covered or not
CN104123544B (en) Anomaly detection method and system based on video analysis
CN102006461B (en) Joint tracking detection system for cameras
CN101188745B (en) Intelligent drowning video monitoring system and method for natatorium
CN101303727B (en) Intelligent management method based on video human number Stat. and system thereof
CN100555348C (en) Intelligent video monitoring system of bank self-aid apparatus
CN103745230B (en) Adaptive abnormal crowd behavior analysis method
CN102665071A (en) Intelligent processing and search method for social security video monitoring images
CN110021133B (en) All-weather fire-fighting fire patrol early-warning monitoring system and fire image detection method
CN102469302B (en) Background model learning system for lighting change adaptation utilized for video surveillance
CN101290682A (en) Movement target checking method and apparatus
CN105046719B (en) A kind of video frequency monitoring method and system
CN102855465B (en) A kind of tracking of mobile object
CN108647575A (en) Drowned method for early warning based on optical visual analysis
CN110233991A (en) A kind of detection method and system for video shelter in video monitoring
CN103150736A (en) Camera motion detecting method based on video monitoring
CN111461078A (en) Anti-fishing monitoring method based on computer vision technology
CN102722700A (en) Method and system for detecting abandoned object in video monitoring
CN107909599A (en) A kind of object detecting and tracking system
CN103281518A (en) Multifunctional networking all-weather intelligent video monitoring system
CN114357243A (en) Massive real-time video stream multistage analysis and monitoring system
CN102364944A (en) Video monitoring method for preventing gathering of people

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: DALIAN FENGSHI INFORMATION TECHNOLOGY CO., LTD.

Effective date: 20120503

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 225003 YANGZHOU, JIANGSU PROVINCE TO: 116085 DALIAN, LIAONING PROVINCE

TR01 Transfer of patent right

Effective date of registration: 20120503

Address after: 116085, Dalian hi tech Industrial Park Hui Yin Garden, No. 1, room 2, room 02-08A

Patentee after: Dalian Feng Feng Information Technology Co., Ltd.

Address before: 225003, room 22, building 301, Wenchang garden, Guangling District, Jiangsu, Yangzhou

Co-patentee before: Cheng Jicheng

Patentee before: Wang Lu

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

Granted publication date: 20090923

Termination date: 20180228