CN101556739A - Vehicle detecting algorithm based on intrinsic image decomposition - Google Patents
Vehicle detecting algorithm based on intrinsic image decomposition Download PDFInfo
- Publication number
- CN101556739A CN101556739A CNA2009100987915A CN200910098791A CN101556739A CN 101556739 A CN101556739 A CN 101556739A CN A2009100987915 A CNA2009100987915 A CN A2009100987915A CN 200910098791 A CN200910098791 A CN 200910098791A CN 101556739 A CN101556739 A CN 101556739A
- Authority
- CN
- China
- Prior art keywords
- image
- gradient
- gradient map
- intrinsic
- domain
- 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.)
- Pending
Links
Images
Landscapes
- Image Analysis (AREA)
Abstract
The invention relates to a vehicle detecting algorithm in an intelligent traffic system, in particular to a vehicle detecting algorithm based on intrinsic image decomposition, which is universal at day and night. The specific practice thereof comprises the steps of: at first, carrying out derivation and filter to an initial input image on a log-domain to convert the initial input image to a gradient domain; then calculating the difference between the gradient map of a current image and the gradient map of a background image on the gradient domain to obtain the gradient map of a moving foreground image; using the method of intrinsic image decomposition to process the gradient map of the moving foreground image to obtain the gradient map of a photogram and the gradient map of a target image; extracting the pixels with the gradient amplitude larger than a threshold T in the gradient map of the target image and using the pixels as moving target points; and aiming at a certain region, considering that the vehicle passes through the region if the number of the moving target points exceeds a certain proportion of the total number of the pixels in the region. The vehicle detecting algorithm based on intrinsic image decomposition has the beneficial effects of removing the effects of shadows and illumination and being capable of accurately carrying out detection to the vehicles at day and night in real time.
Description
Technical field
The present invention relates to a kind of intelligent traffic vehicle detection algorithm, particularly a kind of general round the clock intelligent traffic vehicle detection technique based on the intrinsic image decomposition.
Background technology
Along with the development of intelligent transportation system (ITS), become an important research direction in the computer vision as the vehicle detecting algorithm of its core technology.Can the accurate profile that obtain vehicle be followed the tracks of and waited processing very important for target classification afterwards, also has influence on the degree of accuracy of total system.
Under hypographous condition and night environment vehicle detection be always research difficult point and hot issue.In the vehicle detection by day, shade is main interference.And vehicle at night detects the interference that not only is subjected to shade, also faces the influence of car light.At first, the headlight that light is very strong is enough to cause the change of whole image illumination condition, thereby the vehicle at night detection is difficult to realize by the method for subduction background behind the background modeling.Secondly, under the irradiation of headlight, the preceding road surface of car can be by photograph very bright, the zone of this piece light is the same with shade all moves with vehicle, if directly carry out background difference or inter-frame difference, headlight and shade will be detected together with moving vehicle, cause very big difficulty to accurately being partitioned into moving vehicle.When adopting the method for virtual coil, video detection system judges entering or when leaving state, just more need to remove the influence of shade and strong illumination at the coil position vehicle so that accurately be partitioned into moving vehicle.
Existing motion shadow detection method can be divided into following two classes: the first, and set up the geometric model of shade from the angle in space, but it needs prioris such as scene, object and illumination, and be not suitable for complicated situation; The second, based on the method for shadows pixels attribute; For example: based on the shadow detection method of hsv color space or normalization RGB color space, the distinct disadvantage of these methods is to suppose that shade does not change the color of overlay area; The method of those colors based on shade, texture or gradient characteristic for example again, these methods have similar characteristic in some part of running into vehicle and shade character and are, and tend to occur vehicle body and be taken as shadow removal, and the situation that real shade is retained.
The detection algorithm at night that existing vehicle at night detection technique then compares less, common can be divided into based on the method for vehicle body privileged site (comprising headlight, taillight and chassis etc.) location with based on the method for marginal information.These algorithms all mainly are at certain some specific occasions or a certain specific application, otherwise are exactly poor effect.
On the whole, generally all include respectively in the existing video detection system and overlap algorithms, also do not have a kind of general round the clock effective vehicle checking method now at two of day and night.
Summary of the invention
The present invention is directed to the deficiency of prior art, proposed a kind of general round the clock vehicle detecting algorithm that decomposes based on intrinsic image, this algorithm can be real-time carries out vehicle detection.The steps include: at first on log-domain, original input picture to be carried out differentiate filtering, it is transformed into gradient field; On gradient field, calculate gradient map poor of the gradient map of present image and background image, obtain the gradient map of foreground image; With the method that intrinsic image decomposes the gradient map of foreground image is handled, obtained the gradient map of shadow image and the gradient map of target image; At last, the gradient map of target image is carried out moving Object Segmentation, extract gradient amplitude in the gradient map of target image greater than the pixel of threshold value T as the moving target point; At a certain zone, if the certain proportion that outnumbers this zone interior pixel point total number of moving target point, then thinking has vehicle to pass through in this zone.
Wherein the concrete acquisition methods of the gradient map of background image is: the image that is used to extract background that at first will preserve in advance (n frame) all is transformed into log-domain; Again every width of cloth image of log-domain is carried out the differentiate filtering of two dimension; The value of same pixel in the filtered every width of cloth image of differentiate put together constitutes an one-dimensional vector, and each such one-dimensional vector is carried out medium filtering, obtains the drawing for estimate of the background image of gradient field.Promptly on log-domain, original image can be decomposed into:
i(x,y,t)=m(x,y,t)+b(x,y) (1)
I (x wherein, y, t) represent the gradient map of t original image constantly, b (x, the y) gradient map of presentation video background (shadow that comprises the road surface fixed object), m (x, y, t) represent the gradient map of t sport foreground image constantly, it has comprised a large amount of sport foreground information, but also is not information of vehicles accurately.
The method that intrinsic image decomposes is: set up the joint classification device based on spatial color information and time domain colouring information, each pixel among the sport foreground image gradient figure is classified, obtain the gradient map of target image.
Joint classification device based on spatial color information and time domain colouring information is defined as:
1) in normalization RGB color space,
Be the red component of normalization color space,
Horizontal direction gradient and vertical gradient be expressed as respectively
With
Obtain
In point (x, the gradient of y) locating
2) for the green component after the normalization
Adopting uses the same method obtains
In point (x, the gradient of y) locating
3) with point (x, the color characteristics value V that y) locates (x y) is defined as:
Then, the sorter based on spatial color information is defined as:
Sorter based on the time domain colouring information is defined as:
(x, the normalization color-set of y) locating becomes to be respectively wherein adjacent two two field pictures at same pixel
With
4) according to aforementioned two sorters, combined detector is defined as:
T
1And T
2Be constant.
The beneficial effect of the vehicle detecting algorithm that decomposes based on intrinsic image of the present invention is: removed the influence of shade and illumination, can be real-time and accurately the vehicle at daytime and night have been detected.
Description of drawings
Fig. 1 is the general flow chart of a kind of vehicle detecting algorithm embodiment of the present invention;
Fig. 2 is for extracting the process flow diagram of sport foreground module;
Fig. 3 is the process flow diagram of intrinsic image decomposing module.
Embodiment:
Below, the present invention is further illustrated with embodiment in conjunction with the accompanying drawings.
As shown in Figure 1, decompose for extracting sport foreground and intrinsic image the core of this algorithm, below in conjunction with accompanying drawing these two parts is described:
1. extraction sport foreground
This step carries out the first time to original image sequence and decomposes, with obtain Background b (x, y) and the sport foreground part m in each two field picture (t), concrete process flow diagram is seen Fig. 2 for x, y.
At first, with input image sequence i (t-n * Δ t), n=0,1,2 ... k} is transformed into log-domain (k=9 in the algorithm, interval of delta t can oneself be adjusted), then through f
x=[0,1 ,-1]
TAnd f
y=[0,1 ,-1] is carried out differentiate filtering, is obtained:
i
x/y(x,y,t)=f
x/y*i(x,y,t)
i
x/y(x,y,t)=f
x/y*[b(x,y)+m(x,y,t)]
i
x/y(x,y,t)=b
x/y(x,y)+m
x/y(x,y,t)
F wherein
X/y={ f
x, f
y, i
X/y(x, y, t)={ i
x(x, y, t), i
y(x, y, t) }, * represents convolution algorithm.The background component b of image (x, y) satisfy:
b
x/y(x,y)=f
x/y*b(x,y)
Output m after differentiate filtering
X/y(x, y t) are sparse matrix.
Respectively the x of output and the gradient image sequence of y both direction are carried out medium filtering, can obtain the estimated value of background image gradient
With
After having obtained the gradient map of background image, only need from the gradient map of original image, deduct the gradient map m that this part just can obtain prospect part (comprising moving object, motion shade, illumination variation)
x(x, y, t) and m
y(x, y, t):
m
x(x,y,t)=I
x(x,y,t)-b
x(x,y)
m
y(x,y,t)=I
y(x,y,t)-b
y(x,y)
2. intrinsic image decomposes
Obtain after the gradient of foreground image, this step is that sorter of design is separated movement destination image from foreground image, obtains the target image gradient map, and concrete process flow diagram is seen Fig. 3.
Foreground image can regard as irradiation image and target image and.In gradient field, their relation satisfies:
m
x/y(x,y,t)=o
x/y(x,y,t)+s
x/y(x,y,t)
Wherein, o
X/y(x, y t) are the gradient of moving target; s
X/y(x, y t) are the gradient of shadow.This algorithm will utilize the color characteristic of image sequence in time domain and spatial domain to combine to reach this purpose.
A. based on the sorter of spatial color information
Only consider current frame image,, design a two-value sorter foreground image is classified in the gradient of each location of pixels according to spatial domain change color information.
At the RGB color space, each pixel in the image can (R, G B) represent with vector.Represent mode according to the colouring information that top document is introduced, rgb space can be expressed as to normalization:
Be respectively normalized redness, green and blue component, because
Can pass through
Obtain, so use
Represent that the color group achievement is passable.
Horizontal direction gradient and vertical gradient be expressed as respectively
With
With
Representative
Point (x, the gradient of y) locating, and the value that defines it is:
And then with point (x, the color characteristics value V that y) locates (x y) is defined as:
(x y) compares with a threshold value, constitutes a simple two-value sorter with color characteristics value V.Concrete sorter is defined as:
If (x y) greater than this threshold value, then is divided into the gradient that belongs to target image with foreground image in the gradient of this location of pixels to V; Otherwise, then foreground image is divided into the gradient that belongs to the shadow image in the gradient of this location of pixels.
B. based on the sorter of time domain colouring information
This step is set up a two-value sorter, will be classified as the gradient that belongs to target image by the time domain gradient that reflectance varies causes, all the other gradients then are left the gradient of shadow image.
Suppose that (x, the color-set of y) locating becomes to be respectively C to adjacent two two field pictures at same pixel
1(x, y) and C
2(x, y).Here C
1(x, y) and C
2(x y) is the RGB vector.Normalization C
1(x, y) and C
2(x y) obtains
With
Use dot product
Be illustrated in that (x y) locates color and forms the degree that time domain changes, and is caused by illumination if the pixel time domain changes, then
Cos (0) just.Consider The noise, if
Value be lower than one and be slightly less than 1 threshold value, then the pixel of this point is changed being considered as causing by reflectance varies.Concrete sorter is defined as:
C. joint classification device
Two sorters in front are combined, stipulate that final classification criterion is:
The result who obtains by this joint classification device combines the target image gradient map that obtains after two conditions.
The specific practice of moving Object Segmentation part is:
In the goal gradient image, the Grad than other location of pixels is big usually to be positioned at the Grad of object edge location of pixels.Therefore, Grad and threshold value that needs only each location of pixels of goal gradient image compares the edge that just can detect moving target.
(x, y) result of presentation class is right with E
Carry out operational analysis, as fruit dot (x y) belongs to the edge of moving target, then E (x, y)=1, otherwise E (x, y)=0, criterion is as follows:
Wherein,
With
(x y) locates the Grad of each color component of RGB color space x direction to be respectively point;
With
(x y) locates the Grad of each color component of RGB color space y direction to be respectively point.
At some zones, (ratio that x, the number of pixel y)=1 account for total pixel number in this zone surpasses threshold value S, and judging in this zone has moving vehicle to pass through if satisfy E in this zone.
Claims (4)
1, a kind of vehicle detecting algorithm that decomposes based on intrinsic image is characterized in that comprising following steps: at first on log-domain, original input picture is carried out differentiate filtering, it is transformed into gradient field; On gradient field, calculate gradient map poor of the gradient map of present image and background image, obtain the gradient map of sport foreground image; With the method that intrinsic image decomposes the gradient map of foreground image is handled, obtained the gradient map of shadow image and the gradient map of target image; Extract in the gradient map of target image gradient amplitude greater than the pixel of threshold value T, as the moving target point; At a certain zone, if the certain proportion that outnumbers this zone interior pixel point total number of moving target point, then thinking has vehicle to pass through in this zone.
2, the vehicle detecting algorithm that decomposes based on intrinsic image as claimed in claim 1, it is characterized in that the concrete acquisition methods that extracts the gradient map of background image in the background image part is: the image that is used to extract background that at first will preserve in advance (n frame) all is transformed into log-domain; Again every width of cloth image of log-domain is carried out the differentiate filtering of two dimension; The value of same pixel in the filtered every width of cloth image of differentiate put together constitutes an one-dimensional vector, and each such one-dimensional vector is carried out medium filtering, obtains the drawing for estimate of the background image of gradient field.
3, the vehicle detecting algorithm that decomposes based on intrinsic image as claimed in claim 1 or 2, it is characterized in that, the intrinsic image decomposition method is: set up the joint classification device based on spatial color information and time domain colouring information, each pixel in the sport foreground image is classified, thereby obtain final moving target.
4, the vehicle detecting algorithm that decomposes based on intrinsic image as claimed in claim 3 is characterized in that, is defined as based on the joint classification device of spatial color information and time domain colouring information:
1) in normalization RGB color space,
Be the red component of normalization color space,
Horizontal direction gradient and vertical gradient be expressed as respectively
With
Obtain
In point (x, the gradient of y) locating
2) for the green component after the normalization
Adopt with
Same method obtains
In point (x, the gradient of y) locating
3) with point (x, the color characteristics value V that y) locates (x y) is defined as:
Then, the sorter based on spatial color information is defined as:
Sorter based on the time domain colouring information is defined as:
(x, the normalization color-set of y) locating becomes to be respectively wherein adjacent two two field pictures at same pixel
With
4) according to aforementioned two sorters, combined detector is defined as:
T
1And T
2Be constant.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2009100987915A CN101556739A (en) | 2009-05-14 | 2009-05-14 | Vehicle detecting algorithm based on intrinsic image decomposition |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2009100987915A CN101556739A (en) | 2009-05-14 | 2009-05-14 | Vehicle detecting algorithm based on intrinsic image decomposition |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101556739A true CN101556739A (en) | 2009-10-14 |
Family
ID=41174842
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2009100987915A Pending CN101556739A (en) | 2009-05-14 | 2009-05-14 | Vehicle detecting algorithm based on intrinsic image decomposition |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101556739A (en) |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101950352A (en) * | 2010-05-31 | 2011-01-19 | 北京智安邦科技有限公司 | Target detection method capable of removing illumination influence and device thereof |
CN102044152A (en) * | 2010-11-19 | 2011-05-04 | 杭州海康威视系统技术有限公司 | Day and night video detecting method and device |
CN101739560B (en) * | 2009-12-16 | 2012-02-01 | 东南大学 | Edge and framework information-based method for eliminating vehicle shadow |
CN103336965A (en) * | 2013-07-18 | 2013-10-02 | 江西省电力公司检修分公司 | Prospect and feature extraction method based on outline differences and principal direction histogram of block |
CN103886331A (en) * | 2014-03-28 | 2014-06-25 | 浙江大学 | Method for classifying appearances of vehicles based on multi-feature fusion of surveillance video |
CN104268897A (en) * | 2014-10-28 | 2015-01-07 | 天津大学 | Synergetic and intrinsic image decomposition method |
CN104484884A (en) * | 2014-12-30 | 2015-04-01 | 天津大学 | Intrinsic image decomposition method based on multi-scale L0 sparse constraint |
CN104657711A (en) * | 2015-02-09 | 2015-05-27 | 中国石油大学(华东) | Robust pointer instrument reading automatic identification method |
CN105390021A (en) * | 2015-11-16 | 2016-03-09 | 北京蓝卡科技股份有限公司 | Parking spot state detection method and parking spot state detection device |
CN106373096A (en) * | 2016-08-30 | 2017-02-01 | 电子科技大学 | Multi-feature weight adaptive shadow elimination method |
CN106407951A (en) * | 2016-09-30 | 2017-02-15 | 西安理工大学 | Monocular vision-based nighttime front vehicle detection method |
WO2017028012A1 (en) * | 2015-08-14 | 2017-02-23 | 富士通株式会社 | Traffic jam condition detection device and method |
CN106886786A (en) * | 2017-02-24 | 2017-06-23 | 上海巽晔计算机科技有限公司 | A kind of effective image processing system |
CN107330433A (en) * | 2017-05-17 | 2017-11-07 | 北京捷通华声科技股份有限公司 | Image processing method and device |
CN108280412A (en) * | 2018-01-12 | 2018-07-13 | 西安电子科技大学 | High Resolution SAR image object detection method based on structure changes CNN |
CN113111866A (en) * | 2021-06-15 | 2021-07-13 | 深圳市图元科技有限公司 | Intelligent monitoring management system and method based on video analysis |
-
2009
- 2009-05-14 CN CNA2009100987915A patent/CN101556739A/en active Pending
Cited By (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101739560B (en) * | 2009-12-16 | 2012-02-01 | 东南大学 | Edge and framework information-based method for eliminating vehicle shadow |
CN101950352B (en) * | 2010-05-31 | 2012-08-22 | 北京智安邦科技有限公司 | Target detection method capable of removing illumination influence and device thereof |
CN101950352A (en) * | 2010-05-31 | 2011-01-19 | 北京智安邦科技有限公司 | Target detection method capable of removing illumination influence and device thereof |
CN102044152A (en) * | 2010-11-19 | 2011-05-04 | 杭州海康威视系统技术有限公司 | Day and night video detecting method and device |
CN102044152B (en) * | 2010-11-19 | 2013-10-30 | 杭州海康威视系统技术有限公司 | Day and night video detecting method and device |
CN103336965A (en) * | 2013-07-18 | 2013-10-02 | 江西省电力公司检修分公司 | Prospect and feature extraction method based on outline differences and principal direction histogram of block |
CN103336965B (en) * | 2013-07-18 | 2016-08-31 | 国家电网公司 | Based on profile difference and the histogrammic prospect of block principal direction and feature extracting method |
CN103886331B (en) * | 2014-03-28 | 2017-01-25 | 浙江大学 | Method for classifying appearances of vehicles based on multi-feature fusion of surveillance video |
CN103886331A (en) * | 2014-03-28 | 2014-06-25 | 浙江大学 | Method for classifying appearances of vehicles based on multi-feature fusion of surveillance video |
CN104268897A (en) * | 2014-10-28 | 2015-01-07 | 天津大学 | Synergetic and intrinsic image decomposition method |
CN104484884A (en) * | 2014-12-30 | 2015-04-01 | 天津大学 | Intrinsic image decomposition method based on multi-scale L0 sparse constraint |
CN104657711A (en) * | 2015-02-09 | 2015-05-27 | 中国石油大学(华东) | Robust pointer instrument reading automatic identification method |
WO2017028012A1 (en) * | 2015-08-14 | 2017-02-23 | 富士通株式会社 | Traffic jam condition detection device and method |
CN105390021A (en) * | 2015-11-16 | 2016-03-09 | 北京蓝卡科技股份有限公司 | Parking spot state detection method and parking spot state detection device |
CN106373096A (en) * | 2016-08-30 | 2017-02-01 | 电子科技大学 | Multi-feature weight adaptive shadow elimination method |
CN106373096B (en) * | 2016-08-30 | 2019-03-05 | 电子科技大学 | A kind of shadow removing method of multiple features Weight number adaptively |
CN106407951A (en) * | 2016-09-30 | 2017-02-15 | 西安理工大学 | Monocular vision-based nighttime front vehicle detection method |
CN106407951B (en) * | 2016-09-30 | 2019-08-16 | 西安理工大学 | A kind of night front vehicles detection method based on monocular vision |
CN106886786A (en) * | 2017-02-24 | 2017-06-23 | 上海巽晔计算机科技有限公司 | A kind of effective image processing system |
CN107330433A (en) * | 2017-05-17 | 2017-11-07 | 北京捷通华声科技股份有限公司 | Image processing method and device |
CN107330433B (en) * | 2017-05-17 | 2020-01-07 | 北京捷通华声科技股份有限公司 | Image processing method and device |
CN108280412A (en) * | 2018-01-12 | 2018-07-13 | 西安电子科技大学 | High Resolution SAR image object detection method based on structure changes CNN |
CN113111866A (en) * | 2021-06-15 | 2021-07-13 | 深圳市图元科技有限公司 | Intelligent monitoring management system and method based on video analysis |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101556739A (en) | Vehicle detecting algorithm based on intrinsic image decomposition | |
CN105426864B (en) | One kind being based on the matched Multi-lane Lines Detection method of equidistant marginal point | |
CA3032487C (en) | Saliency-based method for extracting road target from night vision infrared image | |
Son et al. | Real-time illumination invariant lane detection for lane departure warning system | |
CN102314600B (en) | Shadow removal in image captured by vehicle-based camera for clear path detection | |
CN103021177B (en) | Method and system for processing traffic monitoring video image in foggy day | |
CN101916383B (en) | Vehicle detecting, tracking and identifying system based on multi-camera | |
CN103093249B (en) | A kind of taxi identification method based on HD video and system | |
CN103034843B (en) | Method for detecting vehicle at night based on monocular vision | |
CN105160691A (en) | Color histogram based vehicle body color identification method | |
CN103324935B (en) | Vehicle is carried out the method and system of location and region segmentation by a kind of image | |
CN107886034B (en) | Driving reminding method and device and vehicle | |
CN102663357A (en) | Color characteristic-based detection algorithm for stall at parking lot | |
CN102982304B (en) | Utilize polarized light image to detect the method and system of vehicle location | |
CN102999749A (en) | Intelligent safety belt regulation violation event detecting method based on face detection | |
CN101286239A (en) | Aerial shooting traffic video frequency vehicle rapid checking method | |
CN102938057B (en) | A kind of method for eliminating vehicle shadow and device | |
CN102842037A (en) | Method for removing vehicle shadow based on multi-feature fusion | |
CN103077387B (en) | Carriage of freight train automatic testing method in video | |
CN105678213A (en) | Dual-mode masked man event automatic detection method based on video characteristic statistics | |
CN102163278A (en) | Illegal vehicle intruding detection method for bus lane | |
CN103679196A (en) | Method for automatically classifying people and vehicles in video surveillance | |
CN105893960A (en) | Road traffic sign detecting method based on phase symmetry | |
CN106557754A (en) | A kind of vehicle detection at night and state judging method | |
CN103021179A (en) | Real-time monitoring video based safety belt detection method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Open date: 20091014 |