The present invention is Application No. 201510101448.7, filing date March 8 in 2015 day,
The division of the patent of bright entitled " a kind of be positioned at traffic intersection across solid line road vehicle identification method "
Application.
Summary of the invention
In order to solve the problems referred to above, the invention provides a kind of be positioned at traffic intersection across solid line road car
Recognition methods, utilizes high-definition camera equipment described traffic intersection successively to carry out image acquisition to obtain
Two width crossing images of interval Preset Time, real diagram based on traffic intersection is as described in feature identification two
Width crossing image occurs in the same vehicle of different traffic aisle, and uses OCR targetedly
Recognizer obtains the number-plate number of vehicle recognized, it is achieved pure to across solid line road act of violating regulations
Electronic recognition.
According to an aspect of the present invention, it is provided that a kind of be positioned at knowing across solid line road vehicle of traffic intersection
Other method, the method includes: 1) provide a kind of be positioned at traffic intersection across solid line road vehicle identification
System, described identification system includes portable hard drive, AT89C51 single-chip microcomputer, image recognition apparatus and height
Clear picture pick-up device, described portable hard drive has prestored the solid line characteristics of image of traffic intersection, and described high definition is taken the photograph
As equipment carries out image acquisition to obtain two width crossing figures of interval Preset Time to described traffic intersection
Picture, described image recognition apparatus is connected respectively with described high-definition camera equipment and described portable hard drive, base
Respectively described two width crossing images are carried out image procossing in described solid line characteristics of image, described
AT89C51 single-chip microcomputer is connected with described image recognition apparatus, determines institute based on described processing result image
State whether traffic intersection exists across solid line road vehicle;2) described system is used to be identified.
More specifically, described be positioned at traffic intersection in solid line road vehicle identification system, also wrap
Include: luminance sensor, be positioned on described high-definition camera equipment, be used for detecting described high-definition camera equipment
The ambient brightness of surrounding;Lighting source, is positioned on described high-definition camera equipment, for for described
The image acquisition of high-definition camera equipment provides floor light;User input device, for according to user's
Operation, input Preset Time, solid line upper limit gray threshold and solid line lower limit gray threshold, described solid line
Upper limit gray threshold and described solid line lower limit gray threshold are for by the solid line in image and background separation;
Wireless communication interface, sets up two-way wireless communication link with the control of traffic and road platform of far-end, is used for
Receive the control instruction of described control of traffic and road platform wireless transmission;Described portable hard drive and described use
Family input equipment connects, and is used for receiving and store described Preset Time, described solid line upper limit gray threshold
With described lower limit gray threshold;Described high-definition camera equipment is a CMOS vision sensor, described two
The resolution of width crossing image is all 1920 × 1080, and described two width crossing images are according to the time gathered
Order is divided at front crossing image with at rear crossing image;Described image recognition apparatus is taken the photograph with described high definition
As equipment and described portable hard drive connect respectively, described image recognition apparatus includes Image semantic classification list
Unit, solid region regional partition unit, vehicle feature recognition unit and vehicle match unit, described image is pre-
Processing unit is connected with described high-definition camera equipment, and being used for will be at front crossing image with at rear crossing image
Carry out Image semantic classification respectively, to obtain in front pretreatment image with at rear pretreatment image, described figure
As pretreatment includes that contrast enhancing, wavelet filtering and gray processing process, described solid region regional partition list
First and described image pre-processing unit and described portable hard drive is connected respectively, by described at front pretreatment figure
Gray value picture between described solid line upper limit gray threshold and described solid line lower limit gray threshold in Xiang
Element identifies and forms multiple in front solid line sub pattern, according to the plurality of in front solid line sub pattern described
Position in front pretreatment image from described cut out front pretreatment image multiple at front solid line
The traffic aisle of area image, the plurality of quantity at front solid region area image and described traffic intersection
Quantity identical, each is at the corresponding traffic aisle of front solid region area image, also by described rear
In pretreatment image, gray value is at described solid line upper limit gray threshold and described solid line lower limit gray threshold
Between pixel identification and form multiple in rear solid line sub pattern, according to the plurality of at rear solid line subgraph
Case in described position in rear pretreatment image from described cut out rear pretreatment image multiple
At rear solid region area image, the plurality of quantity at rear solid region area image and described traffic intersection
The quantity of traffic aisle is identical, and each is described at the corresponding traffic aisle of rear solid region area image
Vehicle feature recognition unit is connected with described solid region regional partition unit, identifies that each is in front solid region
The feature of the multiple vehicles in area image, as multiple vehicle in front features, identifies that each is at rear solid line
The feature of the multiple vehicles in area image as multiple at rear vehicle feature, described vehicle match unit
It is connected with described vehicle feature recognition unit, when there is two traffic aisles, one of them traffic aisle
Corresponding front solid region area image corresponding with another traffic aisle in the area image of rear solid region
When there is identical vehicle characteristics, lead in another traffic described based on default OCR recognizer
The number-plate number identifying the vehicle with same vehicle feature in the area image of rear solid region that road is corresponding
To export as the number-plate number violating the regulations;Described AT89C51 single-chip microcomputer and described image recognition apparatus, institute
State luminance sensor, described lighting source, described wireless communication interface, described portable hard drive and described
High-definition camera equipment connects respectively, and described AT89C51 single-chip microcomputer is based on described in built-in Timer Controlling
High-definition camera equipment gathers described two width crossing images, by described two according to the interval of described Preset Time
Width crossing image is sent to described image recognition apparatus to carry out image procossing, receives described image recognition
The number-plate number violating the regulations of equipment output, described AT89C51 single-chip microcomputer is additionally based upon described ambient brightness and controls
The brightness of the floor light of described lighting source;Wherein, described wireless communication interface receives described violating the regulations
The number-plate number, and the described number-plate number violating the regulations is wirelessly sent to described control of traffic and road platform;Institute
State image pre-processing unit, described solid region regional partition unit, described vehicle feature recognition unit and institute
State vehicle match unit to be respectively adopted the fpga chip of different model and realize.
More specifically, described be positioned at traffic intersection in solid line road vehicle identification system, also wrap
Include: display device, be connected with described AT89C51 single-chip microcomputer, show described car plate violating the regulations in real time
Number.
More specifically, described be positioned at traffic intersection in solid line road vehicle identification system, described
Display device is LCDs, is positioned on the cross bar above described traffic intersection.
More specifically, described be positioned at traffic intersection in solid line road vehicle identification system, described
AT89C51 single-chip microcomputer controls the brightness of the floor light of described lighting source based on described ambient brightness
Including: the brightness of the floor light adjusting described lighting source makes the floor light of described lighting source
Brightness be inversely proportional to described ambient brightness.
More specifically, described be positioned at traffic intersection in solid line road vehicle identification system, described
Luminance sensor, described high-definition camera equipment and described lighting source are all located at above described traffic intersection
Cross bar on.
Detailed description of the invention
Below with reference to accompanying drawings the present invention is positioned at traffic intersection across solid line road vehicle identification system
The embodiment of system is described in detail.
Before the vehicle of current traffic intersection waits dead line, in order to prevent each traffic aisle
Vehicle toggles passage and causes traffic order confusion even major accident, control of traffic and road department
Typically can arrange a solid line region, described solid line region is a rectangular area, by peripheral four
Rectilinear(-al), inside rectangular area, the quantity according to traffic aisle waits cut-off with vertical described vehicle
The direction of line divides many sub-rectangular areas, each the corresponding traffic aisle in sub-rectangular area, hands over
Circulation passage potentially includes left-hand bend passage, right-hand bend passage, craspedodrome passage and tune passage etc..
Before vehicle enters the rectangular area of traffic intersection, can be led in multiple traffic by for a flash
Switch flexibly in road, but once carry out described rectangular area, if carrying out the switching of traffic aisle again,
Forbidden act of violating regulations will be regarded as, certain punishment may be in.But, prior art
In lack of at traffic intersection across the effective electron means of identification of solid line road act of violating regulations, and can only
Using the most original artificial naked eyes recognition mode, this artificial mode is except recognition efficiency is the highest, in fact
Outside the shortcoming of time property difference, also taking up the most rare a large amount of traffic administration manpower, its cost of labor is relatively
High.
The present invention built a kind of be positioned at traffic intersection across solid line road vehicle identification system, its identify
Principle is as follows: traffic intersection successively shoots two width images, and characteristics of image based on solid line is to each width
Image division multiple traffic aisle image, when there is two traffic aisles, one of them traffic aisle pair
Answer in rear traffic aisle image deposit corresponding with another traffic aisle of front traffic aisle image
When identical vehicle characteristics, based on default OCR recognizer at another traffic aisle described
The corresponding number-plate number identifying the vehicle with same vehicle feature in rear traffic aisle image with
Export as the number-plate number violating the regulations, the detection full automation of whole identification system.
Fig. 1 is according to being positioned at knowing across solid line road vehicle of traffic intersection shown in embodiment of the present invention
The block diagram of other system, described identification system includes: portable hard drive 4, AT89C51 single-chip microcomputer
1, image recognition apparatus 3 and high-definition camera equipment 2, described AT89C51 single-chip microcomputer 1 and described shifting
Dynamic hard disk 4, described image recognition apparatus 3 and described high-definition camera equipment 2 connect respectively, described figure
As identification equipment 3 is connected respectively with described portable hard drive 4 and described high-definition camera equipment 2.
Wherein, described portable hard drive 4 has prestored the solid line characteristics of image of traffic intersection, and described high definition is taken the photograph
As equipment 2 carries out image acquisition to obtain two width crossing figures of interval Preset Time to described traffic intersection
Picture, described image recognition apparatus 3 based on described solid line characteristics of image respectively to described two width crossing images
Carrying out image procossing, described AT89C51 single-chip microcomputer 1 determines described friendship based on described processing result image
Whether path mouth exists across solid line road vehicle.
Then, continue the present invention is positioned at traffic intersection across solid line the tool of road vehicle identification system
Body structure is further detailed.
Described identification system also includes: luminance sensor, is positioned on described high-definition camera equipment 2, uses
In the ambient brightness detecting described high-definition camera equipment 2 surrounding;Lighting source, is positioned at described height
On clear picture pick-up device 2, provide floor light for the image acquisition for described high-definition camera equipment 2.
Described identification system also includes: user input device, and for the operation according to user, input is pre-
If time, solid line upper limit gray threshold and solid line lower limit gray threshold, described solid line upper limit gray threshold
With described solid line lower limit gray threshold for by the solid line in image and background separation.
Described identification system also includes: wireless communication interface, builds with the control of traffic and road platform of far-end
Vertical two-way wireless communication link, refers to for receiving the control of described control of traffic and road platform wireless transmission
Order.
Described portable hard drive 4 is connected with described user input device, is used for receiving and store described presetting
Time, described solid line upper limit gray threshold and described lower limit gray threshold.
Described high-definition camera equipment 2 is a CMOS vision sensor, dividing of described two width crossing images
Resolution is all 1920 × 1080, and described two width crossing images are divided at Qian Lu according to the time sequencing gathered
Mouthful image and at rear crossing image.
Described image recognition apparatus 3 connects respectively with described high-definition camera equipment 2 and described portable hard drive 4
Connecing, described image recognition apparatus 3 includes image pre-processing unit, solid region regional partition unit, vehicle
Feature identification unit and vehicle match unit, described image pre-processing unit and described high-definition camera equipment
2 connect, for carrying out Image semantic classification respectively, to obtain at front crossing image with at rear crossing image
Must in front pretreatment image with in rear pretreatment image, described Image semantic classification include contrast strengthen,
Wavelet filtering and gray processing process.
Described solid region regional partition unit and described image pre-processing unit and described portable hard drive 4 difference
Connect, by described in front pretreatment image gray value in described solid line upper limit gray threshold and described reality
Pixel identification between line lower limit gray threshold also forms multiple in front solid line sub pattern, according to described many
Individual in front solid line sub pattern in described position in front pretreatment image from described at front pretreatment figure
Cut out multiple at front solid region area image in Xiang, the plurality of quantity at front solid region area image with
The quantity of the traffic aisle of described traffic intersection is identical, and each is corresponding one of front solid region area image
Traffic aisle, also by described in rear pretreatment image gray value at described solid line upper limit gray threshold and
Pixel identification between described solid line lower limit gray threshold also forms multiple in rear solid line sub pattern, according to
The plurality of in rear solid line sub pattern in described position in rear pretreatment image from described rear pre-
Process in image cut out multiple at rear solid region area image, the plurality of at rear solid region area image
Quantity is identical with the quantity of the traffic aisle of described traffic intersection, and each is at rear solid region area image pair
Answer a traffic aisle.
Described vehicle feature recognition unit is connected with described solid region regional partition unit, identify each
The feature of the multiple vehicles in the area image of front solid region, as multiple vehicle in front features, identifies each
The feature of the multiple vehicles in the area image of rear solid region as multiple in rear vehicle feature.
Described vehicle match unit is connected with described vehicle feature recognition unit, leads to when there are two traffic
Road, corresponding corresponding with another traffic aisle at front solid region area image of one of them traffic aisle
When there is identical vehicle characteristics in the area image of rear solid region, based on default OCR recognizer
In corresponding the identifying in the area image of rear solid region of another traffic aisle described, there is same vehicle special
The number-plate number of the vehicle levied is to export as the number-plate number violating the regulations.
Described AT89C51 single-chip microcomputer 1 and described image recognition apparatus 3, described luminance sensor, institute
State lighting source, described wireless communication interface, described portable hard drive 4 and described high-definition camera equipment 2
Connecting respectively, described AT89C51 single-chip microcomputer 1 sets based on high-definition camera described in built-in Timer Controlling
Standby 2 gather described two width crossing images, by described two width crossing figures according to the interval of described Preset Time
As being sent to described image recognition apparatus 3 to carry out image procossing, receive described image recognition apparatus 3
The number-plate number violating the regulations of output, described AT89C51 single-chip microcomputer 1 is additionally based upon described ambient brightness and controls institute
State the brightness of the floor light of lighting source.
Wherein, described wireless communication interface receives the described number-plate number violating the regulations, and by described car plate violating the regulations
Number and wireless is sent to described control of traffic and road platform;Described image pre-processing unit, described solid line
Region segmentation unit, described vehicle feature recognition unit and described vehicle match unit can be respectively adopted
The fpga chip of different model realizes.
Wherein, described identification system also includes: display device, with described AT89C51 single-chip microcomputer 1
Connecting, show the described number-plate number violating the regulations in real time, described display device can be selected for LCDs,
Being positioned on the cross bar above described traffic intersection, described AT89C51 single-chip microcomputer 1 is bright based on described environment
The brightness of the floor light that degree controls described lighting source comprises the steps that the auxiliary adjusting described lighting source
The brightness of illumination makes the brightness of the floor light of described lighting source be inversely proportional to described ambient brightness,
And alternatively, described luminance sensor, described high-definition camera equipment 2 and described lighting source all positions
On cross bar above described traffic intersection.
It addition, single-chip microcomputer (Microcontrollers) is a kind of IC chip, it is to use super large
Scale integrated circuit technology is having the central processor CPU of data-handling capacity, random access memory
RAM, read only memory ROM, multiple I/O mouth and the interruption function such as system, timer/counter
(may also include that display driver circuit, pulse-width modulation circuit, analog multiplexer, A/D change
The circuit such as device) it is integrated on one piece of silicon chip the little and perfect microcomputer system constituted,
Industrial control field is extensively applied.
From the eighties in last century, by 4 at that time, 8 single-chip microcomputers, develop into present 300M
High-speed microprocessor.The use field of single-chip microcomputer is the most quite varied, as intelligence instrument, real-time industry control,
Communication apparatus, navigation system, household electrical appliance etc..Various products have once used single-chip microcomputer, just can rise
To making effect of the updating and upgrading of a product, often titled with adjective " intelligent " before name of product, such as intelligence
Energy type washing machine etc..
Single-chip microcomputer is born in 1971, experienced by SCM, MCU, SoC tri-megastage, in early days
SCM single-chip microcomputer is all 8 or 4.The most most successful is the 8051 of INTEL, hereafter exists
MCS51 Series MCU system has been developed on 8051.Single Chip Microcomputer (SCM) system based on this system is straight
The most also it is being widely used.The raising required along with industrial control field, starts to occur in that 16
Single-chip microcomputer, but be widely applied the most very much because cost performance is undesirable.Along with consumption after the nineties
Electronic product develops on a large scale, and singlechip technology has obtained huge raising.Along with INTEL i960 series especially
Being that the extensive of ARM series later is applied, 32 single-chip microcomputers replace rapidly the height of 16 single-chip microcomputers
End status, and enter mainstream market.And the performance of traditional 8 single-chip microcomputers have also been obtained and rapidly carries
Height, disposal ability improves hundreds times compared with the eighties.32 high-end Soc single-chip microcomputer dominant frequency are
Through more than 300MHz, performance directly chases after the application specific processor of the mid-90, and common model is dispatched from the factory
Price falling is to 1 dollar, and the model of most significant end also only has 10 dollars.
Single Chip Microcomputer (SCM) system was the most only developed under bare machine environment and used the present age, and the most special is embedding
Enter formula operating system to be widely used on the single-chip microcomputer of complete series.And as palm PC and mobile phone
The high-end single-chip microcomputer of core processing even can directly use special Windows and Linux to operate system
System.
AT89C51 is a kind of band 4K byte FLASH memory (FPEROM Flash
Programmable and Erasable Read Only Memory) low-voltage, high-performance CMOS 8
Bit microprocessor, also with 2K byte Flash-Programmable erasable read-only memory.Single-chip microcomputer can
Erasable read only memorizer can be wiped 1000 times repeatedly.This device uses ATMEL high density non-volatile
Memorizer manufacturing technology manufactures, mutually compatible with the MCS-51 instruction set of industrial standard and output pin.
Owing to multi-functional 8 bit CPUs and flash memory are combined in one single chip, ATMEL's
AT89C51 is a kind of efficiently microcontroller, and AT89C2051 is its a kind of compact version.AT89C51
Single-chip microcomputer is the scheme that a lot of embedded control system provides that a kind of motility is high and inexpensive.
Use the present invention be positioned at traffic intersection across solid line road vehicle identification system, for existing knowledge
The technical problem that other scheme is the most artificial, detection efficiency is low and wastes time and energy, by analyzing traffic road
Mouthful solid line distribution shape, use targetedly multiple high efficiency image processing equipment realize to across
The discriminating of solid line vehicles peccancy, maintains the fairness of road driving effectively, it is to avoid robs behaviour therefore sends out
Raw, the law enforcement for control of traffic and road department improves important evidence.
Although it is understood that the present invention discloses as above with preferred embodiment, but above-mentioned enforcement
Example is not limited to the present invention.For any those of ordinary skill in the art, without departing from
Under technical solution of the present invention ambit, all may utilize the technology contents of the disclosure above to the technology of the present invention
Scheme makes many possible variations and modification, or is revised as the Equivalent embodiments of equivalent variations.Therefore,
Every content without departing from technical solution of the present invention, the technical spirit of the foundation present invention is to above example
Any simple modification, equivalent variations and the modification done, all still falls within technical solution of the present invention protection
In the range of.