CN105160324A - Vehicle detection method based on part spatial relation - Google Patents

Vehicle detection method based on part spatial relation Download PDF

Info

Publication number
CN105160324A
CN105160324A CN201510566019.7A CN201510566019A CN105160324A CN 105160324 A CN105160324 A CN 105160324A CN 201510566019 A CN201510566019 A CN 201510566019A CN 105160324 A CN105160324 A CN 105160324A
Authority
CN
China
Prior art keywords
parts
car plate
value
inverse
car
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
Application number
CN201510566019.7A
Other languages
Chinese (zh)
Other versions
CN105160324B (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.)
Xi'an Dewei Shitong Intelligent Technology Co ltd
Original Assignee
Changan University
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 Changan University filed Critical Changan University
Priority to CN201510566019.7A priority Critical patent/CN105160324B/en
Publication of CN105160324A publication Critical patent/CN105160324A/en
Application granted granted Critical
Publication of CN105160324B publication Critical patent/CN105160324B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/56Context or environment of the image exterior to a vehicle by using sensors mounted on the vehicle
    • G06V20/58Recognition of moving objects or obstacles, e.g. vehicles or pedestrians; Recognition of traffic objects, e.g. traffic signs, traffic lights or roads
    • G06V20/584Recognition of moving objects or obstacles, e.g. vehicles or pedestrians; Recognition of traffic objects, e.g. traffic signs, traffic lights or roads of vehicle lights or traffic lights

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)
  • Traffic Control Systems (AREA)

Abstract

The invention discloses a vehicle detection method based on part spatial relation, belonging to the field of image identification. The invention includes establishing a gauss mixing model, obtaining a perspective transformation matrix, constructing a reverse projection surface, performing reverse projection of the information in a video image based on the perspective transformation matrix, obtaining a reverse projection drawing, determining license plate parts and car lamp parts from the reverse projection drawing, and determining the vehicle number after the license plate parts and the car lamp parts are the parts of one vehicle if the sum of the license plate parts and car lamp parts is not less than a preset value. Compared with the prior art, the method, by introducing the gauss mixing model into the vehicle detection process, can overcome the influence to an object detection algorithm due to shielding and bad illumination conditions and improve the accuracy of vehicle identification.

Description

