CN104680521A - Improved background modeling and foreground detecting method - Google Patents
Improved background modeling and foreground detecting method Download PDFInfo
- Publication number
- CN104680521A CN104680521A CN201510065105.XA CN201510065105A CN104680521A CN 104680521 A CN104680521 A CN 104680521A CN 201510065105 A CN201510065105 A CN 201510065105A CN 104680521 A CN104680521 A CN 104680521A
- Authority
- CN
- China
- Prior art keywords
- background
- pixel
- point
- foreground
- dot
- 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
Landscapes
- Image Analysis (AREA)
Abstract
The invention provides an improved background modeling and foreground detecting method. The method comprises the steps of establishing a background model at first, then judging that pixel points of a current frame belong to background points or foreground points, updating a background set, judging each image frame pixel by pixel through the former process, finally obtaining a binary image where foreground is separated from background and accordingly dividing foreground moving targets from monitoring video. The method overcomes the defects in a traditional target detecting method and improves detecting adaptability, stability and timeliness.
Description
Technical field
The present invention relates to image intelligent detection, recognition technology field, particularly relate to a kind of method of background modeling and foreground target detection.
Background technology
In intelligent monitoring, moving object detection is significant in the daily productive life of people, its objective is and is split from background by moving foreground object.But in a practical situation, monitored environment is many uncertain factors abrim, background is often easy to be subject to various impact, and the such as impact such as illumination variation, dynamic background, shade, partial occlusion, these unfavorable factors bring very large challenge to anaphase movement Target detection and identification.Therefore, to various complex situations analysis modeling, reduce the adverse effect that extraneous complex environment factor causes target detection recognition result as far as possible, reduce erroneous judgement, the adaptability, robustness etc. that improve algorithm just become very important.
In foreground detection field, main flow algorithm mainly contains frame difference method, optical flow method and background subtraction method etc.Frame difference method has good real-time, and its background is not assembled, and renewal speed is fast, algorithm is easy, calculated amount is little.The deficiency of algorithm is neighbourhood noise comparatively responsive, and the selection of threshold value is quite crucial, selects the too low noise be not enough in oppressive image, too high, has neglected change useful in image.Likely occur abstract in target internal, action target cannot be extracted all sidedly.Optical flow method does not need to obtain scene information in advance, just can target be detected, but noise, multiple light courcess, shade and the factor such as to block and can impact the calculating convergence of optical flow field; And optical flow method calculation of complex, be difficult to the object reaching process in real time.Background subtraction method must be had powerful connections image, present image is utilized to deduct reference background image, and background image must be change along with illumination or external environment condition and real-time update, therefore the key of background subtraction method is background modeling and renewal thereof, and the quality of segmentation result depends on selected background modeling method to a great extent.
Due to the property complicated and changeable of actual environment, many traditional background modeling methods all have its limitation, and therefore many method for building up being proved to be the background model of robust are suggested.These methods not only improve Detection results to a great extent, and improve adaptability, the stability and computing velocity etc. of algorithm.
Summary of the invention
In order to solve the problems of the prior art, the invention provides a kind of background modeling and foreground detection method of improvement, from monitor video, splitting foreground moving object.The method overcome some shortcomings of conventional target detection method, improve and detect adaptability, stability and real-time etc.
The present invention is achieved through the following technical solutions:
The background modeling of improvement and a foreground detection method, is characterized in that: said method comprising the steps of:
Steps A 1: choose front N two field picture, calculate the average I of each pixel position
n(x, y), for each pixel sets up respective background collection, the background element of set of each pixel element is randomly drawed form by the past N two field picture with the pixel value of this pixel same position, and each background is concentrated and comprised M element.
Steps A 2: judge that each pixel of present frame belongs to background dot or foreground point, if the number that the similarity of the element that current pixel background is concentrated and this pixel is less than a setting threshold value th1 is greater than T1, then this point is judged as background dot, otherwise is judged to be foreground point.
Steps A 3: if certain pixel is detected as foreground point, do not upgrade background collection, if be detected as background dot, upgrades the background collection of this position pixel.
Further, described steps A 3 specifically comprises the following steps:
Step B1: if certain point is judged to background dot, first judge the speed that this pixel changes, in the continuous K two field picture before namely finding out present frame, this position pixel is judged to the pixel of background dot, K<N, and adds up these background dots and average I
nthe difference of (x, y), if the number that absolute difference is greater than the point of setting threshold value th2 is individual more than T2, then can judge that this current background dot belongs to the fast background dot of change, otherwise current background point belongs to the slow background dot of change.
Step B2: if this pixel being detected as background dot belongs to the slower point of change of background, replace with this pixel value some elements that its background concentrates random selecting; If belong to change of background point faster, then replace with this pixel value m the element that its background concentrates random selecting.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of background modeling of the present invention and foreground detection method.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Accompanying drawing 1 is the process flow diagram of background modeling of the present invention and foreground detection method.
First background model is set up: choose front N two field picture, for each pixel sets up respective background collection, the background element of set element of each pixel is randomly drawed form by the past N two field picture with the pixel value of this pixel same position, and each background is concentrated and comprised M element.
Then judge that each pixel of present frame belongs to background dot or foreground point: the similarity (Euclidean distance namely between pixel first judging the element that current pixel background is concentrated and this pixel, as two point (r1, g1, and (r2 b1), g2, b2) between Euclidean distance be
if the number that this pixel and its background concentrate the similarity of each element to be less than a setting threshold value th1 is greater than T1, then this point is judged as background dot, otherwise is judged to be foreground point.
Then upgrade background collection: if current pixel is judged as background dot, then continuing to detect this background dot, to belong to change fast or change slow point, if belong to the slower point of change of background, replaces with this pixel value some elements that its background concentrates random selecting; If belong to change of background point faster, then replace with this pixel value m the element that its background concentrates random selecting.
Utilize the background modeling of the present invention shown in Fig. 1 and foreground detection method flow process to carry out judging by pixel to each picture frame, finally obtain the bianry image of prospect and background separation.
Above content is in conjunction with concrete preferred implementation further description made for the present invention, can not assert that specific embodiment of the invention is confined to these explanations.For general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, some simple deduction or replace can also be made, all should be considered as belonging to protection scope of the present invention.
Claims (3)
1. the background modeling improved and a foreground detection method, is characterized in that: said method comprising the steps of:
Steps A 1: choose front N two field picture, calculate the average I of each pixel position
n(x, y), for each pixel sets up respective background collection, the background element of set of each pixel element is randomly drawed form by the past N two field picture with the pixel value of this pixel same position, and each background is concentrated and comprised M element;
Steps A 2: judge that each pixel of present frame belongs to background dot or foreground point, if the number that the similarity of the element that current pixel background is concentrated and this pixel is less than a setting threshold value th1 is greater than T1, then this point is judged as background dot, otherwise is judged to be foreground point;
Steps A 3: if certain pixel is detected as foreground point, do not upgrade background collection, if be detected as background dot, upgrades the background collection of this position pixel.
2. method according to claim 1, is characterized in that: described steps A 3 specifically comprises the following steps:
Step B1: if certain point is judged to background dot, first judge the speed that this pixel changes, in the continuous K two field picture before namely finding out present frame, this position pixel is judged to the pixel of background dot, K<N, and adds up these background dots and average I
nthe difference of (x, y), if the number that absolute difference is greater than the point of setting threshold value th2 is individual more than T2, then can judge that this current background dot belongs to the fast background dot of change, otherwise current background point belongs to the slow background dot of change;
Step B2: if this pixel being detected as background dot belongs to the slower point of change of background, replace with this pixel value some elements that its background concentrates random selecting; If belong to change of background point faster, then replace with this pixel value m the element that its background concentrates random selecting.
3. method according to claim 2, is characterized in that: the value of described m is 3 ~ 5, or the value of described m suitably adjusts according to concrete background environment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510065105.XA CN104680521B (en) | 2015-02-06 | 2015-02-06 | A kind of improved background modeling and foreground detection method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510065105.XA CN104680521B (en) | 2015-02-06 | 2015-02-06 | A kind of improved background modeling and foreground detection method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104680521A true CN104680521A (en) | 2015-06-03 |
CN104680521B CN104680521B (en) | 2018-04-06 |
Family
ID=53315514
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510065105.XA Expired - Fee Related CN104680521B (en) | 2015-02-06 | 2015-02-06 | A kind of improved background modeling and foreground detection method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104680521B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106157332A (en) * | 2016-07-07 | 2016-11-23 | 合肥工业大学 | A kind of motion inspection optimization method based on ViBe algorithm |
CN106548488A (en) * | 2016-10-25 | 2017-03-29 | 电子科技大学 | It is a kind of based on background model and the foreground detection method of inter-frame difference |
CN107402389A (en) * | 2016-05-18 | 2017-11-28 | 电装波动株式会社 | Arithmetic processing apparatus, arithmetic processing method and the medium for being stored with computer program |
CN108537799A (en) * | 2018-03-21 | 2018-09-14 | 广西师范大学 | A kind of color samples method counted based on pixel type and weight |
CN110864412A (en) * | 2019-08-12 | 2020-03-06 | 珠海格力电器股份有限公司 | Air conditioner control method and system |
CN111209771A (en) * | 2018-11-21 | 2020-05-29 | 晶睿通讯股份有限公司 | Neural network identification efficiency improving method and relevant identification efficiency improving device thereof |
CN112669294A (en) * | 2020-12-30 | 2021-04-16 | 深圳云天励飞技术股份有限公司 | Camera shielding detection method and device, electronic equipment and storage medium |
CN113850133A (en) * | 2021-08-24 | 2021-12-28 | 中国船舶重工集团公司第七0九研究所 | Ship line-crossing detection method and system for ship lock video monitoring |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101621615A (en) * | 2009-07-24 | 2010-01-06 | 南京邮电大学 | Self-adaptive background modeling and moving target detecting method |
CN101777186A (en) * | 2010-01-13 | 2010-07-14 | 西安理工大学 | Multimodality automatic updating and replacing background modeling method |
US20100208998A1 (en) * | 2007-07-08 | 2010-08-19 | Marc Van Droogenbroeck | Visual background extractor |
CN103971386A (en) * | 2014-05-30 | 2014-08-06 | 南京大学 | Method for foreground detection in dynamic background scenario |
-
2015
- 2015-02-06 CN CN201510065105.XA patent/CN104680521B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100208998A1 (en) * | 2007-07-08 | 2010-08-19 | Marc Van Droogenbroeck | Visual background extractor |
CN101621615A (en) * | 2009-07-24 | 2010-01-06 | 南京邮电大学 | Self-adaptive background modeling and moving target detecting method |
CN101777186A (en) * | 2010-01-13 | 2010-07-14 | 西安理工大学 | Multimodality automatic updating and replacing background modeling method |
CN103971386A (en) * | 2014-05-30 | 2014-08-06 | 南京大学 | Method for foreground detection in dynamic background scenario |
Non-Patent Citations (1)
Title |
---|
邱祯艳: "基于实时视频的运动目标检测算法", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107402389A (en) * | 2016-05-18 | 2017-11-28 | 电装波动株式会社 | Arithmetic processing apparatus, arithmetic processing method and the medium for being stored with computer program |
CN106157332A (en) * | 2016-07-07 | 2016-11-23 | 合肥工业大学 | A kind of motion inspection optimization method based on ViBe algorithm |
CN106548488A (en) * | 2016-10-25 | 2017-03-29 | 电子科技大学 | It is a kind of based on background model and the foreground detection method of inter-frame difference |
CN106548488B (en) * | 2016-10-25 | 2019-02-15 | 电子科技大学 | A kind of foreground detection method based on background model and inter-frame difference |
CN108537799A (en) * | 2018-03-21 | 2018-09-14 | 广西师范大学 | A kind of color samples method counted based on pixel type and weight |
CN108537799B (en) * | 2018-03-21 | 2021-03-23 | 广西师范大学 | Color sampling method based on pixel type and weight statistics |
CN111209771A (en) * | 2018-11-21 | 2020-05-29 | 晶睿通讯股份有限公司 | Neural network identification efficiency improving method and relevant identification efficiency improving device thereof |
CN110864412A (en) * | 2019-08-12 | 2020-03-06 | 珠海格力电器股份有限公司 | Air conditioner control method and system |
CN110864412B (en) * | 2019-08-12 | 2021-02-12 | 珠海格力电器股份有限公司 | Air conditioner control method and system |
CN112669294A (en) * | 2020-12-30 | 2021-04-16 | 深圳云天励飞技术股份有限公司 | Camera shielding detection method and device, electronic equipment and storage medium |
CN112669294B (en) * | 2020-12-30 | 2024-04-02 | 深圳云天励飞技术股份有限公司 | Camera shielding detection method and device, electronic equipment and storage medium |
CN113850133A (en) * | 2021-08-24 | 2021-12-28 | 中国船舶重工集团公司第七0九研究所 | Ship line-crossing detection method and system for ship lock video monitoring |
Also Published As
Publication number | Publication date |
---|---|
CN104680521B (en) | 2018-04-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104680521A (en) | Improved background modeling and foreground detecting method | |
CN103246896B (en) | A kind of real-time detection and tracking method of robustness vehicle | |
CN103530893B (en) | Based on the foreground detection method of background subtraction and movable information under camera shake scene | |
CN103729858B (en) | A kind of video monitoring system is left over the detection method of article | |
CN106548488B (en) | A kind of foreground detection method based on background model and inter-frame difference | |
CN103971386A (en) | Method for foreground detection in dynamic background scenario | |
Zhang et al. | A multi-feature fusion based traffic light recognition algorithm for intelligent vehicles | |
CN103208126A (en) | Method for monitoring moving object in natural environment | |
CN104835145A (en) | Foreground detection method based on self-adaptive Codebook background model | |
CN103473547A (en) | Vehicle target recognizing algorithm used for intelligent traffic detecting system | |
CN104952256A (en) | Video information based method for detecting vehicles at intersection | |
CN104599291B (en) | Infrared motion target detection method based on structural similarity and significance analysis | |
CN105469038A (en) | Safety cap video detection method for electric power switching station | |
CN106210635A (en) | A kind of wisdom gold eyeball identification is moved through method and apparatus of reporting to the police | |
CN103400113A (en) | Method for detecting pedestrian on expressway or in tunnel based on image processing | |
CN104090658A (en) | Human body image detection method based on HOG features | |
CN103646242B (en) | Extended target tracking based on maximum stable extremal region feature | |
CN103456012B (en) | Based on visual human hand detecting and tracking method and the system of maximum stable area of curvature | |
CN104299007A (en) | Classifier training method for behavior recognition | |
CN103020980A (en) | Moving target detection method based on improved double-layer code book model | |
CN114529894A (en) | Rapid scene text detection method fusing hole convolution | |
CN102722720B (en) | Video background extraction method based on hue-saturation-value (HSV) space on-line clustering | |
CN103577804A (en) | Abnormal human behavior identification method based on SIFT flow and hidden conditional random fields | |
CN104008396A (en) | In and out people flow statistical method based on people head color and shape features | |
CN103093467A (en) | Shot boundary detection method based on double detection model |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180406 Termination date: 20210206 |
|
CF01 | Termination of patent right due to non-payment of annual fee |