Intelligent car lamp control system based on digital image processing technology
Technical Field
The utility model relates to the field of intelligent car lamp control systems, in particular to an intelligent car lamp control system based on a digital image processing technology.
Background
Automobiles have become one of the indispensable transportation means in modern society, but automobiles bring many traffic problems, so that measures for reducing traffic accidents and improving driving safety must be taken. The driving safety of a driver is directly influenced by the quality of the driving vision, the driving vision under the night condition is ensured by the vehicle lamp, and the driving safety of both sides is achieved by ensuring the driving vision of the opposite vehicle and simultaneously ensuring the driving vision of the opposite vehicle by correctly using the high beam lamp. The use of high and low beams is often overlooked or abused during driving and affects the driving operation of the driver. The high beam lamp is usually used in an environment without poor vision of the street lamp, the brightness of the required light is larger, and the low beam lamp is required to be switched under the condition of opposite meeting, so the brightness of the required light is smaller. These human decisions and operations can be left to the vehicle's automated process as much as possible. Thereby obtaining better driving vision to ensure driving safety under the condition of not influencing the driver to operate the vehicle. Therefore, a design scheme of an intelligent automobile light control system based on an image processing technology is provided.
Embedded image processing, the traditional image processing technology mainly relies on a large batch of electronic computer equipment, and the large batch of electronic equipment generates huge expenditure when in use and maintenance, thereby increasing the industry cost. The embedded equipment has the advantages of low cost, low energy consumption, high reliability, small volume, light weight, convenient maintenance and use and the like. By combining the embedded technology with image processing, an embedded image processing system with lower cost, better controllability, mobility and reliability can be developed. The embedded platform is mainly applied to process images to obtain certain image information and then send out control instructions to control peripheral devices.
SUMMERY OF THE UTILITY MODEL
The utility model aims to solve the technical problem that aiming at the limitation of the traditional car lamp lighting system, an image processing technology is introduced, an intelligent control scheme capable of being realized is provided for the car lamp, a better visual effect is provided for a driver according to the relative speed during meeting at night, and the safety of driving at night is improved.
In order to solve the technical problems, the technical scheme of the utility model is as follows:
an intelligent car light control system based on a digital image processing technology comprises an ARM processor, a power supply module, a camera module, an SDRAM module, a light detection module and a dimming circuit module;
ARM treater inside is equipped with ARM power conversion chip and ARM module respectively, power module passes through the ARM power conversion chip and is connected with the ARM treater, the ARM module provides the programming debugging interface for the ARM treater, the camera module is connected with the SDRAM module, the illumination detection module is connected with the ARM treater, the SDRAM module passes through ARM module and ARM treater interconnect, the dimming circuit module is connected with the ARM treater, and is driven by the ARM treater.
Further, the illumination detection module comprises a resistor R1、R2And a photodiode R, the resistor R1One end is connected with a power supply VCC, and the other end is respectively connected with a resistor R2One end of the resistor is connected with the cathode of the photosensitive diode, the anode of the photosensitive diode is grounded, and the resistor R is connected with the anode of the photosensitive diode2The other end is connected with the ARM processor.
Further, the dimming circuit module comprises a diode D1LED of working lamp group1Inductance L1Capacitor C0、CIN、CDDResistance RT、RCSDriving chip U1And mos tube, the drive chip U1Is a GM9910B chip, and the driving chip U1Including an internally disposed VINPin, PWMD pin, GATE pin, CS pin, GND pin, RT pin, VDD pin and LD pin, the V isINThe feet are respectively connected with CINOne terminal, diode D1Negative electrode and capacitor C0LED with one end and working lamp group1One end is connected with CINThe other end is grounded, and the capacitor C0The other end and the working lamp group LED1The other end and an inductor L1One end is connected with the inductor L1The other end and a diode D1The positive electrode is connected with a GATE pin through one end of a mos tube respectively, and the CS pin and the GATE pin are connected with a resistor R throughCSThe other end and a resistor RCSConnection, the resistance RCSThe other end is grounded, the GND pin is grounded, the RT pin and the resistor RTOne end is connected with the resistor RTThe other end is grounded, and the VDD pin and the LD pin are respectively connected with a capacitor CDDOne end is connected with CDDThe other end of the PWMD pin is grounded, and the PWMD pin is connected with the ARM processor.
Further, the power supply module comprises a voltage stabilizer and a capacitor C1、C2、C3、C4The model of the voltage stabilizer is AMS1117-3.3, the voltage stabilizer comprises a Vin pin, a Vout pin and a voltage stabilization GND pin, and the Vin pin is respectively connected with a 12V power supply of an automobile storage battery and a capacitor C1And C2One end of the capacitor is connected with the Vout pin which is respectively connected with the capacitor C3And C4One end is connected withSaid capacitor C1、C2、C3、C4The other end of the voltage stabilizing GND pin is respectively grounded.
Further, the capacitor C1 andC3the capacity is 10 mu F, and the capacitance C2 andC4all the capacities of (2) were 0.1. mu.F.
Further, the model of the ARM power supply conversion chip is LM 26480.
Further, the camera module is an OV7670 camera.
The utility model has the beneficial effects that:
in the utility model, we provide a far and near light vehicle lamp capable of realizing intelligent control based on digital image processing technology, an intelligent control dimming system is designed, a photoresistor is used as a photosensitive sensor, the digital image processing technology and a related calculation method are applied to obtain the relative speed and distance of vehicle meeting so as to simulate the driving behavior of a driver to realize intelligent control, the basic principle is that the photosensitive sensor is used for detecting the intensity of external environment light and the real-time change condition of the light, a vehicle speed sensor is used for detecting the real-time speed of vehicle driving, the detected signal is converted into an electric signal, then the signal is judged by an ARM processor, and the improvement of the brightness of a lighting system or the switching of the far and near light vehicle lamp is controlled by running a corresponding program, so that the intelligent control of the vehicle lamp is realized, the inconvenience of the traditional manual control is solved, the driving of the driver is assisted, and the operation burden of the driver is lightened, the illegal use of lamplight caused by human factors is avoided to the maximum extent, so that the aim of reducing traffic accidents is fulfilled, and the driving safety is improved to the maximum extent; meanwhile, the situation of light abuse can be prevented, and energy conservation and emission reduction are promoted; in addition, the hardware condition adopted by the system does not need to change the conditions of the existing vehicle and vehicle lamp products, and only needs to be properly installed, so that the system has better practicability.
Drawings
Fig. 1 is a schematic diagram of the principle of the present invention.
Fig. 2 is a schematic diagram illustrating the principle of determining the relative vehicle speed according to the result of image processing in the present invention.
Fig. 3 is a schematic circuit diagram of the illumination detection module of the present invention.
Fig. 4 is a schematic circuit diagram of the dimming circuit module according to the present invention.
Fig. 5 is a circuit schematic of the voltage regulator in the power supply module of the present invention.
FIG. 6 is an internal logic diagram of the ARM power conversion chip of the present invention.
Detailed Description
The following further describes embodiments of the present invention with reference to the drawings. It should be noted that the description of the embodiments is provided to help understanding of the present invention, but the present invention is not limited thereto. In addition, the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
According to the description of fig. 1-6:
an intelligent car light control system based on a digital image processing technology comprises an ARM processor, a power supply module, a camera module, an SDRAM module, a light detection module and a dimming circuit module;
ARM treater inside is equipped with ARM power conversion chip and ARM module respectively, power module passes through the ARM power conversion chip and is connected with the ARM treater, the ARM module provides the programming debugging interface for the ARM treater, the camera module is connected with the SDRAM module, the illumination detection module is connected with the ARM treater, the SDRAM module passes through ARM module and ARM treater interconnect, the dimming circuit module is connected with the ARM treater, and is driven by the ARM treater.
Because the illumination detection module comprises a resistor R1、R2And a photodiode R, the resistor R1One end of the light detection module is connected with a power supply VCC, the other end of the light detection module is respectively connected with one end of a resistor R2 and the cathode of a photosensitive diode, the anode of the photosensitive diode R is grounded, and the other end of the resistor R2 is connected with an ARM processor, so when a user uses the light detection module, the light detection module is used for judging the working mode of a high beam, and when the photosensitive diode R of the light detection module detects an external ringThe luminance of border is low and is in night and under the not enough condition of light, and this detection data feeds back to the ARM treater in real time, the ARM treater real time drive illumination detection module opens the high beam, changes the height suddenly when the luminance of external environment is low for a long time then triggers the camera module and carries out continuous frame intercepting to external environment photo, carries out digital image processing and judgement, when the detected value of external environment luminance is higher than a definite value all the time, closes the high beam in real time, illumination detection module is by resistance R1Connected with the ARM processor and connected with a resistor R in parallel in series2And a reverse photodiode R, the resistance R2The other end of the ARM processor is connected with a pin with an ADC function, the photosensitive diode R is reversely grounded, for the reverse photosensitive diode R, the stronger the off illumination is, the larger the leakage current is, so that the voltage obtained by pin sampling is smaller, and conversely, the smaller the illumination is, the larger the voltage value obtained by sampling is.
Because the dimming circuit module comprises a diode D1LED of working lamp group1Inductance L1Capacitor C0、CIN、CDDResistance RT、RCSDriving chip U1And mos tube, the drive chip U1Is a GM9910B chip, and the driving chip U1Including an internally disposed VINPin, PWMD pin, GATE pin, CS pin, GND pin, RT pin, VDD pin and LD pin, the V isINThe feet are respectively connected with CINOne terminal, diode D1Negative electrode and capacitor C0LED with one end and working lamp group1One end is connected with CINThe other end is grounded, and the capacitor C0The other end and the working lamp group LED1The other end and an inductor L1One end is connected with the inductor L1The other end and a diode D1The positive electrode is connected with a GATE pin through one end of a mos tube respectively, and the CS pin and the GATE pin are connected with a resistor R throughCSThe other end and a resistor RCSConnection, the resistance RCSThe other end is grounded, the GND pin is grounded, the RT pin and the resistor RTOne end is connected with the resistor RTThe other end is grounded, and the VDD pin and the LD pin are respectively connected with a capacitor CDDOne end is connected with CDDThe other end is grounded, aThe PWMD pin is connected to the ARM processor so that when the user uses the present invention, the input capacitor C is usedINThe capacitor C plays the roles of reducing input ripple and stabilizing input0The function of reducing output ripple is achieved, and the working lamp bank LED is supplied when the gate circuit is closed1Power supply, the inductance L1Acting as a freewheel, and diode D1At output by means of a capacitor C0And an inductance L1The current loop is limited when the normal gate circuit is opened; resistance RCSThe on-off of the GATE pin is determined according to the voltage division of the sampling resistor, so that the effect of constant current voltage regulation is achieved, the CS pin is a sampling pin, and when the sampling voltage is smaller than a threshold value, a current loop passes through a capacitor C from the positive electrode of a power supply to a working lamp and simultaneously passes through the capacitor C0Absorb ripple and charge, then pass through inductor L1Then flows to the drain electrode through the source electrode of the mos tube and finally passes through the sampling resistor RCSWhen the sampling voltage is larger than a certain value, the control chip closes the GATE pin, thereby changing the current loop. At the moment, the current loop discharges from the capacitor and passes through the LED of the working lamp group1Flows from the inductor to the diode D after the anode1And then returns to the cathode of the working lamp. By adjusting the size of the sampling resistor, the sampling resistor R can be changedCSThe output voltage of different sizes can be obtained by changing the duty ratio of the PWM waveform input by the pin PWMD.
Because the power supply module comprises a voltage stabilizer and a capacitor C1、C2C3 and C4, wherein the model of the voltage stabilizer is AMS1117-3.3, the voltage stabilizer comprises a Vin pin, a Vout pin and a voltage stabilizing GND pin, and the Vin pin is respectively connected with a 12V power supply of an automobile storage battery and a capacitor C1And C2One end of the capacitor C is connected with the Vout pin, and the Vout pin is respectively connected with one ends of capacitors C3 and C41、C2The other ends of the C3 and the C4 and the voltage-stabilizing GND pin are respectively grounded, so when a user uses the system, the output voltage of a storage battery on an automobile is +12V when normal, the system selects an AMS1117-3.3 type voltage stabilizer to convert the voltage into 3.3V, and then an ARM power supply conversion chip LM26480 is used as each module in an ARM processorBlock power supply, ARM power conversion chip LM26480 time integration two 1.5A step-down switching regulators and two 300 milliampere linear regulators, this device adopts 2.8 to 5.5V power and first switching regulator 0.8-2V voltage, and the second provides 1.0-3.3V voltage, can satisfy the power requirement of each module in the ARM treater, the electric capacity C3 and C4 of stabiliser AMS1117-3.3 are output filter capacitance, the effect is restraining self-excited oscillation, if do not connect these two electric capacities, the output of linear regulator usually will be an oscillation waveform, and electric capacity C is a capacitor1And C2The input capacitors are used for preventing voltage inversion after power failure, so that the ARM power supply conversion chip LM26480 can obtain a plurality of commonly used block voltages of an internal module of the ARM processor through 5V input.
The capacitor C1 andC3the capacity is 10 mu F, and the capacitance C2 andC4all the capacities of (2) were 0.1. mu.F.
The model of the ARM power supply conversion chip is LM 26480.
Because the camera module is an OV7670 camera, when a user uses the utility model, data collected by the camera module is stored in the SDRAM module for display or standby, analog signals obtained by the illumination detection module are subjected to analog-to-digital conversion and are compared by the ARM processor to be used as judgment conditions for control, and when the detected ambient brightness is lower than a daytime ambient threshold value, the ARM processor outputs continuous high level to a dimming pin PWMD of the dimming circuit module, so that a high beam can be in normal brightness. When the detected ambient brightness is higher than a certain threshold, an ARM module is started to read 3 frames/s of image data of an SDRAM, then the image data are sent to an ARM processor to be processed and analyzed, the ARM module carries out noise reduction processing on the read image through A/D conversion by using a median filtering method to eliminate the influence of weak and small light sources, then threshold segmentation is carried out on the image to obtain a binary image, then contour extraction is carried out on a target area, interpolation processing is carried out on a target respectively, coordinate positioning is carried out by using a gray centroid method, then coordinates of light spots are compared, if the light spots with approximate Y-axis coordinates exist and the relative vehicle speed is larger than the vehicle speed of the vehicle, the vehicle is judged to be an oncoming vehicle, the judgment of the relative vehicle speed is calculated according to the result of image processing, and the calculation method is shown in figure 3. The position of the own vehicle is shown, and the two vehicles are respectively the position change of the opposite side relative to the own side of the two continuous sampling frames (the position change of the own vehicle is included in the relative position change), the distance between the two lamps of the opposite vehicle is set as a unit length, the image width of the image section m of the picture at the position is set as x units, and then the distance between the two vehicles is x/tan alpha unit length. The image width of the image section n of the photograph at position three is y units, then the two vehicles are separated by y/tan alpha unit length. The relative distance reduction value z is x/tan α -y/tan α according to the similarity triangle, the relative vehicle speed v is z/t, and t is the time interval between two frames. According to the general statistics of the institutions, the vehicle width of common vehicle types is 1.85m to 2.5m, and the maximum value is used as a unit standard for calculation to meet the requirement. The frame sampling frequency can also be increased slightly to reduce errors. The brightness change speed or the irradiation angle of the vehicle lamp or the light subarea can be adjusted by judging the relative vehicle speed, and only the change speed of the light brightness is adjusted to achieve a gentle light adjusting effect, so that the effect of safe driving is achieved.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the described embodiments. It will be apparent to those skilled in the art that various changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the utility model, and the scope of protection is still within the scope of the utility model.