A kind of vehicle checking method based on space of components relation
Technical field
The invention belongs to field of image recognition, particularly a kind of vehicle checking method based on space of components relation.
Background technology
Along with the fast development in city, traffic jam, accident and illegal activities challenge traffic control system greatly.Past three during the decade, we have witnessed the rise of intelligent transportation system (IntelligentTrafficSystem, ITS), development and application, and to our life and the significance of society.Under this overall background, computer vision and vehicle detection become two importances in ITS.Vehicle detection is the basis of DETECTION OF TRAFFIC PARAMETERS, conventional detection method has ground induction coil method, microwave radar method, video detection method etc., not only easy for installation based on the detection method of video in these methods, cheap, and more information can be provided for traffic analysis, catching and transmitting storage etc. as traffic flow analysis, vehicle classification, Bus-Speed Monitoring, event detection and live real-time video.Nowadays advanced traveler information systems adopts computer vision technique to complete vehicle detection.
Along with the development of ITS, every country all strengthens the research dynamics at intelligent transportation field, vehicle checking method based on computer vision is that a lot of contribution has been done in the development of ITS, multiple vehicle checking method arises at the historic moment, as the method based on model, the method based on local feature and the method etc. based on machine learning.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem:
But in ITS, still have many problems about vehicle detection.The detection model that the diversity of Vehicle surface and behavior makes training one unified is more difficult.The change of complicated urban environment, bad weather, light and weak/strong illumination condition will reduce detection perform to a great extent.Especially for the situation that there is vehicle during traffic congestion and block mutually, make multiple vehicle be easy to be fused into a vehicle like this, difficulty is brought to the accurate identification of vehicle.
Summary of the invention
In order to solve the problem of prior art, the invention provides a kind of vehicle checking method based on space of components relation, the described vehicle checking method based on space of components relation, comprising:
Obtain video image, determine the distance value between the car plate parts of vehicle sample in described video image and car light parts and angle value, set up according to described distance value and described angle value combination algorithm the gauss hybrid models representing spatial relationship between car plate parts and car light parts;
Use direct linear transformation to demarcate described video image, obtain perspective transformation matrix;
Build inverse projecting plane, according to described perspective transformation matrix, the information in described video image is carried out inverse projection, obtain inverse perspective view;
According to color conversion model, in conjunction with gradient algorithm, from described inverse perspective view, determine described car plate parts and described car light parts;
If the described car plate parts in described inverse perspective view and the number of described car light parts and be not less than preset value, then obtain described car plate parts and the likelihood score of described car light parts in described gauss hybrid models, if the numerical value of described likelihood score is greater than likelihood score threshold value, then determine that described car plate parts and described car light parts are the parts of a car, and then determine number of vehicles.
Optionally, described use direct linear transformation demarcates described video image, obtains perspective transformation matrix, comprising:
In world coordinate system, choose the calibration point of six known coordinates, wherein four described calibration points are positioned at surface level, and the height value of another two described calibration points is non-vanishing;
Obtain the image coordinate of calibration point in image coordinate system of described six known coordinates, obtain the perspective transformation matrix between described world coordinate system and described image coordinate system by least square method.
Optionally, the information in described video image, against projecting plane, is carried out inverse projection according to described perspective transformation matrix by described structure, obtains inverse perspective view, comprising:
Pane location is chosen on described inverse projecting plane, determines the sampled pixel point that each described pane location is corresponding on described video image;
Described video image is converted to gray level image, and obtains the gray-scale value of described sampled pixel point;
Carry out inverse projection according to described perspective transformation matrix by mutually described for the gray-scale value of described sampled pixel point inverse projecting plane, obtain the inverse perspective view after inverse projection.
Optionally, described according to color conversion model, in conjunction with gradient algorithm, from described inverse perspective view, determine described car plate parts and described car light parts, comprising:
By the car plate color model in color conversion model, obtain the car plate gray-scale map of described video image, and then obtain the car plate gradient map of described car plate gray-scale map;
The car plate sample areas identical with car plate size is chosen from described car plate gradient map, obtain the average gradient value of all pixels in described car plate sample areas, if described average gradient value is greater than predetermined gradient threshold value, then determine that described car plate sample areas is license plate area, and determine described car plate parts by connected component labeling method in described license plate area;
By the car light color model in described color conversion model, obtain the car light gray-scale map of described video image, and then obtain the binary image of described car light gray-scale map in conjunction with binary-state threshold;
Obtain the white portion in described binary image, in described white portion, determine described car light parts by described connected component labeling method.
Optionally, if the described car plate parts in described inverse perspective view and the number of described car light parts and be not less than preset value, then obtain described car plate parts and the likelihood score of described car light parts in described gauss hybrid models, if the numerical value of described likelihood score is greater than likelihood score threshold value, then determine that described car plate parts and described car light parts are the parts of a car, and then determine number of vehicles, comprising:
Obtain the parts such as described car plate parts in described inverse perspective view and described car number and;
If described number and be not less than preset value, then obtain the distance value between the parts such as described car plate parts in described inverse perspective view and described car and angle value, and then determine described distance value and the likelihood score of described angle value in described gauss hybrid models;
If the numerical value of described likelihood score is greater than likelihood score threshold value, then determines that described car plate parts and described car light parts are the parts of a car, and then determine number of vehicles.
Optionally, the described vehicle checking method based on space of components relation, also comprises:
If the numerical value of described likelihood score is less than described likelihood score threshold value, then the quantity because of described car light parts and described car plate parts is very few, cannot determine vehicle detection result.
The beneficial effect that technical scheme provided by the invention is brought is:
By introducing gauss hybrid models in vehicle detection process, compared with prior art, can overcome block and illumination condition difference on the impact of algorithm of target detection, improve the accuracy of vehicle identification.
Accompanying drawing explanation
In order to be illustrated more clearly in technical scheme of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of vehicle checking method based on space of components relation provided by the invention;
Fig. 2 is the spatial relationship schematic diagram between car plate parts provided by the invention and car light parts;
Fig. 3 is the schematic diagram of camera calibration method provided by the invention;
Fig. 4 (a) is the inverse projecting plane built provided by the invention;
Fig. 4 (b) is parallel to the inverse perspective view 1 that the inverse projecting plane of X-O-Z plane builds for being carried out by video image in inverse projection process to three dimensions;
Fig. 4 (c) is parallel to the inverse perspective view 2 that the inverse projecting plane of Y-O-Z plane builds for being carried out by video image in inverse projection process to three dimensions;
Fig. 5 (a) is the raw video image of car plate component retrieval provided by the invention;
The inverse perspective view of Fig. 5 (b) for obtaining after Inverse projection provided by the invention;
Fig. 5 (c) is the car plate gray-scale map after conversion provided by the invention;
Fig. 5 (d) is the car plate gradient map got provided by the invention;
Fig. 5 (e) is the average gradient value image of car plate sample areas provided by the invention;
Fig. 5 (f) is the sharp picture of the car plate parts obtained provided by the invention.
Fig. 6 (a) provides the raw video image of car light component retrieval for inventing;
Fig. 6 (b) is for inventing the car plate gray-scale map after the conversion that provides;
Fig. 6 (d) is for inventing the binary image after the Threshold segmentation that provides;
Fig. 6 (e) is for inventing the sharp picture of the car plate parts obtained provided.
Embodiment
For making structure of the present invention and advantage clearly, below in conjunction with accompanying drawing, structure of the present invention is further described.
Embodiment one
The invention provides a kind of vehicle checking method based on space of components relation, as shown in Figure 1, the described vehicle checking method based on space of components relation, comprising:
11, video image is obtained, determine the distance value between the car plate parts of vehicle sample in described video image and car light parts and angle value, set up according to described distance value and described angle value combination algorithm the gauss hybrid models representing spatial relationship between car plate parts and car light parts;
12, use direct linear transformation to demarcate described video image, obtain perspective transformation matrix;
13, build inverse projecting plane, according to described perspective transformation matrix, the information in described video image is carried out inverse projection, obtain inverse perspective view;
14, according to color conversion model, in conjunction with gradient algorithm, from described inverse perspective view, described car plate parts and described car light parts are determined;
If the described car plate parts in 15 described inverse perspective views and the number of described car light parts and be not less than preset value, then obtain described car plate parts and the likelihood score of described car light parts in described gauss hybrid models, if the numerical value of described likelihood score is greater than likelihood score threshold value, then determine that described car plate parts and described car light parts are the parts of a car, and then determine number of vehicles.
In force, in order to solve the defect to the vehicle identification difficulty on road in prior art, present applicant proposes a kind of vehicle checking method based on space of components relation, the particular content of the method is as follows:
First, obtain the video image with vehicle to be detected, determine the distance value length between the car plate parts of vehicle sample in this video image and car light parts and angle value angle, set up the gauss hybrid models (GMM) representing spatial relationship between car plate parts and car light parts according to described distance value length and described angle value angle in conjunction with EM algorithm.Here the spatial relationship between car plate parts and car light parts can reference diagram 2, and wherein LR region refers to left car light, and RR region refers to right car light, and LP region then refers to car plate.D refers to the distance value length between two parts, and θ then refers to the angle value angle between two parts.
It should be noted that EM algorithm used herein is a kind of iterative algorithm for (Expection-Maximizationalgorithm), walk two large iterative steps by E step and M, each iteration all makes maximum likelihood function increase.Concrete:
(1) by arranging initialization value, obtain the value making likelihood equation maximum, this step is called E-step (E-step)
(2) utilize the value obtained, upgrade.This step is called M-step (M-step).
And Gauss model (GMM, Gaussianmixturemodel) be exactly accurately quantize things with Gaussian probability-density function (normal distribution curve), a things is decomposed into some models formed based on Gaussian probability-density function (normal distribution curve).Image background is set up to principle and the process of Gauss model: image grey level histogram reflection be the frequency that in image, certain gray-scale value occurs, also can think it is the estimation of gradation of image probability density.If the target area that image comprises and background area differ larger, and there is certain difference background area and target area in gray scale, so the grey level histogram of this image presents bimodal-paddy shape, and one of them peak corresponds to target, and another peak corresponds to the center gray scale of background.
Then, use direct linear transformation to demarcate described video image, obtain perspective transformation matrix;
Here direct linear transformation is also called DirectLinearTransformation, is called for short DLT.It is the algorithm setting up direct linear relationship between picpointed coordinate instrument and corresponding object point object space coordinate.There is following features: do not need internal and external orientation, be suitable for non-metric camera, in meeting, the measurement task of low precision.
Secondly, build inverse projecting plane, so that the perspective transformation matrix obtained according to back is by inverse for the information type in video image projection, thus get inverse perspective view.
In actual photographed process, the scene graph that video camera photographs is the projection of three dimensional spatial scene at two-dimensional space, in the process utilizing machine vision to identify the vehicle that road and road travel, need a kind of Converse solved process, be namely reduced into the pavement image overlooked from the two dimensional image obtained.According to the result after above-mentioned transformation by reciprocal direction, the depth information of road can be got, can better provide pavement of road situation, provide vehicle to travel reference information more easily.This is also the theoretical foundation of vehicle checking method provided by the invention.
Again, on the basis of the inverse perspective view got at back, according to color conversion model and in conjunction with gradient algorithm, from described inverse perspective view, determine detailed car plate parts and car light parts.The particular content of this step carries out labor below, repeats no more herein.
Finally, the car plate parts determine back and the quantity of car light parts gather, if the described car plate parts in described inverse perspective view and the number of described car light parts and be not less than preset value, then obtain described car plate parts and the likelihood score of described car light parts in described gauss hybrid models, if the numerical value of described likelihood score is greater than likelihood score threshold value, then determine that described car plate parts and described car light parts are the parts of a car, and then determine number of vehicles.Equally, detailed content is analyzed below.
The invention provides a kind of vehicle checking method based on space of components relation, comprise and set up gauss hybrid models, obtain perspective transformation matrix, build inverse projecting plane, according to described perspective transformation matrix, the information in described video image is carried out inverse projection, obtain inverse perspective view, described car plate parts and described car light parts are determined from described inverse perspective view, if the described car plate parts in described inverse perspective view and the number of described car light parts and be not less than preset value, then determining that described car plate parts and described car light parts determine number of vehicles after being the parts of a car.By introducing gauss hybrid models in vehicle detection process, compared with prior art, can overcome block and illumination condition difference on the impact of algorithm of target detection, improve the accuracy of vehicle identification.
Optionally, described use direct linear transformation demarcates described video image, obtains perspective transformation matrix, comprising:
In world coordinate system, choose the calibration point of six known coordinates, wherein four described calibration points are positioned at surface level, and the height value of another two described calibration points is non-vanishing;
Obtain the image coordinate of calibration point in image coordinate system of described six known coordinates, obtain the perspective transformation matrix between described world coordinate system and described image coordinate system by least square method.
In force, composition graphs 3, camera calibration method in above-mentioned steps is illustrated, camera calibration needs the calibration point of six its world coordinate systems known, wherein four calibration points in the horizontal plane, and as the P0 ~ P3 point in Fig. 3, two other calibration point is not in the horizontal plane, that is height is in space not equal to 0, as the P4 ~ P5 point in Fig. 4.
Refer to the projection relation of three dimensions Scene to the plane of delineation at the concrete imaging model used, the three-dimensional scene projection in objective world relates to some coordinate systems to the two dimensional image that video camera photographs:
(1) world coordinate system, also referred to as true or real coordinate system, is the absolute coordinate system of objective world.
(2) camera coordinate system take video camera as the coordinate system of true origin shearing.
(3) image coordinate system is the plane coordinate system formed in the image photographed at video camera.
(4) computer picture coordinate system is the coordinate system used in computer-internal digital picture.
Use first kind world coordinate system and the 3rd class image coordinate system in this step, by the coordinate of known point in world coordinate system in image coordinate system, and getting the transition matrix between image coordinate system and world coordinate system in conjunction with least square method, this transition matrix is perspective transformation matrix.This perspective transformation matrix is used for the inverse projection transform in subsequent step.
Optionally, the information in described video image, against projecting plane, is carried out inverse projection according to described perspective transformation matrix by described structure, obtains inverse perspective view, comprising:
Pane location is chosen on described inverse projecting plane, determines the sampled pixel point that each described pane location is corresponding on described video image;
Described video image is converted to gray level image, and obtains the gray-scale value of described sampled pixel point;
Carry out inverse projection according to described perspective transformation matrix by mutually described for the gray-scale value of described sampled pixel point inverse projecting plane, obtain the inverse perspective view after inverse projection.
In force, in order to the information in video image be carried out according to perspective transformation matrix the process of inverse projection, need to carry out following steps:
(1) on inverse projecting plane using the lattice of 5cm × 5cm as pane location, and this pane location is projected in plane residing for video image, so that determine the image-region that each pane location is corresponding on the video images, and then determine the sampled pixel point that comprises in this image-region.
(2) video image is converted to gray level image, from described gray level image, determines the gray-scale value of the sampled pixel point that back gets.
(3) perspective transformation matrix obtained before the gray-scale value combination according to the sampled pixel point got, the inverse projection of type on inverse projecting plane, thus get the inverse perspective view after inverse projection.Square frame in Fig. 4 (a) is the inverse projecting plane built, Fig. 4 (b) is carried out by video image being parallel to the inverse perspective view 2 that the inverse projecting plane of Y-O-Z plane builds in inverse projection process to three dimensions for being carried out by video image being parallel to the inverse perspective view 1, Fig. 4 (c) that the inverse projecting plane of X-O-Z plane builds in inverse projection process to three dimensions.
By the Inverse projection of this step, achieve the step projected on inverse projecting plane by video image, so that according to the vehicle identification step realizing this projecting plane and carry out in subsequent step.
Optionally, described according to color conversion model, in conjunction with gradient algorithm, from described inverse perspective view, determine described car plate parts and described car light parts, comprising:
By the car plate color model in color conversion model, obtain the car plate gray-scale map of described video image, and then obtain the car plate gradient map of described car plate gray-scale map;
The car plate sample areas identical with car plate size is chosen from described car plate gradient map, obtain the average gradient value of all pixels in described car plate sample areas, if described average gradient value is greater than predetermined gradient threshold value, then determine that described car plate sample areas is license plate area, and determine described car plate parts by connected component labeling method in described license plate area;
By the car light color model in described color conversion model, obtain the car light gray-scale map of described video image, and then obtain the binary image of described car light gray-scale map in conjunction with binary-state threshold;
Obtain the white portion in described binary image, in described white portion, determine described car light parts by described connected component labeling method.
In force, in order to obtain the image of car plate parts accurately, need to carry out following steps:
By the car plate color model in default color conversion model, video image is transformed, obtain the car plate gray-scale map after transforming, and then obtain the car plate gradient map of this car plate gray-scale map.Then from this car plate gradient map, the car plate sample areas suitable with car plate area is chosen, and then obtain the average gradient value of this car plate sample areas, so that in conjunction with predetermined gradient threshold value determination license plate area, determine car plate parts accurately by connected component labeling method in the license plate area determined.
Fig. 5 (a) is raw video image, the inverse perspective view of Fig. 5 (b) for obtaining after Inverse projection, Fig. 5 (c) is the car plate gray-scale map after conversion, the car plate gradient map of Fig. 5 (d) for getting, the average gradient value image that Fig. 5 (e) is car plate sample areas, the sharp picture of car plate parts of Fig. 5 (f) for obtaining.
In order to obtain the image of car light parts accurately, need to carry out following steps:
By the car light color model in default color conversion model, video image is transformed, obtain the car light gray-scale map after transforming, then obtained the binary image of car light gray-scale map by binary conversion treatment.Extract the white portion in this binary image, in white portion, determine described car light parts by described connected component labeling method.
Fig. 6 (a) is raw video image, and Fig. 6 (b) is the car plate gray-scale map after transforming, and Fig. 6 (d) is the binary image after Threshold segmentation, the sharp picture of car plate parts of Fig. 6 (e) for obtaining.
By above-mentioned steps, accurately can obtain the car plate parts in video image and car light parts, thus lay the foundation for carrying out vehicle identification accurately in subsequent step.
Optionally, if the described car plate parts in described inverse perspective view and the number of described car light parts and be not less than preset value, then obtain described car plate parts and the likelihood score of described car light parts in described gauss hybrid models, if the numerical value of described likelihood score is greater than likelihood score threshold value, then determine that described car plate parts and described car light parts are the parts of a car, and then determine number of vehicles, comprising:
Obtain the parts such as described car plate parts in described inverse perspective view and described car number and;
If described number and be not less than preset value, then obtain the distance value between the parts such as described car plate parts in described inverse perspective view and described car and angle value, and then determine described distance value and the likelihood score of described angle value in described gauss hybrid models;
If the numerical value of described likelihood score is greater than likelihood score threshold value, then determines that described car plate parts and described car light parts are the parts of a car, and then determine number of vehicles.
In force, get accurately after car plate parts and car light parts at back, the quantity of the two is gathered, if number and be not less than preset value, then obtain described car plate parts and the likelihood score of described car light parts in described gauss hybrid models, if the numerical value of described likelihood score is greater than likelihood score threshold value, then determine that described car plate parts and described car light parts are the parts of a car, thus the judgement completed a car, in video image, repeat above-mentioned steps, and then determine overall vehicle number.
By above-mentioned steps, the vehicle on road is identified, relative to scheme of the prior art, the accuracy of vehicle identification can be improved significantly.
Optionally, the described vehicle checking method based on space of components relation, also comprises:
If the numerical value of described likelihood score is less than described likelihood score threshold value, then the quantity because of described car light parts and described car plate parts is very few, cannot determine vehicle detection result.
In force, get accurately after car plate parts and car light parts at back, the quantity of the two is gathered, if the number gathered is less than preset value, then can be less than likelihood score threshold value because of the very few numerical value of likelihood score that causes of number of components, thus cannot determine whether above-mentioned parts belong to same car, also just can not realize vehicle identification accurately.
The invention provides a kind of vehicle checking method based on space of components relation, comprise and set up gauss hybrid models, obtain perspective transformation matrix, build inverse projecting plane, according to described perspective transformation matrix, the information in described video image is carried out inverse projection, obtain inverse perspective view, described car plate parts and described car light parts are determined from described inverse perspective view, if the described car plate parts in described inverse perspective view and the number of described car light parts and be not less than preset value, then determining that described car plate parts and described car light parts determine number of vehicles after being the parts of a car.By introducing gauss hybrid models in vehicle detection process, compared with prior art, can overcome block and illumination condition difference on the impact of algorithm of target detection, improve the accuracy of vehicle identification.
It should be noted that: the vehicle checking method based on space of components relation that above-described embodiment provides carries out the embodiment of vehicle detection, only as the explanation in actual applications of this vehicle checking method, can also use in other application scenarioss according to actual needs and by above-mentioned vehicle checking method, its specific implementation process is similar to above-described embodiment, repeats no more here.
Each sequence number in above-described embodiment, just to describing, does not represent the sequencing in the assembling of each parts or use procedure.
The foregoing is only embodiments of the invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (6)

