Summary of the invention
Therefore, the deficiency existed for prior art, the present inventor is desirable to provide a kind of car with image processing apparatus
Safety device and method.
In a first aspect of the present invention, it is provided that a kind of safety device of vehicle, described safety device of vehicle includes vehicle-mounted
Image collecting device, image processing apparatus and image display device, image collecting device connects with image processing apparatus communication,
Image processing apparatus connects with image display device communication, and wherein said image processing apparatus includes bright area Weakening treatment list
Unit, for carrying out Weakening treatment to the high-brightness region gathered from image collecting device reception in image;And described image
Image after processing means will process sends device used for image display in showing to driver.
Preferably, bright area Weakening treatment cell location is, determines the high-brightness region in received image, and by institute
State the luminance-value reduction of high-brightness region.
In further aspect of the present invention, bright area Weakening treatment cell location is, it is judged that the picture in the image received
Whether the gray value of vegetarian refreshments is more than the first predetermined gray value;If it is determined that the gray value of the pixel in described image is more than first
Predetermined gray value, changes into the second predetermined gray value by the gray value of described pixel, and wherein the second predetermined gray value is less than the
One predetermined gray value.
In further aspect of the present invention, bright area Weakening treatment cell location is, it is judged that in the image received
Whether the average gray value in individual region is more than the first predetermined gray value;If it is determined that the average ash in the described region in described image
The average gray value in described region, more than the first predetermined gray value, is changed into the second predetermined gray value by angle value, and wherein second is pre-
Determine gray value less than the first predetermined gray value.
Preferably, image collector is set to video camera, and is arranged on the top of vehicle front window.
Preferably, described image processing apparatus also includes denoising unit, smoothing processing unit, Nogata processing unit
In at least one.
In a second aspect of the present invention, it is provided that a kind of vehicle safety control method, the method comprises the steps: to obtain
The image of vehicle front road conditions;Determine the high-brightness region in described image;Described image is carried out Weakening treatment so that by institute
State the luminance-value reduction of high-brightness region in image;And the image after processing is shown to driver.
Preferably, determine that the step of the high-brightness region in described image includes: judge putting down of the region in described image
All whether gray value is more than the first predetermined gray value, if it is determined that and the average gray value in region in described image is more than the
One predetermined gray value, then this region is confirmed as high-brightness region.
Preferably, the step that described image carries out Weakening treatment includes: reduced by the gray value of described high-brightness region
To expected value.
The more areas of present invention application will be become more fully apparent by detailed description given below.Should manage
Solve, specifically describe and specific examples is used only as explaining and understanding purpose, but should not be used to limit the scope of the present invention.
Detailed description of the invention
In order to the technical characteristic of the present invention, purpose and effect are more clearly understood from, this is described with reference to the accompanying drawings
Inventive embodiment.Wherein, identical parts use identical label.
Referring now to Fig. 1 and 2, vehicle 1 includes vehicle-mounted safety device of vehicle 10.Safety device of vehicle 10 can include figure
As harvester 100, image processing apparatus 200 and image display device 300.In the present invention, when driving vehicle at night,
By driver's unlocking vehicle safety device 10.The safety device of vehicle 10 of the present invention mainly provides safe driving by the following means
Ensure: by being arranged on image information or the data in the image collecting device 100 collection vehicle front of vehicle front;To be gathered
Image information send image processing apparatus 200 to, image processing apparatus 200 utilizes colourity, brightness or other Parameter analysis figure
As the bright area caused due to opponent vehicle headlight in information or data, and correction map picture;Then revised image is passed
Passing image display device 300, image display device 300 shows revised image to driver, in order to driver gets rid of
The strong illumination impact of opponent vehicle headlight, it is possible to clear understand the road surface of vehicle front and/or the situation of things in time,
Thus in order to ensure safe driving, provide useful help to driver.
In safety device of vehicle 10, image collecting device 100 and image processing apparatus 200 interconnect via communication line,
Image processing apparatus 200 and image display device 300 also interconnect via communication line, for view data or information at them
Between transmission, as shown in Figure 2.
It is anterior that image collecting device 100 is typically mounted at vehicle cab, such as, on driver's cabin front window 2, be used for obtaining
Vehicle front road surface or the original image of surrounding.In the example depicted in figure 1, image collecting device 100 is arranged on vehicle
The front upper place of front window 2.However, it is also contemplated that image collecting device 100 is arranged on vehicle front window near driving
On the position of the person of sailing, such as, such as the upper right side of the front window 2 in Fig. 1.In one embodiment, image collecting device 100 is permissible
It it is the video camera of any suitable type.
Image processing apparatus 200 receives the original image information or view data collected from image collecting device 100.?
In original image, owing to the brightness that opponent vehicle front car light is too strong causes the high-brightness region in original image, especially at night
Between travel in, this makes this vehicle front road surface or surrounding become more unintelligible in original image.Therefore, the present invention
Image processing apparatus 200 include bright area Weakening treatment unit 210, for the part of the high brightness gathered in image being carried out
Weakening treatment, in order to reduce the brightness of opposite car light in image after treatment.Due to through Weakening treatment unit 210 Corrections Division
Image after reason reduces the brightness of the overly bright region that opponent vehicle car light causes, and can strengthen the brightness in other regions, therefore
The road surface ahead in original image or surrounding can be largely made to be made apparent from.
Image display device 300 connects with image processing apparatus 200 via communication line, receives the image of above-mentioned process also
Display it to driver.In one embodiment, image display device 300 can be arranged near the instrument board of driver's cabin,
It is positioned at the front of driver, it is simple to driver checks.
As it has been described above, the image after processing is supplied to driver, as driving auxiliary display, owing to eliminating the other side's car
The impact of the high light of car light, it is allowed to driver can by the image after processing more accurately, be well understood to meet at night
Time surrounding and the real information on road surface.So driver can select suitable driving path according to the image after processing,
Improve vehicle drive safety.
Fig. 3 shows the schematic block diagram of the safety device of vehicle 10 of second specific embodiment according to the present invention.Such as Fig. 3
Shown in, safety device of vehicle 10 can also include image storage 400, for store collection or process after image information or
Data.Image storage 400 respectively can with image collecting device 100, image processing apparatus 200 and image display device 300
Connect communicatedly.It is wherein that two-way communication is connected between image storage 400 with image processing apparatus 200.Between said apparatus
Communication connection can be wired or wireless.
The bright area Weakening treatment unit 210 being described more fully below in the image processing apparatus 200 according to the present invention.From
Image collecting device 100 such as video camera obtains original image signal, such as RGB888 signal.The gray value of RGB888 signal
When (brightness degree) is (0,0,0), the pixel in representative image is black;The gray value (brightness degree) of RGB888 signal is
Time (255,255,255), the pixel in representative image is white.If assuming that the gray value of a certain pixel in image surpasses
Cross the first predetermined gray value, such as (240,240,240), then it is assumed that this pixel is that opponent vehicle headlight causes
Cross bright spot.Therefore, the average gray value in image is more than the continuum of the first predetermined gray value, it is believed that before being opponent vehicle
The overly bright region that headlight causes.According to above-mentioned determination methods, bright area Weakening treatment unit 210 connects from image collecting device 100
Receive RGB888 signal, based on the overly bright region in gray value identification original image, then reduce the continuous print identified and cross clear zone
The gray value in territory such as average gray value, thus weaken the hi-lite in original image, weaken the brightness shadow of opposite car light
Ring.The gray value more than the overly bright region of the first predetermined gray value in image can be reset to the second predetermined gray scale
Value, wherein the second predetermined gray value is less than the first predetermined gray value.Such as, can by image more than the first predetermined gray value
The gray value of overly bright region is reduced to original part.Alternatively, it is also possible to reducing this sheet continuum
Gray value while, improve the gray value beyond the continuum in image.Process via bright area Weakening treatment unit 210
After image in, the overly bright region caused due to opponent vehicle headlight is weakened, it is possible to during nighttime driving for drive
Member provides effective traffic information.
In yet another embodiment of the present invention, in addition to spot zone Weakening treatment unit 210, image processing apparatus
200 can also include at least one in denoising unit 220, smoothing processing unit 230, Nogata processing unit 240.Figure
The block diagram of 4 units showing the image processing apparatus 200 according to a specific embodiment.In this embodiment, former
Beginning image information sequentially passes through denoising unit 220, smoothing processing unit 230, spot zone Weakening treatment unit 210 and straight
Sideization processing unit 240 processes, to obtain the vehicle front image handled well.
Fig. 5 shows the flow chart of the vehicle safety control method corresponding to embodiment illustrated in fig. 4.Method starts from step
S10.In step S20, utilize image collecting device 100, obtain the image information of vehicle front from video camera in real time.Then side
Method order performs step S30-S60, and these steps all complete in the image processing apparatus 200 shown in Fig. 4.Wherein in step
In S30, acquired image is carried out denoising, such as, can use wavelet threshold denoising;In step S40, image is carried out
Smoothing processing, such as by Gauss or meansigma methods smoothing processing;In step S50, higher for the brightness in the image after smooth
Part carries out Weakening treatment, thus reduces the brightness of opposite car light;In step S60, the image after weakening is carried out rectangular histogram
Shape equalization processing.Afterwards, method proceeds to step S70, and the image information handled well is sent to car by image processing apparatus 200
Carry display device 300, provide useful information to driver.
Additionally, in the present invention, image processing apparatus 200 can be configured to single modular unit, it is also possible to vehicle
Control device (such as electronic-controlled installation) to integrate.Image display device 300 can also be configured to single module list
Unit, or share existing vehicle display.
In order to reduce cost, it is possible to use the existing hardware system of automobile, it is achieved the vehicle-mounted vehicle safety dress of the present invention
Put.Such as, for existing automobile, above general automobile, it is equipped with car entertainment sound system.This vehicle entertainment system bag
Including navigation module (or video processing module) and display, wherein the CPU of navigation module can process multi-path video stream (i.e. image
Information).It is contemplated that the safety device of vehicle of the present invention and existing car entertainment sound system share a part of hardware.
It is to say, above-mentioned image processing apparatus is desirably integrated in the navigation module of existing car entertainment sound system, i.e. led by this
The CPU of model plane block performs the image processing program of the present invention;Above-mentioned image display device 300 can omit, and directly uses existing
There is the display of car entertainment sound system.So, by utilizing existing car entertainment sound system, the vehicle peace of the present invention
Full device is very easy to realize, and can be to be realized with a low cost.Only at vehicle front, one front-facing camera need to be installed, by preposition
Camera collection to image be transported to car entertainment sound system, be then delivered to navigation module CPU and scheme as above
As processing, finally proceed to the display of car entertainment sound system, it is achieved to the final display of driver.
The safety device of vehicle of the present invention at least has the advantage that
-effective a driving can be provided when car Facing Movement at night two to guide to driver, it is ensured that driver's
Safety;
-it addition, because the image gathering or processing can be stored in memory element, the image information of these storages is available for
Scene reproduction and accident analysis etc. use.
Although for the ease of being more fully understood that the present invention, according to preferred embodiment, invention has been described, but
Being to be to be understood that in the case of without departing substantially from the principle of the present invention, the present invention can implement in a multitude of different ways.Therefore, this
Bright be understood to include all possible in the case of without departing substantially from the scope of the present invention the most defined in the appended claims
The embodiment implemented and deformation.