Summary of the invention
In order to solve the problem, the invention provides a kind of be positioned at traffic intersection across solid line and road vehicle identification method, high-definition camera equipment is utilized successively to carry out image acquisition to obtain two width crossing images of interval Preset Time to described traffic intersection, based on traffic intersection the identification of solid line characteristics of image described in appear at the same vehicle of different traffic aisle in two width crossing images, and adopt OCR recognizer targetedly to obtain the number-plate number of the vehicle recognized, realize across solid line and the pure electronic recognition of road act of violating regulations.
According to an aspect of the present invention, provide a kind of be positioned at traffic intersection across solid line and road vehicle identification method, the method comprises: 1) provide a kind of be positioned at traffic intersection across solid line and road vehicle identification system, described recognition system comprises portable hard drive, AT89C51 single-chip microcomputer, image recognition apparatus and high-definition camera equipment, described portable hard drive has prestored the solid line characteristics of image of traffic intersection, described high-definition camera equipment carries out image acquisition to obtain two width crossing images of interval Preset Time to described traffic intersection, described image recognition apparatus is connected respectively with described high-definition camera equipment and described portable hard drive, respectively image procossing is carried out to described two width crossing images based on described solid line characteristics of image, described AT89C51 single-chip microcomputer is connected with described image recognition apparatus, determine whether described traffic intersection exists across solid line and road vehicle based on described processing result image, 2) use described system to identify.
More specifically, described be arranged in traffic intersection across solid line and road vehicle identification system, also comprise: luminance sensor, be positioned on described high-definition camera equipment, for detecting the ambient brightness of described high-definition camera equipment surrounding environment, lighting source, is positioned on described high-definition camera equipment, for providing floor light for the image acquisition of described high-definition camera equipment, user input device, for the operation according to user, 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 used for 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, for receiving the steering order of described control of traffic and road platform wireless transmission, described portable hard drive is connected with described user input device, for receiving and storing described Preset Time, described solid line upper limit gray threshold and described lower limit gray threshold, described high-definition camera equipment is a CMOS vision sensor, and the resolution of described two width crossing images is all 1920 × 1080, and described two width crossing images are divided at front crossing image with at rear crossing image according to the time sequencing gathered, described image recognition apparatus is connected respectively with described high-definition camera equipment and described portable hard drive, described image recognition apparatus comprises image pre-processing unit, solid region regional partition unit, vehicle feature recognition unit and vehicle match unit, described image pre-processing unit and described high-definition camera equipment connection, for Image semantic classification will be carried out respectively at front crossing image with at rear crossing image, to obtain in front pretreatment image with in rear pretreatment image, described Image semantic classification comprises contrast strengthen, wavelet filtering and gray processing process, described solid region regional partition unit is connected respectively with described image pre-processing unit and described portable hard drive, the described pixel identification of gray-scale value between described solid line upper limit gray threshold and described solid line lower limit gray threshold in front pretreatment image is formed multiple in front solid line sub pattern, according to described multiple front solid line sub pattern in described position in front pretreatment image from described cut out front pretreatment image multiple at front solid region area image, described multiple quantity at front solid region area image is identical with the quantity of the traffic aisle of described traffic intersection, each is at the corresponding traffic aisle of front solid region area image, also the described pixel identification of gray-scale value between described solid line upper limit gray threshold and described solid line lower limit gray threshold in rear pretreatment image is formed multiple in rear solid line sub pattern, according to described multiple rear solid line sub pattern in described position in rear pretreatment image from described cut out rear pretreatment image multiple at rear solid region area image, described multiple quantity at rear solid region area image is identical with the quantity of the traffic aisle of described traffic intersection, each is at the corresponding traffic aisle of rear solid region area image, described vehicle feature recognition unit is connected with described solid region regional partition unit, identify that the feature of each multiple vehicle in the area image of front solid region is as multiple vehicle in front feature, identify the feature of each multiple vehicle 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, when existence two traffic aisles, one of them traffic aisle corresponding front solid region area image and another traffic aisle corresponding in the area image of rear solid region, there is identical vehicle characteristics time, based on the OCR recognizer preset, in another traffic aisle described corresponding identifying in the area image of rear solid region, the number-plate number with the vehicle of same vehicle feature is to export as the number-plate number violating the regulations, described AT89C51 single-chip microcomputer and described image recognition apparatus, described luminance sensor, described lighting source, described wireless communication interface, described portable hard drive is connected respectively with described high-definition camera equipment, described AT89C51 single-chip microcomputer gathers described two width crossing images based on high-definition camera equipment described in built-in Timer Controlling according to the interval of described Preset Time, send to described image recognition apparatus to carry out image procossing described two width crossing images, receive the number-plate number violating the regulations that described image recognition apparatus exports, described AT89C51 single-chip microcomputer also controls the brightness of the floor light of described lighting source based on described ambient brightness, wherein, described wireless communication interface receives the described number-plate number violating the regulations, and the described number-plate number violating the regulations is wirelessly sent to described control of traffic and road platform, described image pre-processing unit, described solid region regional partition unit, described vehicle feature recognition unit and described vehicle match unit adopt the fpga chip of different model to realize respectively.
More specifically, described be arranged in traffic intersection across solid line and road vehicle identification system, also comprise: display device, be connected with described AT89C51 single-chip microcomputer, for showing the described number-plate number violating the regulations in real time.
More specifically, described be arranged in traffic intersection across solid line and road vehicle identification system, described display device is LCDs, is positioned on the cross bar above described traffic intersection.
More specifically, described be arranged in traffic intersection across solid line and road vehicle identification system, described AT89C51 single-chip microcomputer controls the floor light of described lighting source brightness based on described ambient brightness comprises: the brightness adjusting the floor light of described lighting source makes the brightness of the floor light of described lighting source and described ambient brightness be inversely proportional to.
More specifically, described be arranged in traffic intersection across solid line and road vehicle identification system, described luminance sensor, described high-definition camera equipment and described lighting source are all positioned on the cross bar above described traffic intersection.
Embodiment
Below with reference to accompanying drawings to of the present invention be positioned at traffic intersection across solid line and the embodiment of road vehicle identification system be described in detail.
Before dead line waited for by the vehicle of current traffic intersection, in order to prevent the vehicle of each traffic aisle switching channel and cause traffic order confusion even major accident back and forth, control of traffic and road department generally can arrange a solid line region, described solid line region is a rectangular area, by four rectilinear(-al)s of periphery, in rectangular area, with vertical described vehicle, the inner quantity according to traffic aisle waits for that the direction of dead line divides multiple sub-rectangular area, the corresponding traffic aisle in each sub-rectangular area, traffic aisle may comprise 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 switched flexibly in multiple traffic aisle by for a flash, but once carry out described rectangular area, if carry out the switching of traffic aisle again, forbidden act of violating regulations will be regarded as, certain punishment may be in.But, lack in prior art at traffic intersection across solid line and the effective electron means of identification of road act of violating regulations, and comparatively original artificial naked eyes recognition mode can only be used, this artificial mode is not high except recognition efficiency, except the shortcoming of poor real, also occupy a large amount of originally rare traffic administration manpower, its cost of labor is higher.
The present invention build a kind of be positioned at traffic intersection across solid line and road vehicle identification system, its recognition principle is as follows: successively take two width images to traffic intersection, characteristics of image based on solid line divides multiple traffic aisle image to every piece image, when existence two traffic aisles, one of them traffic aisle corresponding front traffic aisle image and another traffic aisle corresponding in rear traffic aisle image, there is identical vehicle characteristics time, based on the OCR recognizer preset, in another traffic aisle described corresponding identifying in rear traffic aisle image, the number-plate number with the vehicle of same vehicle feature is to export as the number-plate number violating the regulations, the detection full automation of whole recognition system.
Fig. 1 be illustrate according to an embodiment of the present invention be positioned at traffic intersection across solid line and the block diagram of road vehicle identification system, described recognition system comprises: 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 is connected respectively with described portable hard drive 4, described image recognition apparatus 3 and described high-definition camera equipment 2, and described image recognition apparatus 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, described high-definition camera equipment 2 carries out image acquisition to obtain two width crossing images of interval Preset Time to described traffic intersection, described image recognition apparatus 3 carries out image procossing to described two width crossing images respectively based on described solid line characteristics of image, based on described processing result image, described AT89C51 single-chip microcomputer 1 determines whether described traffic intersection exists across solid line and road vehicle.
Then, continue to of the present invention be positioned at traffic intersection across solid line and the concrete structure of road vehicle identification system be further detailed.
Described recognition system also comprises: luminance sensor, is positioned on described high-definition camera equipment 2, for detecting the ambient brightness of described high-definition camera equipment 2 surrounding environment; Lighting source, is positioned on described high-definition camera equipment 2, for providing floor light for the image acquisition of described high-definition camera equipment 2.
Described recognition system also comprises: user input device, for the operation according to user, 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 used for the solid line in image and background separation.
Described recognition system also comprises: wireless communication interface, sets up two-way wireless communication link with the control of traffic and road platform of far-end, for receiving the steering order of described control of traffic and road platform wireless transmission.
Described portable hard drive 4 is connected with described user input device, for receiving and storing described Preset 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, and the resolution of described two width crossing images is all 1920 × 1080, and described two width crossing images are divided at front crossing image with at rear crossing image according to the time sequencing gathered.
Described image recognition apparatus 3 is connected respectively with described high-definition camera equipment 2 and described portable hard drive 4, described image recognition apparatus 3 comprises image pre-processing unit, solid region regional partition unit, vehicle feature recognition unit and vehicle match unit, described image pre-processing unit is connected with described high-definition camera equipment 2, for Image semantic classification will be carried out respectively at front crossing image with at rear crossing image, to obtain in front pretreatment image with in rear pretreatment image, described Image semantic classification comprises contrast strengthen, wavelet filtering and gray processing process.
Described solid region regional partition unit is connected respectively with described image pre-processing unit and described portable hard drive 4, the described pixel identification of gray-scale value between described solid line upper limit gray threshold and described solid line lower limit gray threshold in front pretreatment image is formed multiple in front solid line sub pattern, according to described multiple front solid line sub pattern in described position in front pretreatment image from described cut out front pretreatment image multiple at front solid region area image, described multiple quantity at front solid region area image is identical with the quantity of the traffic aisle of described traffic intersection, each is at the corresponding traffic aisle of front solid region area image, also the described pixel identification of gray-scale value between described solid line upper limit gray threshold and described solid line lower limit gray threshold in rear pretreatment image is formed multiple in rear solid line sub pattern, according to described multiple rear solid line sub pattern in described position in rear pretreatment image from described cut out rear pretreatment image multiple at rear solid region area image, described multiple quantity at rear solid region area image is identical with the quantity of the traffic aisle of described traffic intersection, each is at the corresponding traffic aisle of rear solid region area image.
Described vehicle feature recognition unit is connected with described solid region regional partition unit, identify that the feature of each multiple vehicle in the area image of front solid region is as multiple vehicle in front feature, identify the feature of each multiple vehicle 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, when existence two traffic aisles, one of them traffic aisle corresponding front solid region area image and another traffic aisle corresponding in the area image of rear solid region, there is identical vehicle characteristics time, based on the OCR recognizer preset, in another traffic aisle described corresponding identifying in the area image of rear solid region, the number-plate number with the vehicle of same vehicle feature 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, described lighting source, described wireless communication interface, described portable hard drive 4 is connected respectively with described high-definition camera equipment 2, described AT89C51 single-chip microcomputer 1 gathers described two width crossing images based on high-definition camera equipment 2 described in built-in Timer Controlling according to the interval of described Preset Time, send to described image recognition apparatus 3 to carry out image procossing described two width crossing images, receive the number-plate number violating the regulations that described image recognition apparatus 3 exports, described AT89C51 single-chip microcomputer 1 also controls the brightness of the floor light of described lighting source based on described ambient brightness.
Wherein, described wireless communication interface receives the described number-plate number violating the regulations, and the described number-plate number violating the regulations is wirelessly sent to described control of traffic and road platform; Described image pre-processing unit, described solid region regional partition unit, described vehicle feature recognition unit and described vehicle match unit can adopt the fpga chip of different model to realize respectively.
Wherein, described recognition system also comprises: display device, be connected with described AT89C51 single-chip microcomputer 1, for showing the described number-plate number violating the regulations in real time, described display device can select LCDs, be positioned on the cross bar above described traffic intersection, described AT89C51 single-chip microcomputer 1 controls the floor light of described lighting source brightness based on described ambient brightness can comprise: the brightness adjusting the floor light of described lighting source makes the brightness of the floor light of described lighting source and described ambient brightness be inversely proportional to, and alternatively, described luminance sensor, described high-definition camera equipment 2 and described lighting source are all positioned on the cross bar above described traffic intersection.
In addition, single-chip microcomputer (Microcontrollers) is a kind of integrated circuit (IC) chip, adopt very large scale integration technology to be integrated into the little and perfect microcomputer system of that one piece of silicon chip is formed, in industrial control field widespread use having the central processor CPU of data-handling capacity, random access memory ram, read only memory ROM, multiple I/O mouth and the function such as interrupt system, timer/counter (may also comprise the circuit such as display driver circuit, pulse-width modulation circuit, analog multiplexer, A/D converter).
From the eighties in last century, by 4 at that time, 8 single-chip microcomputers, develop into the high-speed microprocessor of present 300M.The use field of single-chip microcomputer is very extensive, as intelligent instrument, in real time industry control, communication apparatus, navigational system, household electrical appliance etc.Various product, once use single-chip microcomputer, just can play the effect making the updating and upgrading of a product, titled with adjective " intelligent " before name of product of being everlasting, as Intelligent Washing Machine etc.
Single-chip microcomputer is born in 1971, and experienced by SCM, MCU, SoC tri-megastage, early stage SCM single-chip microcomputer is all 8 or 4.Be the most successfully wherein 8051 of INTEL, on 8051, after this developed MCS51 Series MCU system.Single Chip Microcomputer (SCM) system based on this system is also widely using up to now.Along with the raising that industrial control field requires, start to have occurred 16 single-chip microcomputers, but because undesirable not the obtaining of cost performance is applied very widely.Along with consumption electronic product great development after the nineties, singlechip technology obtains huge raising.Along with the widespread use of INTEL i960 series particularly ARM series afterwards, 32 single-chip microcomputers replace rapidly the high end status of 16 single-chip microcomputers, and enter mainstream market.And the performance of traditional 8 single-chip microcomputers have also been obtained raising at full speed, processing power improves hundreds of times compared with the eighties.32 high-end Soc single-chip microcomputer dominant frequency are more than 300MHz, and performance directly chases after the application specific processor of the mid-90, and common model factory price drops to 1 dollar, and the model of most significant end also only has 10 dollars.
No longer only exploitation and the use under bare machine environment of Single Chip Microcomputer (SCM) system in the present age, embedded OS special is in a large number widely used on the single-chip microcomputer of complete series.And even can directly use special Windows and (SuSE) Linux OS at the high-end single-chip microcomputer as palm PC and mobile phone core processing.
AT89C51 is a kind of low-voltage, high-performance CMOS 8-bit microprocessor of band 4K byte FLASH memory (FPEROM-FlashProgrammable and Erasable Read Only Memory), also with 2K byte Flash-Programmable erasable read-only memory.The erasable read-only memory of single-chip microcomputer can wipe 1000 times repeatedly.This device adopts ATMEL high density nonvolatile memory manufacturing technology to manufacture, with the MCS-51 instruction set of industrial standard and output pin mutually compatible.Owing to being combined in one single chip by multi-functional 8 bit CPUs and flash memory, the AT89C51 of ATMEL is a kind of efficient microcontroller, and AT89C2051 is its a kind of compact version.AT89C51 single-chip microcomputer is that a lot of embedded control system provides the high and inexpensive scheme of a kind of dirigibility.
Adopt of the present invention be positioned at traffic intersection across solid line and road vehicle identification system, for existing identifying schemes relatively artificial, detection efficiency is low and the technical matters wasted time and energy, by analyzing the solid line distribution shape of traffic intersection, multiple high efficiency image processing equipment is adopted to realize the discriminating across solid line vehicles peccancy targetedly, effectively maintain the fairness of road driving, avoid robbing and act therefore occur, for the law enforcement of control of traffic and road department improves important evidence.
Be understandable that, although the present invention with preferred embodiment disclose as above, but above-described embodiment and be not used to limit the present invention.For any those of ordinary skill in the art, do not departing under technical solution of the present invention ambit, the technology contents of above-mentioned announcement all can be utilized to make many possible variations and modification to technical solution of the present invention, or be revised as the Equivalent embodiments of equivalent variations.Therefore, every content not departing from technical solution of the present invention, according to technical spirit of the present invention to any simple modification made for any of the above embodiments, equivalent variations and modification, all still belongs in the scope of technical solution of the present invention protection.