1. based on a vehicle checking method for space of components relation, it is characterized in that, the described vehicle checking method based on space of components relation, comprising:
Obtain video image, determine the distance value between the car plate parts of vehicle sample in described video image and car light parts and angle value, set up according to described distance value and described angle value combination algorithm the gauss hybrid models representing spatial relationship between car plate parts and car light parts;
Use direct linear transformation to demarcate described video image, obtain perspective transformation matrix;
Build inverse projecting plane, according to described perspective transformation matrix, the information in described video image is carried out inverse projection, obtain inverse perspective view;
According to color conversion model, in conjunction with gradient algorithm, from described inverse perspective view, determine described car plate parts and described car light parts;
If the described car plate parts in described inverse perspective view and the number of described car light parts and be not less than preset value, then obtain described car plate parts and the likelihood score of described car light parts in described gauss hybrid models, if the numerical value of described likelihood score is greater than likelihood score threshold value, then determine that described car plate parts and described car light parts are the parts of a car, and then determine number of vehicles.
2. the vehicle checking method based on space of components relation according to claim 1, is characterized in that, described use direct linear transformation demarcates described video image, obtains perspective transformation matrix, comprising:
In world coordinate system, choose the calibration point of six known coordinates, wherein four described calibration points are positioned at surface level, and the height value of another two described calibration points is non-vanishing;
Obtain the image coordinate of calibration point in image coordinate system of described six known coordinates, obtain the perspective transformation matrix between described world coordinate system and described image coordinate system by least square method.
3. the vehicle checking method based on space of components relation according to claim 1, is characterized in that, the information in described video image, against projecting plane, is carried out inverse projection according to described perspective transformation matrix by described structure, obtains inverse perspective view, comprising:
Pane location is chosen on described inverse projecting plane, determines the sampled pixel point that each described pane location is corresponding on described video image;
Described video image is converted to gray level image, and obtains the gray-scale value of described sampled pixel point;
Carry out inverse projection according to described perspective transformation matrix by mutually described for the gray-scale value of described sampled pixel point inverse projecting plane, obtain the inverse perspective view after inverse projection.
4. the vehicle checking method based on space of components relation according to claim 1, is characterized in that, described according to color conversion model, in conjunction with gradient algorithm, determines described car plate parts and described car light parts, comprising from described inverse perspective view:
By the car plate color model in color conversion model, obtain the car plate gray-scale map of described video image, and then obtain the car plate gradient map of described car plate gray-scale map;
The car plate sample areas identical with car plate size is chosen from described car plate gradient map, obtain the average gradient value of all pixels in described car plate sample areas, if described average gradient value is greater than predetermined gradient threshold value, then determine that described car plate sample areas is license plate area, and determine described car plate parts by connected component labeling method in described license plate area;
By the car light color model in described color conversion model, obtain the car light gray-scale map of described video image, and then obtain the binary image of described car light gray-scale map in conjunction with binary-state threshold;
Obtain the white portion in described binary image, in described white portion, determine described car light parts by described connected component labeling method.
5. the vehicle checking method based on space of components relation according to claim 1, it is characterized in that, if the described car plate parts in described inverse perspective view and the number of described car light parts and be not less than preset value, then obtain described car plate parts and the likelihood score of described car light parts in described gauss hybrid models, if the numerical value of described likelihood score is greater than likelihood score threshold value, then determine that described car plate parts and described car light parts are the parts of a car, and then determine number of vehicles, comprising:
Obtain the parts such as described car plate parts in described inverse perspective view and described car number and;
If described number and be not less than preset value, then obtain the distance value between the parts such as described car plate parts in described inverse perspective view and described car and angle value, and then determine described distance value and the likelihood score of described angle value in described gauss hybrid models;
If the numerical value of described likelihood score is greater than likelihood score threshold value, then determines that described car plate parts and described car light parts are the parts of a car, and then determine number of vehicles.
6. the vehicle checking method based on space of components relation according to claim 1, is characterized in that, the described vehicle checking method based on space of components relation, also comprises:
If the numerical value of described likelihood score is less than described likelihood score threshold value, then the quantity because of described car light parts and described car plate parts is very few, cannot determine vehicle detection result.
CN201510566019.7A 2015-09-08 2015-09-08 A kind of vehicle checking method based on space of components relationship Active CN105160324B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510566019.7A CN105160324B (en) 2015-09-08 2015-09-08 A kind of vehicle checking method based on space of components relationship

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510566019.7A CN105160324B (en) 2015-09-08 2015-09-08 A kind of vehicle checking method based on space of components relationship

Publications (2)

Publication Number Publication Date
CN105160324A true CN105160324A (en) 2015-12-16
CN105160324B CN105160324B (en) 2018-10-26

Family

ID=54801176

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510566019.7A Active CN105160324B (en) 2015-09-08 2015-09-08 A kind of vehicle checking method based on space of components relationship

Country Status (1)

Country Link
CN (1) CN105160324B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106056102A (en) * 2016-07-01 2016-10-26 哈尔滨工业大学 Video-image-analysis-based road vehicle type classification method
CN106295528A (en) * 2016-08-01 2017-01-04 长安大学 A kind of vehicle checking method based on multi-part spatial relation GMM modeling
CN106898016A (en) * 2017-01-19 2017-06-27 博康智能信息技术有限公司北京海淀分公司 Obtain the method and device of vehicle scale information in traffic image
CN108932453A (en) * 2017-05-23 2018-12-04 杭州海康威视数字技术股份有限公司 A kind of vehicle spare tyre detection method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101211408A (en) * 2006-12-29 2008-07-02 沈阳东软软件股份有限公司 Vehicle side image recognition method and apparatus, car lamp error identification detection and driving safety prediction method
CN102136194A (en) * 2011-03-22 2011-07-27 浙江工业大学 Road traffic condition detection device based on panorama computer vision
US20120148092A1 (en) * 2010-12-09 2012-06-14 Gorilla Technology Inc. Automatic traffic violation detection system and method of the same
CN103870809A (en) * 2014-02-27 2014-06-18 奇瑞汽车股份有限公司 Vehicle detection method and device
US9025825B2 (en) * 2013-05-10 2015-05-05 Palo Alto Research Center Incorporated System and method for visual motion based object segmentation and tracking

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101211408A (en) * 2006-12-29 2008-07-02 沈阳东软软件股份有限公司 Vehicle side image recognition method and apparatus, car lamp error identification detection and driving safety prediction method
US20120148092A1 (en) * 2010-12-09 2012-06-14 Gorilla Technology Inc. Automatic traffic violation detection system and method of the same
CN102136194A (en) * 2011-03-22 2011-07-27 浙江工业大学 Road traffic condition detection device based on panorama computer vision
US9025825B2 (en) * 2013-05-10 2015-05-05 Palo Alto Research Center Incorporated System and method for visual motion based object segmentation and tracking
CN103870809A (en) * 2014-02-27 2014-06-18 奇瑞汽车股份有限公司 Vehicle detection method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吴东承: "基于可变形部件模型的车辆检测方法研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106056102A (en) * 2016-07-01 2016-10-26 哈尔滨工业大学 Video-image-analysis-based road vehicle type classification method
CN106295528A (en) * 2016-08-01 2017-01-04 长安大学 A kind of vehicle checking method based on multi-part spatial relation GMM modeling
CN106898016A (en) * 2017-01-19 2017-06-27 博康智能信息技术有限公司北京海淀分公司 Obtain the method and device of vehicle scale information in traffic image
CN108932453A (en) * 2017-05-23 2018-12-04 杭州海康威视数字技术股份有限公司 A kind of vehicle spare tyre detection method and device

Also Published As

Publication number Publication date
CN105160324B (en) 2018-10-26

Similar Documents

Publication Publication Date Title
CN111694010B (en) Roadside vehicle identification method based on fusion of vision and laser radar
CN108983219B (en) Fusion method and system for image information and radar information of traffic scene
CN112581612B (en) Vehicle-mounted grid map generation method and system based on fusion of laser radar and all-round-looking camera
Kühnl et al. Spatial ray features for real-time ego-lane extraction
CN111666805B (en) Class marking system for autopilot
CN102073846B (en) Method for acquiring traffic information based on aerial images
Liu et al. A survey of vision-based vehicle detection and tracking techniques in ITS
CN106951898B (en) Vehicle candidate area recommendation method and system and electronic equipment
CN115049700A (en) Target detection method and device
CN105160324A (en) Vehicle detection method based on part spatial relation
CN109840463A (en) A kind of Lane detection method and apparatus
CN111160132B (en) Method and device for determining lane where obstacle is located, electronic equipment and storage medium
CN115292913A (en) Vehicle-road-cooperation-oriented drive test perception simulation system
Munajat et al. Road detection system based on RGB histogram filterization and boundary classifier
CN114648551A (en) Trajectory prediction method and apparatus
CN108268866B (en) Vehicle detection method and system
CN112990049A (en) AEB emergency braking method and device for automatic driving of vehicle
Oniga et al. A fast ransac based approach for computing the orientation of obstacles in traffic scenes
CN115588047A (en) Three-dimensional target detection method based on scene coding
Zheng et al. Research on environmental feature recognition algorithm of emergency braking system for autonomous vehicles
Li et al. Application of Image Processing and Three‐Dimensional Data Reconstruction Algorithm Based on Traffic Video in Vehicle Component Detection
Jia et al. Infrastructure-Assisted Collaborative Perception in Automated Valet Parking: A Safety Perspective
CN114648549A (en) Traffic scene target detection and positioning method fusing vision and laser radar
Du et al. Validation of vehicle detection and distance measurement method using virtual vehicle approach
Zeng et al. Research on recognition technology of vehicle rolling line violation in highway based on visual UAV

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211231

Address after: 710000 room d4405, 4th floor, free trade bonded building, No. 1, free trade Avenue, airport new town, Xixian new area, Xi'an, Shaanxi a44

Patentee after: Xi'an Dewei Shitong Intelligent Transportation Co.,Ltd.

Address before: 710064 No. 126 central section of South Ring Road, Yanta District, Xi'an, Shaanxi

Patentee before: CHANG'AN University

CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 710000 room d4405, 4th floor, free trade bonded building, No. 1, free trade Avenue, airport new town, Xixian new area, Xi'an, Shaanxi a44

Patentee after: Xi'an Dewei Shitong Intelligent Technology Co.,Ltd.

Address before: 710000 room d4405, 4th floor, free trade bonded building, No. 1, free trade Avenue, airport new town, Xixian new area, Xi'an, Shaanxi a44

Patentee before: Xi'an Dewei Shitong Intelligent Transportation Co.,Ltd.