CN102222349A - Prospect frame detecting method based on edge model - Google Patents
Prospect frame detecting method based on edge model Download PDFInfo
- Publication number
- CN102222349A CN102222349A CN 201110185415 CN201110185415A CN102222349A CN 102222349 A CN102222349 A CN 102222349A CN 201110185415 CN201110185415 CN 201110185415 CN 201110185415 A CN201110185415 A CN 201110185415A CN 102222349 A CN102222349 A CN 102222349A
- Authority
- CN
- China
- Prior art keywords
- frame
- edge
- prospect
- sequence
- background
- 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.)
- Granted
Links
Images
Landscapes
- Image Analysis (AREA)
Abstract
The invention discloses a prospect frame detecting method based on an edge model, which is used for prospect frame determination in the analysis of a security monitoring video frame sequence. The method comprises the following steps of: extracting edge frames only containing edge images from sequence frames by means of a pseudo-sphere edge detection operator; counting the presence probability of edge points of the edge frames in frame sequence statistic time, marking a background attribute and a foreground attribute based on a determination condition of distinguishing according to the attributes of the edge pixel points within the current edge frame; in a foreground edge image, if the number of the edge points connected together in the current frame is less than or equal to 2, determining that the points are noise points and removing these points; and if the total number of pixels of the left foreground edge images is less than a noise determination threshold of the sequence frame, determining that the frames are background frames, otherwise, foreground frames. The method of the invention reduces the calculation cost, effectively adapts to the cases of background light change, slow object motion or short stagnation and the like, and creates favourable conditions for subsequent object motion analysis.
Description
Technical field
The present invention relates to machine vision technique, the prospect frame that is specifically related to be applied in the analysis of safety monitoring sequence of frames of video is judged.
Background technology
It is the technology that detects the foreground target that whether has motion or slowly mobile or short stay in the video that the prospect frame detects, at present in the video analysis process, widely used is that the less frame difference method of calculation cost and background method are (referring to Herrero S, Besc ó s J. Background Subtraction Techniques:Systematic Evaluation and Comparative Analysis[C] //Proceedings of the 11th International Conference on Advanced Concepts for Intelligent Vision Systems.Springer-Verlag. 2009,5807/2009:33-42).Frame difference method is responsive to noise ratio, is difficult for detecting the slowly mobile or temporary transient static foreground target of fixed area; And the background method is to the relative robust of noise, but influenced greatly by illumination variation, foreground target detects wayward, therefore, for addressing these problems, in recent years based on the algorithm of profile neighborhood information such as Snake model (referring to: Nie Xuan, Zhao Rongchun, Shen Yaping. the moving target profile based on the Snake technology extracts [J]. computer engineering. 2005,31 (23): 148-150), level set (referring to: Gong Yongyi, Luo Xiaonan, Huang Hui etc. the multiple goal profile based on single level set extracts [J]. Chinese journal of computers. 2007,30 (001): 120-128) etc., although it is better to be used for the foreground detection result, but the computation complexity height is difficult to reach live effect.
Summary of the invention
The objective of the invention is: overcome the slow even temporary transient defective of stagnating of speed that general foreground detection method can not adapt to variation of scene light and foreground moving target, a kind of simple, real-time prospect frame detection method based on edge model that calculates is provided.
Technical scheme of the present invention adopts following steps: (1) adopts under same fixedly camera position, the Same Scene picked-up to need that the prospect frame detects, resolution to be
The particular detection video, only contain the edge frame of edge image with pseudo-ball edge detection operator abstraction sequence frame; (2) current the of the described edge frame of statistics
tThe frame border pixel (
I, j) at the frame sequence timing statistics
Interior probability of occurrence
,
Be
kThe pairing binaryzation edge image of frame; (3) Rule of judgment of distinguishing according to current edge frame inward flange pixel attribute
,
Be
tEdge pixel point on the pairing binaryzation edge image of frame, 0 is labeled as background attribute, and 1 is labeled as the prospect attribute,
Be background edge pixel decision threshold; (4) in the prospect edge image, if current the
tCounting and be less than or equal to 2 in the edge that links to each other in the frame, then removes for noise spot; To the sum of all pixels of last prospect edge image less than sequence frame noise edge judgment threshold
, be judged to and be background frames, otherwise be the prospect frame.
The invention has the beneficial effects as follows;
1, the present invention is based on edge model the prospect frame detection method theoretical foundation be that the stability of edge in frame sequence of foreground target is far away not as good as background edge, for the foreground moving analysis provides necessary, a spot of motion pixel, significantly reduced calculation cost.
2, the present invention not only is suitable for non-rigid body target prospect frame and judges, is applicable to that also the prospect frame of rigid body target is judged, can adapt to effectively that background light changes and target travel is slow or situation such as of short duration delay, for follow-up target motion analysis creates favorable conditions.
Description of drawings
Below in conjunction with the drawings and specific embodiments the present invention is described in further detail.
Fig. 1 is the process flow diagram of prospect frame detection method of the present invention.
Embodiment
Further specify technical scheme of the present invention below in conjunction with accompanying drawing:
Referring to shown in Figure 1, at first, extract video sample, adopt the particular detection video that picked-up needs the prospect frame to detect under same fixedly camera position, the Same Scene, resolution
Be 320 * 240, the implication of scene certain fixing geographic area of being meant shooting herein, different scene video parameter values is different, but under the Same Scene, the frame sequence timing statistics
, background edge pixel decision threshold
With sequence frame noise edge judgment threshold
These three parameter values are stable.The particular detection video that needs are detected manually intercepts.Then, the particular detection sequence of frames of video that needs are detected adopts pseudo-ball operator edge detection operator to handle, and extracts resolution
Be the edge image of 320 * 240 sequence frames, obtain only to contain the edge frame of edge image.
Before carrying out the detection of prospect frame, must obtain this three parameter values.
Comprise the of short duration delay of foreground target in the particular detection sequence of frames of video of artificial intercepting
Individual sample video-frequency band, and there are not the variation of scene light in these sample video-frequency bands is promptly chosen and is not contained that light changes but prospect sample video-frequency band that of short duration delay campaign can be arranged.Adopt instantaneous frame difference method (referring to Herrero S to each sample video-frequency band, Besc ó s J. Background Subtraction Techniques:Systematic Evaluation and Comparative Analysis[C] //Proceedings of the 11th International Conference on Advanced Concepts for Intelligent Vision Systems. Springer-Verlag. 2009,5807/2009:33-42) carry out motion detection, utilize instantaneous frame difference method can't discern the characteristics of static prospect, obtain temporary transient actionless foreground target by the time period of background absorption
As the hold-up time.The present frame foreground target area that after the consecutive frame difference, obtains
, it accounts for the two field picture total area
Ratio
Less than certain less threshold value
When (preferred 0.07), think that then prospect is detained or do not have a prospect, present frame attribute
Be labeled as 0, otherwise be 1, be i.e. Yun Dong prospect frame.Add up in every section video
Be that 0 length is as the time period continuously
In all video-frequency band samples, select the maximum time period
As maximum time period
(preferred 440), see formula (1):
Test in theory
Individual sample video hop count more better owing to can't obtain globally optimal solution, and there is local motion in non-rigid body target, it is very short really to be detained the actionless time, so
Value depend on that whether comprising maximum prospect in the video-frequency band that subjective judgement intercepts is detained at interval, in the practice
Desirable 5~10(preferred 10); And the existence of camera system electronic noise influences the stability that real scene is mapped to two dimensional image edge pixel point, so calculate maximum time period
Need add a modified value again
As final frame sequence timing statistics
Value, see formula (2),
Relevant with camera system, the different video acquisition system of size of value, modified value
Be inconsistent, general
Value is 10~20, and is preferred
Value is 16(20FPS).It also is final frame sequence timing statistics
Be 456, the motionless state of stopping of non-rigid body foreground target in the expression scene, the longest less than 22.8 seconds.If foreground target is a rigid body, and it is in a single day static when just being counted as background,
Can be made as 0.
1 the sample video-frequency band that does not comprise foreground target and do not exist scene light to change in the particular video frequency frame sequence of artificial intercepting, adopt pseudo-ball edge detection operator (referring to Wang Zhiheng to the sample video-frequency band, Wu Fuchao. pseudo-ball filtering and rim detection [J]. the software journal. 2008,19 (4): the 803-816) edge image of the sequence frame of extraction video sample, the scale parameter of pseudo-herein ball operator
Get 3.0, the edge keeps parameter
Get 0.1, template size is 5 * 5.At the frame sequence timing statistics
Under the prerequisite of determining, the pixel that calculates on each frame border at the probability that same position occurs is
, establish when the
tFrame background edge sum of all pixels is
P, then in the Making by Probability Sets that each point occurs therein, get minimum threshold
For judging the threshold value of target context edge pixel, see formula (3):
(3)
For obtaining adaptability threshold value preferably, need from the
tFrame begins follow-on test
nFrame (being taken as 15 here) is up to
T+nFrame, for avoiding exceptional value,
nIndividual
By ordering from small to large, get the median conduct
(preferred 0.644) sees formula (4).
If video to be detected is current
tThe edge pixel point of frame
Greater than
The time, edge and removing as a setting then, remaining being comprises noise at interior prospect edge image.Different video scenes is suitable
And it is inconsistent.
Artificial intercepting frame number is from the sample video-frequency band
(preferred
Frame) the video-frequency band that does not contain prospect
(preferred
Volume), right
Individual sample video-frequency band is respectively through the edge image of pseudo-ball edge detection operator abstraction sequence frame, the edge that keeps non-background, calculate the image that obtains through formula (8), formula (9) and be the noise image that does not contain prospect, removal is connected to 2 and reaches isolated noise edge pixel again, add up the remaining edge pixel number of spots of every frame at last, obtain
Individual discrete value, statistics the
iFrame border pixel quantity
By ordering from small to large, noise edge pixel quantity statistical property meets Gaussian distribution, adopts median method approximate the
iFrame border pixel quantity
Expectation value
With
Value is (preferred
Value is 35), see formula (5) and formula (7).
(5)
Then, statistics frame sequence timing statistics
The probability distribution of interior all edge pixels, the edge pixel point of promptly adding up edge frame is at the frame sequence timing statistics
In probability of occurrence, establish present frame and be the
tFrame is at the frame sequence timing statistics
Under the prerequisite of determining,
Be current
tThe frame border pixel (
I, j) probability, computing formula is seen formula (8).
Carry out the judgement of prospect frame in the frame sequence according to formula (8), by background edge pixel decision threshold
Extraction prospect edge image, the frame sequence timing statistics greater than
Video-frequency band in carry out the sport foreground frame and judge, wherein,
Be
kThe pairing binaryzation edge image of frame.The probability of occurrence of background edge pixel in theory
Inevitable greater than active margin pixel probability, promptly at the frame sequence timing statistics
In, if greater than background edge pixel decision threshold
, this edge pixel point
Be labeled as 0, show frame border
On time of occurring in same position of point long belong to background; Otherwise be labeled as 1, show that the time ratio of appearance is the activity prospect than what lack, see formula (9).
(9)
Reservation element marking value is 1 pixel in edge image, is the prospect edge image of extraction.
At last, in described prospect edge image, according to sequence frame noise edge Rule of judgment, the elimination noise pixel obtains the foreground target edge of frame.Whether be noise spot, if the edge pixel that links to each other in the present frame is counted according to neighborhood information if analyzing each prospect edge pixel point
Be less than or equal to 2, then be considered as noise spot and remove; But still exist continuous counting to surpass 2 noise possibility in theory, thus last prospect edge pixel sum is compared with sequence frame noise edge judgment threshold, to last prospect edge pixel sum threshold value
Judge that this frame detects and is background frames when being worth less than this, otherwise is the prospect frame, keeps the prospect frame.
Even the present invention's scene light changes and foreground target speed is slow even time-out, do not influence the detection of prospect frame yet, when detecting present frame when being the prospect frame, do the time spent as the monitoring security protection and can send early warning, or when analyzing, for subsequent act research provides a spot of, necessary foreground target information as foreground moving.
Claims (4)
1. prospect frame detection method based on edge model is characterized in that adopting following steps:
(1) adopt under same fixedly camera position, the Same Scene picked-up to need that the prospect frame detects, resolution to be
The particular detection video, only contain the edge frame of edge image with pseudo-ball edge detection operator abstraction sequence frame;
(2) current the of the described edge frame of statistics
tThe frame border pixel (
I, j) at the frame sequence timing statistics
Interior probability of occurrence
,
Be
kThe pairing binaryzation edge image of frame;
(3) Rule of judgment of distinguishing according to current edge frame inward flange pixel attribute
,
Be
tEdge pixel point on the pairing binaryzation edge image of frame, 0 is labeled as background attribute, and 1 is labeled as the prospect attribute,
Be background edge pixel decision threshold;
(4) in the prospect edge image, if current the
tCounting and be less than or equal to 2 in the edge that links to each other in the frame, then removes for noise spot; To the sum of all pixels of last prospect edge image less than sequence frame noise edge judgment threshold
, be judged to and be background frames, otherwise be the prospect frame.
2. a kind of prospect frame detection method based on edge model according to claim 1 is characterized in that: the described frame sequence timing statistics of step (2)
Determine by the following method:
1) manually intercepts and comprise the of short duration delay of foreground target in the particular video frequency frame sequence and do not exist scene light to change
Individual sample video-frequency band;
2) right
Individual sample video-frequency band is obtained temporary transient actionless foreground target frame number through instantaneous frame difference method respectively
As the hold-up time, the selection maximum
As
3. a kind of prospect frame detection method based on edge model according to claim 1 is characterized in that: the described background edge pixel of step (3) decision threshold
Determine by the following method:
1) manually intercepts 1 the sample video-frequency band that does not comprise foreground target in the particular video frequency frame sequence and do not exist scene light to change;
2) to the edge image of sample video-frequency band, at the frame sequence timing statistics through pseudo-ball edge detection operator abstraction sequence frame
Under the prerequisite of determining, the pixel that calculates on each frame border at the probability that same position occurs is
, when
tFrame background edge sum of all pixels is
P, get the probability minimum value
4. a kind of prospect frame detection method based on edge model according to claim 1 is characterized in that: the described sequence frame noise edge of step (4) judgment threshold
Determine by the following method:
1) manually intercepting the frame number that does not comprise prospect in the particular video frequency frame sequence is
Individual sample video-frequency band is right
Individual sample video-frequency band keeps the edge of non-background respectively through the edge image of pseudo-ball edge detection operator abstraction sequence frame;
2) the remaining edge pixel number of spots of the every frame of statistics, the
iFrame border pixel quantity
By ordering from small to large, obtain
Individual discrete value;
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110185415 CN102222349B (en) | 2011-07-04 | 2011-07-04 | Prospect frame detecting method based on edge model |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110185415 CN102222349B (en) | 2011-07-04 | 2011-07-04 | Prospect frame detecting method based on edge model |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102222349A true CN102222349A (en) | 2011-10-19 |
CN102222349B CN102222349B (en) | 2013-01-23 |
Family
ID=44778893
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201110185415 Expired - Fee Related CN102222349B (en) | 2011-07-04 | 2011-07-04 | Prospect frame detecting method based on edge model |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102222349B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102494976A (en) * | 2011-11-18 | 2012-06-13 | 江苏大学 | Method for automatic measurement and morphological classification statistic of ultra-fine grain steel grains |
CN103679745A (en) * | 2012-09-17 | 2014-03-26 | 浙江大华技术股份有限公司 | Moving target detection method and device |
CN104135597A (en) * | 2014-07-04 | 2014-11-05 | 上海交通大学 | Automatic detection method of jitter of video |
WO2020192095A1 (en) * | 2019-03-22 | 2020-10-01 | 浙江宇视科技有限公司 | Coding method and apparatus for surveillance video background frames, electronic device and medium |
CN113822879A (en) * | 2021-11-18 | 2021-12-21 | 南京智谱科技有限公司 | Image segmentation method and device |
CN114037633A (en) * | 2021-11-18 | 2022-02-11 | 南京智谱科技有限公司 | Infrared image processing method and device |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106384348B (en) * | 2016-09-09 | 2019-06-14 | 海信集团有限公司 | The method for detecting abnormality and device of monitoring image |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060239506A1 (en) * | 2005-04-25 | 2006-10-26 | Objectvideo, Inc. | Line textured target detection and tracking with applications to "Basket-run" detection |
CN101582160A (en) * | 2009-06-18 | 2009-11-18 | 北京中星微电子有限公司 | Foreground detection method and device as well as adaptive threshold adjusting method and device |
CN101673404A (en) * | 2009-10-19 | 2010-03-17 | 北京中星微电子有限公司 | Target detection method and device |
-
2011
- 2011-07-04 CN CN 201110185415 patent/CN102222349B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060239506A1 (en) * | 2005-04-25 | 2006-10-26 | Objectvideo, Inc. | Line textured target detection and tracking with applications to "Basket-run" detection |
CN101582160A (en) * | 2009-06-18 | 2009-11-18 | 北京中星微电子有限公司 | Foreground detection method and device as well as adaptive threshold adjusting method and device |
CN101673404A (en) * | 2009-10-19 | 2010-03-17 | 北京中星微电子有限公司 | Target detection method and device |
Non-Patent Citations (1)
Title |
---|
《软件学报》 20080430 王志衡等 伪球滤波和边缘检测 803-816 1-4 第19卷, 第4期 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102494976A (en) * | 2011-11-18 | 2012-06-13 | 江苏大学 | Method for automatic measurement and morphological classification statistic of ultra-fine grain steel grains |
CN102494976B (en) * | 2011-11-18 | 2014-04-09 | 江苏大学 | Method for automatic measurement and morphological classification statistic of ultra-fine grain steel grains |
CN103679745A (en) * | 2012-09-17 | 2014-03-26 | 浙江大华技术股份有限公司 | Moving target detection method and device |
CN103679745B (en) * | 2012-09-17 | 2016-08-17 | 浙江大华技术股份有限公司 | A kind of moving target detecting method and device |
CN104135597A (en) * | 2014-07-04 | 2014-11-05 | 上海交通大学 | Automatic detection method of jitter of video |
WO2020192095A1 (en) * | 2019-03-22 | 2020-10-01 | 浙江宇视科技有限公司 | Coding method and apparatus for surveillance video background frames, electronic device and medium |
CN113822879A (en) * | 2021-11-18 | 2021-12-21 | 南京智谱科技有限公司 | Image segmentation method and device |
CN114037633A (en) * | 2021-11-18 | 2022-02-11 | 南京智谱科技有限公司 | Infrared image processing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN102222349B (en) | 2013-01-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102222349B (en) | Prospect frame detecting method based on edge model | |
US10070053B2 (en) | Method and camera for determining an image adjustment parameter | |
CN102307274B (en) | Motion detection method based on edge detection and frame difference | |
CN102799883B (en) | Method and device for extracting movement target from video image | |
CN103854273B (en) | A kind of nearly positive vertical view monitor video pedestrian tracking method of counting and device | |
CN103679745B (en) | A kind of moving target detecting method and device | |
US8355079B2 (en) | Temporally consistent caption detection on videos using a 3D spatiotemporal method | |
CN106991418B (en) | Winged insect detection method and device and terminal | |
US20170004629A1 (en) | Low-complexity motion detection based on image edges | |
CN105046719B (en) | A kind of video frequency monitoring method and system | |
CN101231696A (en) | Method and system for detection of hangover | |
CN103473533B (en) | Moving Objects in Video Sequences abnormal behaviour automatic testing method | |
CN104166983A (en) | Motion object real time extraction method of Vibe improvement algorithm based on combination of graph cut | |
JP2013101419A (en) | Image signal processor | |
CN104766079A (en) | Remote infrared weak object detecting method | |
CN110880184A (en) | Method and device for carrying out automatic camera inspection based on optical flow field | |
US8311269B2 (en) | Blocker image identification apparatus and method | |
CN102610104A (en) | Onboard front vehicle detection method | |
CN101930540A (en) | Video-based multi-feature fusion flame detecting device and method | |
CN102663776A (en) | Violent movement detection method based on characteristic point analysis and device thereof | |
CN103400395A (en) | Light stream tracking method based on HAAR feature detection | |
Tao et al. | Real-time detection and tracking of moving object | |
JP5679760B2 (en) | Intruder detection device | |
CN104299234B (en) | The method and system that rain field removes in video data | |
CN101877135A (en) | Moving target detecting method based on background reconstruction |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130123 Termination date: 20150704 |
|
EXPY | Termination of patent right or utility model |