CN115891816A - Vehicle lamp adjusting method and device - Google Patents
Vehicle lamp adjusting method and device Download PDFInfo
- Publication number
- CN115891816A CN115891816A CN202110921803.0A CN202110921803A CN115891816A CN 115891816 A CN115891816 A CN 115891816A CN 202110921803 A CN202110921803 A CN 202110921803A CN 115891816 A CN115891816 A CN 115891816A
- Authority
- CN
- China
- Prior art keywords
- vehicle
- target
- road
- target detection
- infrared
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Lighting Device Outwards From Vehicle And Optical Signal (AREA)
Abstract
The invention provides a vehicle lamp adjusting method and a vehicle lamp adjusting device, wherein the method comprises the following steps: when the vehicle runs under night conditions, acquiring infrared image information of a road in front of a target vehicle through infrared night vision equipment; performing image processing on the infrared image information to acquire a target detection image; acquiring the road surface condition of a road in front of a target vehicle according to a target detection image through a target detection model; and correspondingly adjusting the headlamp of the target vehicle according to the road surface condition of the road in front of the target vehicle. According to the car lamp adjusting method, the infrared night vision device is adopted to obtain the road surface condition of the road in front of the target vehicle, and car lamp adjustment is carried out according to the road surface condition, so that the cost and the development difficulty are greatly reduced, and industrialization is easier.
Description
Technical Field
The invention relates to the technical field of vehicle control, in particular to a vehicle lamp adjusting method and a vehicle lamp adjusting device.
Background
In the actual night driving process, the road surface in front may have a sudden bumpy road condition, and when driving at night, if a driver cannot notice the road conditions as soon as possible, except that the vehicle itself can be damaged to different degrees, accidents are more likely to happen. For example, a sudden deceleration strip or a depression may cause a great change in the vehicle body state during night driving, and if the driver does not prepare in advance, a traffic accident may be caused due to improper operation of the vehicle.
In the related technology, a road surface in front of an automobile can be scanned based on a laser radar to obtain three-dimensional point cloud data, the three-dimensional point cloud data is processed through a processing unit, the obtained processing result and an analysis processing result are obtained, namely, obtained road surface information is sent to a control unit, and the control unit adjusts the irradiation brightness or width of a headlamp through the obtained control information. However, the adjustment cost by adopting the scheme is very high, the hardware cost required by the point cloud processing and the development difficulty of the scheme are high, and industrialization and large-scale mass production are difficult to realize in a short time.
Disclosure of Invention
In order to solve the technical problems, the invention provides a car lamp adjusting method, which adopts infrared night vision equipment to obtain the road surface condition of the road in front of a target vehicle and adjusts the car lamp according to the road surface condition, thereby greatly reducing the cost and the development difficulty and being easier to industrialize.
The technical scheme adopted by the invention is as follows:
a vehicle lamp adjusting method comprises the following steps: when the vehicle runs under night conditions, acquiring infrared image information of a road in front of a target vehicle through infrared night vision equipment; performing image processing on the infrared image information to acquire a target detection image; acquiring the road surface condition of a road in front of the target vehicle according to the target detection image through a target detection model; and correspondingly adjusting the headlamp of the target vehicle according to the road surface condition of the road in front of the target vehicle.
The image processing of the infrared image information to obtain a target detection image includes: carrying out threshold processing on the infrared image information to obtain a first detection image; performing edge detection on the first detection image to acquire the target detection image having a contour.
Before the road surface condition of the road in front of the target vehicle is obtained according to the target detection image through the target detection model, the method further comprises the following steps: acquiring a training sample set through the infrared night vision device; receiving vehicle state information sent by a vehicle BCM; marking images corresponding to a time axis in the training sample set according to the vehicle state information to obtain a target training set; and training a target detection algorithm according to the target training set to obtain the target detection model.
The infrared night vision device adopts a CMOS photosensitive element, the resolution is 1280 × 720, and the signal-to-noise ratio is greater than or equal to 48db.
A vehicle light adjustment device comprising: the first acquisition module is used for acquiring infrared image information of a road in front of a target vehicle through infrared night vision equipment when the vehicle travels under night conditions; the second acquisition module is used for carrying out image processing on the infrared image information to acquire a target detection image; the third acquisition module is used for acquiring the road surface condition of a road in front of the target vehicle according to the target detection image through a target detection model; and the adjusting module is used for correspondingly adjusting the headlamp of the target vehicle according to the road surface condition of the road in front of the target vehicle.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the above-mentioned vehicle light adjustment method when executing the computer program.
A non-transitory computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the vehicle light adjustment method described above.
The invention has the beneficial effects that:
according to the invention, the infrared night vision equipment is adopted to obtain the road surface condition of the road in front of the target vehicle, and the vehicle lamp is adjusted according to the road surface condition, so that the cost and the development difficulty are greatly reduced, and the method is easier to industrialize.
Drawings
FIG. 1 is a flow chart of a vehicle lamp adjustment method according to an embodiment of the present invention;
fig. 2 is a block diagram of a vehicle lamp adjusting device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of a vehicle lamp adjusting method according to an embodiment of the present invention.
As shown in fig. 1, the method for adjusting a vehicle lamp according to an embodiment of the present invention may include the steps of:
s1, when the vehicle runs under night conditions, infrared image information of a road in front of a target vehicle is acquired through infrared night vision equipment.
The infrared night vision device can be an infrared night vision camera, wherein the infrared night vision device can adopt a CMOS photosensitive element, the resolution is 1280 x 720, the lowest illumination is supported to 0.01LUX/F1.2, and the signal-to-noise ratio is larger than or equal to 48db. The vehicle can also be provided with an infrared emission unit which is matched with an infrared night vision camera for use.
Specifically, when the fact that the intensity of external environment light is smaller than a preset threshold value and a dipped headlight of a target vehicle is in an on state is detected, the target vehicle is judged to drive under the night condition, at the moment, the infrared emission unit can be controlled to work, infrared light is emitted to the front road surface, the infrared night vision camera optical filter is controlled to be switched, the infrared night vision camera is switched from a daytime mode to a night vision mode, and therefore infrared image information of the road in front of the target vehicle is obtained. The switching between the daytime mode and the night vision mode of the infrared night vision camera adopts an IR-CUT mode, and the infrared transmitting unit is started only when the target vehicle is judged to move under the night condition.
And S2, carrying out image processing on the infrared image information to obtain a target detection image.
According to one embodiment of the present invention, image processing is performed on infrared image information to acquire a target detection image, including: performing threshold processing on the infrared image information to acquire a first detection image; and performing edge detection on the first detection image to acquire a target detection image with a contour.
Specifically, a threshold value may be selected first, pixels in the infrared image information that are greater than the threshold value are changed to black, and pixels that are less than the threshold value are changed to white, so that a black-and-white image of the road ahead, that is, the first detected image, is obtained.
And then, performing edge detection on the first detection image by adopting a Canny edge detection algorithm to detect the edge of the first detection image and output a target detection image with a contour.
And S3, acquiring the road surface condition of the road in front of the target vehicle according to the target detection image through the target detection model.
According to an embodiment of the present invention, before acquiring the road surface condition of the road ahead of the target vehicle from the target detection image by the target detection model, the method further includes: acquiring a training sample set through infrared night vision equipment; receiving vehicle state information sent by a vehicle BCM; marking images corresponding to a time axis in the training sample set according to the vehicle state information to obtain a target training set; and training the target detection algorithm according to the target training set to obtain a target detection model.
Specifically, after the training sample set is obtained through the infrared night vision device, in order to improve the detection accuracy and avoid the situation that the actual vehicle bumps because no bumpy road surface appears on the road in front of the vehicle and the actual vehicle bumps through image processing, the images corresponding to the time axis in the training sample set can be labeled through receiving the vehicle state information sent by the vehicle BCM, so that the target training set is obtained. Then, the target detection algorithm is trained according to a target training set to obtain a target detection model. The target detection model can be an SVM algorithm model.
After model training, the road surface condition of the road in front of the target vehicle is obtained through the trained target detection model according to the target detection image, namely whether the road in front of the target vehicle is a bumpy road surface with obstacles such as potholes and deceleration strips or whether the road in front of the target vehicle is a flat road surface without obstacles is judged.
And S4, correspondingly adjusting the headlamps of the target vehicle according to the road surface condition of the road in front of the target vehicle.
Specifically, when the road surface condition of the road in front of the target vehicle is judged to be a bumpy road surface, the brightness and the irradiation width of the headlamp of the target vehicle can be adjusted correspondingly. Wherein the amplitude of the adjustment can be controlled in dependence on the degree of the jolt. Therefore, a driver can still obtain a better driving view even under the condition that the road surface condition changes, the safety of driving at night is improved, the road surface condition of the road in front of a target vehicle is obtained by adopting the infrared night vision device, and the vehicle lamp is adjusted according to the road surface condition, so that the cost and the development difficulty are greatly reduced, and the industrialization is easier.
In summary, according to the vehicle lamp adjusting method of the embodiment of the invention, when the vehicle travels under night conditions, the infrared image information of the road in front of the target vehicle is acquired through the infrared night vision device, the infrared image information is subjected to image processing to acquire the target detection image, the road surface condition of the road in front of the target vehicle is acquired according to the target detection image through the target detection model, and the headlamp of the target vehicle is correspondingly adjusted according to the road surface condition of the road in front of the target vehicle. Therefore, the infrared night vision device is adopted to obtain the road surface condition of the road in front of the target vehicle, and the vehicle lamp is adjusted according to the road surface condition, so that the cost and the development difficulty are greatly reduced, and the industrialization is easier.
Corresponding to the embodiment, the invention further provides a vehicle lamp adjusting device.
As shown in fig. 2, the vehicle lamp adjusting device according to the embodiment of the present invention may include: a first acquisition module 100, a second acquisition module 200, a third acquisition module 300, and an adjustment module 400.
The first acquisition module 100 is configured to acquire infrared image information of a road ahead of a target vehicle through an infrared night vision device when the vehicle travels under night conditions; the second obtaining module 200 is configured to perform image processing on the infrared image information to obtain a target detection image; the third obtaining module 300 is configured to obtain, through the target detection model, a road surface condition of a road in front of the target vehicle according to the target detection image; the adjusting module 400 is used for adjusting the headlights of the target vehicle according to the road surface condition of the road in front of the target vehicle.
According to an embodiment of the present invention, the second obtaining module 200 is specifically configured to: carrying out threshold processing on the infrared image information to obtain a first detection image; performing edge detection on the first detection image to acquire the target detection image having a contour.
According to an embodiment of the invention, the third obtaining module 300 is further configured to, before obtaining the road surface condition of the road ahead of the target vehicle from the target detection image by the target detection model: acquiring a training sample set through the infrared night vision device; receiving vehicle state information sent by a vehicle BCM; marking images corresponding to a time axis in the training sample set according to the vehicle state information to obtain a target training set; and training a target detection algorithm according to the target training set to obtain the target detection model.
According to one embodiment of the invention, the infrared night vision device employs CMOS light sensing elements with a resolution of 1280 x 720 and a signal-to-noise ratio greater than or equal to 48db.
It should be noted that, the vehicle lamp adjusting device according to the embodiment of the present invention may refer to the embodiment of the vehicle lamp adjusting method, and is not described herein again.
According to the car light adjusting device provided by the embodiment of the invention, when a car runs under night conditions, the first acquisition module acquires infrared image information of a road in front of a target vehicle through the infrared night vision device, the second acquisition module performs image processing on the infrared image information to acquire a target detection image, the third acquisition module acquires the road surface condition of the road in front of the target vehicle according to the target detection image through the target detection model, and the adjusting module correspondingly adjusts the headlamp of the target vehicle according to the road surface condition of the road in front of the target vehicle. Therefore, the infrared night vision device is adopted to obtain the road surface condition of the road in front of the target vehicle, and the vehicle lamp is adjusted according to the road surface condition, so that the cost and the development difficulty are greatly reduced, and the industrialization is easier.
Corresponding to the above embodiment, the present invention further provides a computer device.
The computer device of the embodiment of the invention comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, and when the processor executes the program, the vehicle lamp adjusting method of the embodiment is realized.
According to the computer equipment provided by the embodiment of the invention, the infrared night vision equipment is adopted to obtain the road surface condition of the road in front of the target vehicle, and the vehicle lamp is adjusted according to the road surface condition, so that the cost and the development difficulty are greatly reduced, and the industrialization is easier.
In response to the above embodiments, the present invention also provides a non-transitory computer-readable storage medium.
A non-transitory computer-readable storage medium of an embodiment of the present invention stores thereon a computer program that, when executed by a processor, implements the above-described vehicle light adjustment method.
According to the non-transitory computer-readable storage medium provided by the embodiment of the invention, the road surface condition of the road in front of the target vehicle is obtained by adopting the infrared night vision device, and the vehicle lamp adjustment is carried out according to the road surface condition, so that the cost and the development difficulty are greatly reduced, and the industrialization is easier.
In the description of the present invention, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. The meaning of "plurality" is two or more unless explicitly defined otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; they may be directly connected or indirectly connected through intervening media, or may be connected through the use of two elements or the interaction of two elements. The specific meanings of the above terms in the present invention can be understood according to specific situations by those of ordinary skill in the art.
In the present invention, unless expressly stated or limited otherwise, the first feature "on" or "under" the second feature may be directly contacting the second feature or the first and second features may be indirectly contacting each other through intervening media. Also, a first feature "on," "over," and "above" a second feature may be directly or diagonally above the second feature, or may simply indicate that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature may be directly under or obliquely under the first feature, or may simply mean that the first feature is at a lesser elevation than the second feature.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, such as an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Further, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried out in the method of implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and the program, when executed, includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.
Claims (7)
1. A vehicle lamp adjusting method is characterized by comprising the following steps:
when the vehicle runs under night conditions, acquiring infrared image information of a road in front of a target vehicle through an infrared night vision device;
performing image processing on the infrared image information to acquire a target detection image;
acquiring the road surface condition of a road in front of the target vehicle according to the target detection image through a target detection model;
and correspondingly adjusting the headlamp of the target vehicle according to the road surface condition of the road in front of the target vehicle.
2. The vehicle light adjustment method according to claim 1, wherein the image processing the infrared image information to obtain a target detection image comprises:
performing threshold processing on the infrared image information to acquire a first detection image;
performing edge detection on the first detection image to acquire the target detection image having a contour.
3. The vehicle light adjustment method according to claim 2, before acquiring a road surface condition of a road ahead of the target vehicle from the target detection image by the target detection model, further comprising:
acquiring a training sample set through the infrared night vision device;
receiving vehicle state information sent by a vehicle BCM;
marking images corresponding to a time axis in the training sample set according to the vehicle state information to obtain a target training set;
and training a target detection algorithm according to the target training set to obtain the target detection model.
4. The method of adjusting a vehicular lamp according to claim 1, wherein the infrared night vision device employs a CMOS light sensing element with a resolution of 1280 x 720 and a signal-to-noise ratio of greater than or equal to 48db.
5. A vehicle lamp adjusting device, comprising:
the first acquisition module is used for acquiring infrared image information of a road in front of a target vehicle through infrared night vision equipment when the vehicle runs under night conditions;
the second acquisition module is used for carrying out image processing on the infrared image information to acquire a target detection image;
the third acquisition module is used for acquiring the road surface condition of a road in front of the target vehicle according to the target detection image through a target detection model;
and the adjusting module is used for correspondingly adjusting the headlamp of the target vehicle according to the road surface condition of the road in front of the target vehicle.
6. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor, when executing the computer program, implements a vehicle light adjustment method according to any one of claims 1-4.
7. A non-transitory computer-readable storage medium having stored thereon a computer program, characterized in that the program, when executed by a processor, implements a vehicle light adjustment method according to any one of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110921803.0A CN115891816A (en) | 2021-08-12 | 2021-08-12 | Vehicle lamp adjusting method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110921803.0A CN115891816A (en) | 2021-08-12 | 2021-08-12 | Vehicle lamp adjusting method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115891816A true CN115891816A (en) | 2023-04-04 |
Family
ID=86496040
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110921803.0A Pending CN115891816A (en) | 2021-08-12 | 2021-08-12 | Vehicle lamp adjusting method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115891816A (en) |
-
2021
- 2021-08-12 CN CN202110921803.0A patent/CN115891816A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7210589B2 (en) | Multiple operating modes for extended dynamic range | |
CN108737992B (en) | Camera-assisted diagnosis of vehicle lights via inter-vehicle communication | |
US9505338B2 (en) | Vehicle driving environment recognition apparatus | |
US7881839B2 (en) | Image acquisition and processing systems for vehicle equipment control | |
JP4730267B2 (en) | Visibility state determination device for vehicle | |
EP2537709B1 (en) | Image processing apparatus and light distribution control method | |
US20100141476A1 (en) | Driver assistance system for traffic sign recognition | |
KR101738995B1 (en) | Imaging system and method with ego motion detection | |
JP4980970B2 (en) | Image pickup means adjustment device and object detection device | |
DE102019122254A1 (en) | CONTROL OF VEHICLE FRONT HEADLIGHTS BASED ON WEATHER CONDITIONS | |
CN114684004A (en) | Vehicle and headlamp adjusting device and method thereof | |
CN115891816A (en) | Vehicle lamp adjusting method and device | |
CN111216636A (en) | Travel control device, control method, and storage medium storing program | |
US20210182621A1 (en) | Vehicle control apparatus and operating method thereof | |
CN114245536A (en) | Control method and control device for controlling exterior lighting lamp of own vehicle | |
CN112926476B (en) | Vehicle identification method, device and storage medium | |
CN114248684A (en) | Active headlamp tracking for vehicle automatic high beam assist | |
JP6853890B2 (en) | Object detection system | |
CN113619577A (en) | Driving assistance system and driving assistance method | |
US11722761B2 (en) | Dashboard camera device | |
JP7378673B2 (en) | Headlight control device, headlight control system, and headlight control method | |
JP2014133425A (en) | Raindrop detection device | |
CN116039631A (en) | Driving control method and device for vehicle, vehicle and storage medium | |
CN115556664A (en) | Intelligent headlamp redundancy method and system for improving driving safety | |
KR20150057130A (en) | Apparatus for controlling angle of lamp beam for vehicle and Controlling Method of thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |