Summary of the invention
The present invention is directed at least solve the technical problems existing in the prior art, especially innovatively proposes a kind of violation and stop
Vehicle recognition methods and system.
In order to realize above-mentioned purpose of the invention, according to the first aspect of the invention, the present invention provides a kind of violations
Parking recognition methods, which comprises the steps of:
Camera collection image video information is simultaneously transferred to processor;
Processor establishes a cartesian space coordinate system in the wide-angle of camera;
Processor establishes the default quadrilateral frame of parking stall in the coordinate system;
Processor is identified and is handled to vehicle image, identifies the feature of vehicle, the feature includes tire, reflective
Mirror, one of headlamp or rear lamp or their any combination establish the quadrilateral frame for surrounding vehicle according to the feature;?
The position at four angles of vehicle quadrilateral frame is judged in XOY plane, determines the vehicle quadrilateral frame in the horizontal plane of camera
Shape;
Preset the comparison judgement of quadrilateral frame shape in the parking stall of the shape for the vehicle quadrilateral frame that will identify that and this position
No illegal parking.
The present invention can identify the nonstandard vehicle of parking on parking lot or road, the position of Direct Recognition vehicle,
And it reminds and takes pictures in time;The operator for reducing parking lot, more quickly and accurately can reach recognition effect.
In the preferred embodiment of the present invention, camera be mounted in apart from ground level be x meter, the x for higher than
The numerical value of vehicle, and the angle of its incidence angle and horizontal plane is θ °, 30≤θ≤60;It is thrown if vehicle is parked in apart from camera level
At position y meters of shadow point, coordinate value of the vehicle in the coordinate system of horizontal plane is p (0, y), and processor is stopped at this coordinate
The corresponding quadrangle wire in position, if the quadrilateral frame of vehicle and the parking stall quadrangle wire of budget mismatch (four with budget
Side shape frame feature gap is excessive), then judge vehicle parking in violation of rules and regulations.
It can also be prestored in another preferred embodiment of the invention, in processor with parking stall position wire mark
First background picture of note, camera acquisition vehicle image/video information identify vehicle and obtain the quadrilateral frame of vehicle, will take
Vehicle image video background removal with quadrilateral frame, the image after removal background is merged with the first background picture, is compared
Vehicle quadrilateral frame exceeds the distance and area of parking stall position wire, when vehicle quadrilateral frame exceeds the distance of parking stall position wire
Numerical value with area is without departing from respective threshold value, then vehicle does not have illegal parking, when vehicle quadrilateral frame exceeds parking stall position
The distance of wire or the numerical value of area have exceeded respective threshold value, then rule-breaking vehicle stops.
The present invention compares the monitoring for realizing rule-breaking vehicle by image, reduces the operator in parking lot, can more accelerate
Speed and accurately reach recognition effect.
In order to realize above-mentioned purpose of the invention, according to the second aspect of the invention, the present invention provides a kind of violations
Parking identifying system comprising camera, processor and alarming device, the camera collection image video information are simultaneously transferred to
Processor, the processor carry out illegal parking recognition methods according to the method described in the present invention, when rule-breaking vehicle parking, place
It manages device control alarming device and issues information warning.
The position of illegal parking identifying system Direct Recognition vehicle of the invention, and remind and take pictures in time;Reduce parking
Operator, can recognition effect more quickly and accurately.
Specific embodiment
In the description of the present invention, it is to be understood that, term " longitudinal direction ", " transverse direction ", "upper", "lower", "front", "rear",
The orientation or positional relationship of the instructions such as "left", "right", "vertical", "horizontal", "top", "bottom" "inner", "outside" is to be driven based on vehicle
Front-rear position relationship when sailing, is merely for convenience of description of the present invention and simplification of the description, rather than the dress of indication or suggestion meaning
It sets or element must have a particular orientation, be constructed and operated in a specific orientation, therefore should not be understood as to limit of the invention
System.
In the description of the present invention, unless otherwise specified and limited, it should be noted that term " installation ", " connected ",
" connection " shall be understood in a broad sense, for example, it may be mechanical connection or electrical connection, the connection being also possible to inside two elements can
, can also indirectly connected through an intermediary, for the ordinary skill in the art to be to be connected directly, it can basis
Concrete condition understands the concrete meaning of above-mentioned term.
The invention proposes a kind of illegal parking recognition methods comprising following steps:
Camera acquisition vehicle parking image/video information is simultaneously transferred to processor.
Processor establishes a cartesian space coordinate system in the wide-angle of camera.
Processor establishes the default quadrilateral frame of parking stall in the coordinate system.
Processor is identified and is handled to vehicle image, identifies the feature of vehicle, the feature includes tire, reflective
Mirror, one of headlamp or rear lamp or their any combination establish the quadrilateral frame for surrounding vehicle according to the feature;Such as
Using one group of tire of automobile feature, one group of reflective mirror, headlamp or rear lamp etc. as the reference line on the side of quadrangle, in this way
The quadrangle of foundation is more representative, the specific outer edge of available tire, the preceding sideline of headlamp and rear lamp
The quadrangle wire of sideline building vehicle afterwards.
The position at four angles of vehicle quadrilateral frame is judged in the XOY plane of cartesian space coordinate system, determination is being taken the photograph
As head horizontal plane in vehicle quadrilateral frame shape.
Preset the comparison judgement of quadrilateral frame shape in the parking stall of the shape for the vehicle quadrilateral frame that will identify that and this position
No violation stops.In the present embodiment, cartesian space coordinate system are as follows: be horizontally to the right X-axis using the lower left corner of wide-angle as origin
Positive direction, it is horizontal be forward Y-axis positive axis direction.Coordinate foundation be judge vehicle whether the important step of violation, this
Judgment basis is also determined, the position of camera is preferably fixed in present embodiment, and camera shooting wide-angle is fixed, so what it was established
Coordinate system should also be fixed.The rectangular shape of Flat-picture in fixed position camera is fixed.
In the present embodiment, deep learning and identification are carried out to vehicle characteristics using convolutional neural networks.When identifying
Dimensionality reduction is carried out after the feature of vehicle, and constructs vehicle characteristics matrix training convolutional neural networks.It is refreshing in convolution to the feature of extraction
It is trained under network, obtains the eigenmatrix information of vehicle in total.Specific neural network structure and deep learning training
And knowledge method for distinguishing can use the prior art.
In the present embodiment, camera be mounted in apart from ground level be x meter, the x for higher than vehicle numerical value (such as
4 meters), and the angle of its incidence angle and horizontal plane is θ °, 30≤θ≤60, preferably 45 °.If vehicle is parked in apart from camera water
At flat subpoint position y meters, coordinate value of the vehicle in the coordinate system of horizontal plane is p (0, y), and processor obtains at this coordinate
The wire of the corresponding quadrangle in parking stall, if the quadrilateral frame of vehicle and the parking stall quadrilateral frame of budget mismatch (such as vehicle
Quadrilateral frame at there is no the quadrilateral frame of the quadrilateral frame of parking stall or vehicle and the quadrilateral frame of parking stall to partially overlap,
Or the quadrilateral frame of vehicle is significantly greater than the quadrilateral frame of parking stall), then judge vehicle parking in violation of rules and regulations.Be labeled and and Times
It warns staff and photographs to record.
In the other preferred embodiment of the present invention, it can also identify vehicle whether in violation of rules and regulations with the following method: processing
The first background picture with parking stall position quadrangle wire can also be prestored in device, camera acquires vehicle image/video letter
The quadrilateral frame of vehicle is ceased, identifies vehicle and obtain, the vehicle image video background for carrying quadrilateral frame is removed, will be removed
Image after background is merged with the first background picture, compares distance and area that vehicle quadrilateral frame exceeds parking stall position wire,
When the numerical value of distance and area of the vehicle quadrilateral frame beyond parking stall position wire is without departing from respective threshold value, then vehicle does not have
Illegal parking;When distance of the vehicle quadrilateral frame beyond parking stall position wire or the numerical value of area have exceeded respective threshold value, then vehicle
Illegal parking.It is labeled and alert operation personnel and photographs to record in time.
In the present embodiment, distance of the vehicle rectangle frame beyond parking stall position wire is the point on vehicle rectangle frame to vehicle
The maximum normal distance of rectangle frame.To improve judgement precision, the interference of lines noise in scene is avoided.
It in the present embodiment, further include alarming device, the signal output end connection of the alarming device and processor, when
When rule-breaking vehicle stops, the alarming device issues information warning.
The present invention also provides a kind of illegal parking identifying systems comprising camera, processor and alarming device, it is described
Camera collection image video information is simultaneously transferred to processor, and the processor carries out stopping in violation of rules and regulations according to the method described in the present invention
Vehicle recognition methods, when rule-breaking vehicle parking, processor controls alarming device and issues information warning.Direct Recognition vehicle of the present invention
Position, and remind and take pictures in time;The operator for reducing parking lot can more quickly and accurately reach identification effect
Fruit.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any
One or more embodiment or examples in can be combined in any suitable manner.
Although an embodiment of the present invention has been shown and described, it will be understood by those skilled in the art that: not
A variety of change, modification, replacement and modification can be carried out to these embodiments in the case where being detached from the principle of the present invention and objective, this
The range of invention is defined by the claims and their equivalents.