A vehicle high beam and low beam switching control method and device, a terminal device, and a storage medium
By obtaining the voting queue and delay control of the vehicle's high and low beam lights, the problem of low light switching accuracy is solved, and accurate switching is achieved under changing environmental conditions.
Patent Information
- Application Number
- CN202411810585.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-10
- Publication Date
- 2025-10-21
- Estimated Expiration
- 2044-12-10
AI Technical Summary
Existing headlight technology has the problem of low accuracy in switching between high and low beams and is easily affected by changes in ambient light intensity.
By obtaining the vehicle's current headlight status and the voting queue for high and low beams, and based on the total number of votes in the voting queue and the vote ratio threshold, it is determined whether to directly switch or execute the light switching decision, and the light switching is controlled in combination with the delay time.
The accuracy of headlight switching is improved, and incorrect switching caused by sudden changes in the external environment is avoided.
Smart Images

Figure CN119459508B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle body control technology, and in particular to a vehicle high and low beam switching control method, device, terminal equipment and storage medium. Background Art
[0002] Existing headlight technology can use driver-assistance cameras to detect real-time road conditions (lux, target vehicles, streetlights, and other light source information) ahead. When the lux condition is met, the system automatically switches from low beam to high beam. When a target vehicle is in front of the vehicle or the lux threshold is high, the system suppresses the automatic high beam switch or switches the high beam to low beam, a technique known as Intelligent High and Low Beam (IHBC). However, lux is easily affected by environmental factors, resulting in late switching or unexpected lighting. Consequently, existing headlight technology suffers from low switching accuracy.
[0003] Therefore, there is an urgent need for a vehicle high and low beam switching control strategy to solve the problem of low switching accuracy in existing vehicle lighting technology. Summary of the Invention
[0004] Embodiments of the present invention provide a method, apparatus, terminal device, and storage medium for controlling switching between high and low beam headlights of a vehicle, so as to solve the problem of low switching accuracy in existing vehicle headlight technology.
[0005] In order to solve the above problem, an embodiment of the present invention provides a method for controlling the switching between high and low beam lights of a vehicle, comprising:
[0006] Obtain the current vehicle light status and the high and low beam voting queues; wherein the vehicle light status includes: high beam and low beam; the voting queue includes: the number of votes for the high beam and the number of votes for the low beam;
[0007] Determining the total number of votes in the voting queue;
[0008] If the total number of votes in the voting queue is less than the preset total vote threshold, the headlight state with the largest number of votes will be used as the target headlight state, and the current headlight state of the vehicle will be directly switched to the target headlight state;
[0009] If the total number of votes in the voting queue is equal to the preset total vote threshold, the light switching decision operation is performed based on the current light status.
[0010] As an improvement to the above solution, the light switching decision operation based on the current vehicle light state includes:
[0011] Determine the current status of the vehicle lights, the number of votes for the high beam, and the number of votes for the low beam;
[0012] If the number of votes for high beam is greater than or equal to the vote ratio threshold, the light state will be switched; if the current light state is low beam, the light state will be switched to high beam; if the current light state is high beam, the light state will be switched to low beam;
[0013] If the number of votes for high beam is less than the vote ratio threshold, the current light status will be maintained.
[0014] As an improvement to the above solution, before switching the light state, the following steps are further included:
[0015] Determine the delay time based on the current light switching result;
[0016] Determining a voting time based on the number of votes in the voting queue;
[0017] The light switching time is calculated based on the delay time and the voting time, so that the vehicle light state is switched after the light switching time.
[0018] As an improvement to the above solution, the delay time is determined based on the current light switching result, including:
[0019] Judge the light switching result;
[0020] If the switching result is high beam, the delay time is the high beam switching delay time;
[0021] If the switching result is low beam, the delay time is the low beam switching delay time.
[0022] As an improvement to the above solution, the acquisition of the voting queue includes:
[0023] Get the current front brightness data of the vehicle;
[0024] Analyze the front brightness data to obtain a vehicle light voting result; wherein the light voting result includes: one of: adding one vote for high beam or adding one vote for low beam;
[0025] Fill the light voting result into the last position of the voting queue; wherein, each light voting result is sorted based on the time sequence in which the light voting result is filled into the voting queue;
[0026] Determine the total number of votes in the current voting queue;
[0027] If the total number of votes in the voting queue is equal to the preset total vote threshold, the voting result of the light at the first position in the voting queue will be deleted from the voting queue;
[0028] If the total number of votes in the voting queue is less than the preset total vote threshold, no action will be taken.
[0029] As an improvement to the above solution, the vehicle front brightness data includes: full-image illuminance and local illuminance; the vehicle front brightness data is analyzed to obtain the vehicle lighting voting result, including:
[0030] Judging the front brightness data of the vehicle;
[0031] If the full-image illuminance is greater than or equal to the first full-image illuminance threshold, and the local illuminance is greater than or equal to the first local illuminance threshold, then the vehicle's current light voting result is low beam plus one vote;
[0032] If the full-image illuminance is less than the second full-image illuminance threshold, or the local illuminance is less than the second local illuminance threshold, the vehicle's current light voting result is high beam plus one vote; wherein, the full-image illuminance first threshold is greater than the full-image illuminance second threshold, and the local illuminance first threshold is greater than the local illuminance second threshold.
[0033] As an improvement to the above solution, the analyzing of the vehicle front brightness data to obtain the vehicle lighting voting result further includes:
[0034] Obtain the vehicle's front image, vehicle status, headlight attributes, steering wheel angle, and driving speed;
[0035] If the result of the front image recognition includes the vehicle lights, the current vehicle light voting result is low beam plus one vote;
[0036] If the vehicle is in motion and the headlights are on, the current vehicle light voting result is low beam plus one vote;
[0037] If the driving speed is less than the first speed threshold, the vehicle's current light voting result is low beam plus one vote;
[0038] If the driving speed is greater than the first speed threshold, the vehicle's current light voting result is high beam plus one vote;
[0039] If the steering wheel angle is greater than the angle threshold, or the driving speed is greater than or equal to the first speed threshold and less than or equal to the second speed threshold, no voting is performed.
[0040] Accordingly, an embodiment of the present invention further provides a vehicle high and low beam switching control device, comprising: a data acquisition module, a data judgment module, a first vehicle light switching module, and a second vehicle light switching module;
[0041] The data acquisition module is used to obtain the current vehicle light status and the voting queue of the high and low beam lights; wherein the vehicle light status includes: high beam lights and low beam lights; the voting queue includes: the number of votes for the high beam lights and the number of votes for the low beam lights;
[0042] The data judgment module is used to judge the total number of votes in the voting queue;
[0043] The first headlight switching module is configured to use the headlight state with the largest number of votes as the target headlight state and directly switch the current headlight state of the vehicle to the target headlight state if the total number of votes in the voting queue is less than a preset total vote threshold;
[0044] The second headlight switching module is configured to execute a light switching operation based on the current headlight state if the total number of votes in the voting queue is equal to a preset total vote threshold.
[0045] Correspondingly, an embodiment of the present invention also provides a computer terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements a vehicle high and low beam switching control method as described in the present invention.
[0046] Correspondingly, an embodiment of the present invention also provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute a vehicle high and low beam switching control method as described in the present invention.
[0047] As can be seen from the above, the present invention has the following beneficial effects:
[0048] The present invention provides a method for controlling vehicle high and low beam switching, which obtains the vehicle's current headlight state and a voting queue for high and low beams. The method comprises obtaining the vehicle's current headlight state and a voting queue for high and low beams. The headlight state includes high beams and low beams. The voting queue includes a number of votes for high beams and a number of votes for low beams. The method determines the total number of votes in the voting queue. If the total number of votes in the voting queue is less than a preset total vote threshold, the headlight state with the largest current vote count is used as the target headlight state, and the vehicle's current headlight state is directly switched to the target headlight state. If the total number of votes in the voting queue is equal to the preset total vote threshold, a light switching decision operation is performed based on the current headlight state. The method controls the high and low beams based on the headlight state and the preset voting queue for high and low beams. Based on different total votes, the method selects direct headlight switching or a light switching decision. The method considers the influence of external factors on the headlight switching and performs switching based on the number of votes. This method can avoid the problem of incorrect headlight switching due to sudden changes in the external environment, thereby improving the accuracy of the headlight switching. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 1 is a flow chart of a method for controlling switching between high and low beam lights of a vehicle provided by an embodiment of the present invention;
[0050] Figure 2This is a schematic structural diagram of a vehicle high and low beam switching control device provided by an embodiment of the present invention;
[0051] Figure 3 This is a schematic diagram of the structure of a terminal device provided by one embodiment of the present invention;
[0052] Figure 4 1 is a schematic diagram of the location for obtaining local illumination data provided by one embodiment of the present invention;
[0053] Figure 5 It is a flow chart of a vehicle high and low beam switching control method provided by another embodiment of the present invention. DETAILED DESCRIPTION
[0054] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0055] Example 1
[0056] See also Figure 1 , Figure 1 FIG. 1 is a flow chart of a method for controlling switching between high and low beam lights of a vehicle provided by an embodiment of the present invention. Figure 1 As shown, this embodiment includes steps 101 to 104, and each step is specifically as follows:
[0057] Step 101: Obtain the current vehicle light status and the voting queue for high and low beam lights; wherein the vehicle light status includes high beam lights and low beam lights; the voting queue includes the number of votes for high beam lights and the number of votes for low beam lights.
[0058] In a specific embodiment, the length of the voting queue may be 60 votes (ie, the total vote threshold of the present invention).
[0059] In this embodiment, obtaining the voting queue includes:
[0060] Get the current front brightness data of the vehicle;
[0061] Analyze the front brightness data to obtain a vehicle light voting result; wherein the light voting result includes: one of: adding one vote for high beam or adding one vote for low beam;
[0062] Fill the light voting result into the last position of the voting queue; wherein, each light voting result is sorted based on the time sequence in which the light voting result is filled into the voting queue;
[0063] Determine the total number of votes in the current voting queue;
[0064] If the total number of votes in the voting queue is equal to the preset total vote threshold, the voting result of the light at the first position in the voting queue will be deleted from the voting queue;
[0065] If the total number of votes in the voting queue is less than the preset total vote threshold, no action will be taken.
[0066] In this embodiment, the vehicle front brightness data includes: full-image illuminance and local illuminance; the vehicle front brightness data is analyzed to obtain the vehicle lighting voting result, including:
[0067] Judging the front brightness data of the vehicle;
[0068] If the full-image illuminance is greater than or equal to the first full-image illuminance threshold, and the local illuminance is greater than or equal to the first local illuminance threshold, then the vehicle's current light voting result is low beam plus one vote;
[0069] If the full-image illuminance is less than the second full-image illuminance threshold, or the local illuminance is less than the second local illuminance threshold, the vehicle's current light voting result is high beam plus one vote; wherein, the full-image illuminance first threshold is greater than the full-image illuminance second threshold, and the local illuminance first threshold is greater than the local illuminance second threshold.
[0070] In a specific embodiment, for better explanation, see Figure 4 The full-image illumination is the illumination calculated based on the full image, and the local illumination is the illumination calculated based on the ROI area in the middle of the upper half of the image (width 21 / 33, height 1 / 2). Local illumination is mainly used in some special scenes, such as street light scenes at night, where the illumination in the center of the image is high, but the edge of the image is very dark, resulting in low overall illumination.
[0071] In a specific embodiment, the first threshold of full-image illumination may be 10 lux, the second threshold of full-image illumination may be 4 lux, the first threshold of local illumination may be 3.5 lux, and the second threshold of local illumination may be 0.8 lux. The four thresholds may be adaptively modified based on the user.
[0072] It should be noted that if the current scene's global illuminance is greater than or equal to 10 lux and the local illuminance is greater than or equal to 3.5 lux, then starting from this frame, before the next global illuminance is less than 4 lux or the local illuminance is less than 0.8 lux, the vote is to switch from high beam to low beam.
[0073] If the full - scene illuminance of the current scene is less than 4 lux or the local illuminance is less than 0.8 lux, then starting from this frame, before the full - scene illuminance is greater than or equal to 10 lux and the local illuminance is greater than or equal to 3.5 lux in the following, vote to switch from the high beam to the low beam.
[0074] In this embodiment, analyzing the brightness data in front of the vehicle to obtain the vehicle's lighting vote result further includes:
[0075] Obtain the vehicle's front - view image, vehicle status, headlight attributes, steering wheel angle, and driving speed;
[0076] If the result of the front - view image recognition includes vehicle lights, then the current lighting vote result of the vehicle is to add one vote for the low beam;
[0077] If the vehicle status is moving and the headlight attributes are in the on state, then the current lighting vote result of the vehicle is to add one vote for the low beam;
[0078] If the driving speed is less than the first speed threshold, then the current lighting vote result of the vehicle is to add one vote for the low beam;
[0079] If the driving speed is greater than the first speed threshold, then the current lighting vote result of the vehicle is to add one vote for the high beam;
[0080] If the steering wheel angle is greater than the angle threshold, or the driving speed is greater than or equal to the first speed threshold and less than or equal to the second speed threshold, then no vote is cast.
[0081] It should be noted that:
[0082] 1) Scene light source: If there are vehicle lights in the front - view image, then vote to switch to the low beam in this frame;
[0083] 2) Vehicle post - processing motion attributes and headlight attributes: For a vehicle in a moving state and the post - processing vehicle information with headlight attributes not all off (off state), then vote to switch to the low beam in this frame;
[0084] 3) Self - vehicle steering wheel angle: If the self - vehicle steering wheel angle in this frame is greater than 50 degrees (i.e., the angle threshold described in this invention), then keep the light state output of the previous frame and do not switch;
[0085] 4) Self - vehicle speed: If the self - vehicle speed V < V1 (i.e., the first speed threshold described in this invention), then vote to switch to the high beam in this frame. If the self - vehicle speed V > V2 (i.e., the second speed threshold described in this invention), vote to switch to the low beam in this frame. When V1 ≤ V ≤ V2, keep the light state output of the previous frame and do not switch;
[0086] Step 102: Judge the total number of votes in the voting queue.
[0087] Step 103: If the total number of votes in the voting queue is less than the preset total vote threshold, the headlight state with the largest number of votes is used as the target headlight state, and the current headlight state of the vehicle is directly switched to the target headlight state.
[0088] Step 104: If the total number of votes in the voting queue is equal to the preset total vote threshold, a light switching decision operation is performed based on the current state of the vehicle lights.
[0089] In this embodiment, the light switching decision operation based on the current vehicle light state includes:
[0090] Determine the current status of the vehicle lights, the number of votes for the high beam, and the number of votes for the low beam;
[0091] If the number of votes for high beam is greater than or equal to the vote ratio threshold, the light state will be switched; if the current light state is low beam, the light state will be switched to high beam; if the current light state is high beam, the light state will be switched to low beam;
[0092] If the number of votes for high beam is less than the vote ratio threshold, the current light status will be maintained.
[0093] In this embodiment, before switching the vehicle light state, the following steps are further included:
[0094] Determine the delay time based on the current light switching result;
[0095] Determining a voting time based on the number of votes in the voting queue;
[0096] The light switching time is calculated based on the delay time and the voting time, so that the vehicle light state is switched after the light switching time.
[0097] In a specific embodiment, light switching time = voting time + delay time;
[0098] The longest time taken is:
[0099] The longest light switching time = the longest voting time (60*0.8=48 frames) + delay time;
[0100] The shortest time is:
[0101] The shortest light switching time = shortest voting time (quick voting 10 frames) + delay time.
[0102] In a specific embodiment, after processing each frame of data, the vote for that frame is added to the end of the voting queue. If the queue is full, the first result is deleted to ensure that the queue always stores the most recent voting results. In the actual processing of each frame, predetermined logical judgments, such as the lux value, the current scene light source status, and the vehicle's speed, are used to determine whether the vote for high beam or low beam in this frame is high or low, and the number of votes is determined. When the high and low beam flag is finally output, the contents of the currently maintained voting queue are judged to determine whether the vehicle is finally using high beam or low beam. The details are as follows:
[0103] 1) If the voting queue is not full, the high beam / low beam status with the larger number of votes will be output;
[0104] 2) When the voting queue is full (i.e. the total number of votes in the voting queue is equal to the preset total vote threshold):
[0105] a) If the previous output state is low beam, the condition for switching to high beam is that the number of votes for high beam in the queue accounts for more than 80% of the queue length (i.e., the vote proportion threshold of the present invention), then the high beam is switched to high beam; otherwise, the low beam is maintained;
[0106] b) If the previous output state is high beam, the condition for switching to low beam is that the number of votes for low beam in the queue accounts for more than 80% of the queue length, then switch to low beam; otherwise, maintain high beam.
[0107] In this embodiment, determining the delay time based on the current light switching result includes:
[0108] Judge the light switching result;
[0109] If the switching result is high beam, the delay time is the high beam switching delay time;
[0110] If the switching result is low beam, the delay time is the low beam switching delay time.
[0111] In a specific embodiment, the delay time for switching to high beam may be 2000ms, and the delay time for switching to low beam may be 300ms.
[0112] It should be noted that if the request for the corresponding switching state needs to be maintained during the delay period, the light will be switched after the delay; otherwise, the delay will be recalculated according to the new request state.
[0113] It is understandable that the present invention has the following switching logic:
[0114] 1) Fast light-on (typical scenario: overtaking): When there are no moving vehicles or headlights in the field of view, and the lux value meets the light-on conditions, if this situation lasts for more than 6 consecutive frames, starting from the 7th frame, each vote counts at most 1 / 4 of the total queue length. The voting logic for switching from low beam to high beam can be completed in as fast as 10 frames.
[0115] 2) Fast Light Switching (typical scenario: being overtaken): When a vehicle target is very close to the vehicle (within 12 meters) in the field of view, and the vehicle target has both motion and light source (or headlight) attributes, if this situation persists for more than six consecutive frames, starting from the seventh frame, each vote will be voted for at most 1 / 4 of the total queue length, and the voting logic for switching from high beam to low beam can be completed in as fast as 10 frames.
[0116] 3) Continuous Cumulative Voting to Turn Off Lights (Typical Scenario: Oncoming Vehicle): In scenarios where a distant light source in the field of view causes the vehicle to switch from high beam to low beam, the number of votes per frame increases as the post-processing continuously detects the light source. For frames 0-9, one vote is cast per frame; for frames 10-19, three votes are cast per frame; and for frames 20-29, five votes are cast per frame. In this scenario, only 20+ consecutive frames are needed to complete the voting operation.
[0117] For a better explanation, see Figure 5 , which is a flow chart of a vehicle high and low beam switching control method provided by another embodiment.
[0118] It should be noted that the current default parameters are sufficient to pass standard regulatory testing. Reducing the queue length will reduce the robustness of the entire automatic high and low beam system. If modification is necessary, it is recommended to adjust the delay time.
[0119] At the same time, the current low-cost cameras can detect light switching at a distance of approximately 400 to 500 meters in the test field. This means that the model can detect target lights at a distance of approximately 600 meters in the real scene. At further distances, there may be missed detections.
[0120] See also Figure 2 , Figure 2 1 is a schematic structural diagram of a vehicle high and low beam switching control device provided by an embodiment of the present invention, comprising: a data acquisition module 201, a data judgment module 202, a first headlight switching module 203 and a second headlight switching module 204;
[0121] The data acquisition module is used to obtain the current vehicle light status and the voting queue of the high and low beam lights; wherein the vehicle light status includes: high beam lights and low beam lights; the voting queue includes: the number of votes for the high beam lights and the number of votes for the low beam lights;
[0122] The data judgment module is used to judge the total number of votes in the voting queue;
[0123] The first headlight switching module is configured to use the headlight state with the largest number of votes as the target headlight state and directly switch the current headlight state of the vehicle to the target headlight state if the total number of votes in the voting queue is less than a preset total vote threshold;
[0124] The second headlight switching module is configured to execute a light switching operation based on the current headlight state if the total number of votes in the voting queue is equal to a preset total vote threshold.
[0125] It can be understood that the above-mentioned system embodiment corresponds to the method embodiment of the present invention, which can implement the vehicle high and low beam switching control method provided by any one of the above-mentioned method embodiments of the present invention.
[0126] This embodiment obtains the current vehicle light state and a voting queue for high and low beam lights; wherein the light state includes: high beam lights and low beam lights; the voting queue includes: the number of votes for high beam lights and the number of votes for low beam lights; the total number of votes in the voting queue is determined; if the total number of votes in the voting queue is less than a preset total vote threshold, the light state with the largest current vote count is used as the target light state, and the current vehicle light state is directly switched to the target light state; if the total number of votes in the voting queue is equal to the preset total vote threshold, a light switching decision operation is performed based on the current light state. The present invention controls the high and low beam lights based on the light state and the preset high and low beam light voting queues, and selects whether to directly switch the lights or make a light switching decision based on different total votes. While considering the influence of the external environment on the light switching, the light switching is performed based on the number of votes, thereby avoiding the problem of incorrect light switching due to sudden changes in the external environment, thereby improving the accuracy of the light switching.
[0127] Example 2
[0128] See also Figure 3 , Figure 3 It is a schematic diagram of the terminal device structure provided by one embodiment of the present invention.
[0129] A terminal device of this embodiment includes: a processor 301, a memory 302, and a computer program stored in the memory 302 and executable on the processor 301. When the processor 301 executes the computer program, the steps of the above-mentioned vehicle high and low beam switching control method in the embodiment are implemented, such as Figure 1 Alternatively, when the processor executes the computer program, the functions of the modules in the above-mentioned device embodiments are realized, for example: Figure 2 All modules of the vehicle's high and low beam switching control device are shown.
[0130] In addition, an embodiment of the present invention also provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the vehicle high and low beam switching control method as described in any of the above embodiments.
[0131] Those skilled in the art will understand that the schematic diagram is merely an example of a terminal device and does not constitute a limitation on the terminal device. The terminal device may include more or fewer components than shown in the diagram, or a combination of certain components, or different components. For example, the terminal device may also include input and output devices, network access devices, buses, etc.
[0132] The processor 301 may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor. The processor 301 is the control center of the terminal device, connecting various parts of the entire terminal device using various interfaces and lines.
[0133] The memory 302 can be used to store the computer programs and / or modules. The processor 301 implements various functions of the terminal device by running or executing the computer programs and / or modules stored in the memory and calling the data stored in the memory 302. The memory 302 can mainly include a program storage area and a data storage area. The program storage area can store an operating system and at least one application required for a function (such as a sound playback function, an image playback function, etc.); the data storage area can store data created based on the use of the mobile phone (such as audio data, a phone book, etc.). In addition, the memory can include a high-speed random access memory and can also include a non-volatile memory, such as a hard disk, internal memory, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, at least one disk storage device, a flash memory device, or other volatile solid-state storage device.
[0134] Wherein, if the module / unit integrated in the terminal device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the process in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor, it can implement the steps of the above-mentioned various method embodiments. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.
[0135] It should be noted that the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed across multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment. In addition, in the drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art can understand and implement the present invention without inventive effort.
[0136] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A vehicle high and low beam switching control method, characterized in that: include: Obtain the current vehicle light status and the high and low beam voting queues; wherein the vehicle light status includes: high beam and low beam; the voting queue includes: the number of votes for the high beam and the number of votes for the low beam; Determining the total number of votes in the voting queue; If the total number of votes in the voting queue is less than the preset total vote threshold, the headlight state with the largest number of votes will be used as the target headlight state, and the current headlight state of the vehicle will be directly switched to the target headlight state; If the total number of votes in the voting queue is equal to the preset total vote threshold, the light switching decision operation is performed based on the current light status; The acquisition of the voting queue includes: acquiring the current front brightness data of the vehicle; analyzing the front brightness data to obtain the vehicle's light voting result; wherein the light voting result includes: one of: adding one vote for high beam or adding one vote for low beam; filling the light voting result into the last position of the voting queue; wherein, based on the time sequence in which the light voting results are filled into the voting queue, sorting each light voting result; determining the total number of votes in the current voting queue; if the total number of votes in the voting queue is equal to a preset total vote threshold, deleting the light voting result at the first position in the voting queue from the voting queue; if the total number of votes in the voting queue is less than the preset total vote threshold, performing no operation; The vehicle front brightness data includes: full-image illuminance and local illuminance; the analysis of the vehicle front brightness data to obtain the vehicle light voting result includes: judging the vehicle front brightness data; if the full-image illuminance is greater than or equal to a first threshold of the full-image illuminance, and the local illuminance is greater than or equal to the first threshold of the local illuminance, then the vehicle's current light voting result is low beam plus one vote; if the full-image illuminance is less than a second threshold of the full-image illuminance, or the local illuminance is less than the second threshold of the local illuminance, then the vehicle's current light voting result is high beam plus one vote; wherein, the full-image illuminance first threshold is greater than the full-image illuminance second threshold, and the local illuminance first threshold is greater than the local illuminance second threshold.
2. The vehicle high and low beam switching control method according to claim 1, characterized in that: The light switching decision operation is performed based on the current vehicle light state, including: Determine the current status of the vehicle lights, the number of votes for the high beam, and the number of votes for the low beam; If the number of votes for high beam is greater than or equal to the vote ratio threshold, the light state will be switched; if the current light state is low beam, the light state will be switched to high beam; if the current light state is high beam, the light state will be switched to low beam; If the number of votes for high beam is less than the vote ratio threshold, the current light status will be maintained.
3. The vehicle high and low beam switching control method according to claim 2, characterized in that: Before switching the light status, it also includes: Determine the delay time based on the current light switching result; Determining a voting time based on the number of votes in the voting queue; The light switching time is calculated based on the delay time and the voting time, so that the vehicle light state is switched after the light switching time.
4. The vehicle high and low beam switching control method according to claim 3, characterized in that: The step of determining the delay time based on the current light switching result includes: Judge the light switching result; If the switching result is high beam, the delay time is the high beam switching delay time; If the switching result is low beam, the delay time is the low beam switching delay time.
5. The vehicle high and low beam switching control method according to claim 1, characterized in that: The analyzing the vehicle front brightness data to obtain the vehicle lighting voting result further includes: Obtain the vehicle's front image, vehicle status, headlight attributes, steering wheel angle, and driving speed; If the result of the front image recognition includes the vehicle lights, the current vehicle light voting result is low beam plus one vote; If the vehicle is in motion and the headlights are on, the current vehicle light voting result is low beam plus one vote; If the driving speed is less than the first speed threshold, the vehicle's current light voting result is low beam plus one vote; If the driving speed is greater than the first speed threshold, the vehicle's current light voting result is high beam plus one vote; If the steering wheel angle is greater than the angle threshold, or the driving speed is greater than or equal to the first speed threshold and less than or equal to the second speed threshold, no voting is performed.
6. A vehicle high and low beam switching control device, characterized in that: include: A data acquisition module, a data judgment module, a first headlight switching module and a second headlight switching module; The data acquisition module is used to obtain the current vehicle light status and the voting queue of the high and low beam lights; wherein the vehicle light status includes: high beam lights and low beam lights; the voting queue includes: the number of votes for the high beam lights and the number of votes for the low beam lights; The data judgment module is used to judge the total number of votes in the voting queue; The first headlight switching module is configured to use the headlight state with the largest number of votes as the target headlight state and directly switch the current headlight state of the vehicle to the target headlight state if the total number of votes in the voting queue is less than a preset total vote threshold; The second headlight switching module is configured to perform a headlight switching operation based on the current headlight state if the total number of votes in the voting queue is equal to a preset total vote threshold; The acquisition of the voting queue includes: acquiring the current front brightness data of the vehicle; analyzing the front brightness data to obtain the vehicle's light voting result; wherein the light voting result includes: one of: adding one vote for high beam or adding one vote for low beam; filling the light voting result into the last position of the voting queue; wherein, based on the time sequence in which the light voting results are filled into the voting queue, sorting each light voting result; determining the total number of votes in the current voting queue; if the total number of votes in the voting queue is equal to a preset total vote threshold, deleting the light voting result at the first position in the voting queue from the voting queue; if the total number of votes in the voting queue is less than the preset total vote threshold, performing no operation; The vehicle front brightness data includes: full-image illuminance and local illuminance; the analysis of the vehicle front brightness data to obtain the vehicle light voting result includes: judging the vehicle front brightness data; if the full-image illuminance is greater than or equal to a first threshold of the full-image illuminance, and the local illuminance is greater than or equal to the first threshold of the local illuminance, then the vehicle's current light voting result is low beam plus one vote; if the full-image illuminance is less than a second threshold of the full-image illuminance, or the local illuminance is less than the second threshold of the local illuminance, then the vehicle's current light voting result is high beam plus one vote; wherein, the full-image illuminance first threshold is greater than the full-image illuminance second threshold, and the local illuminance first threshold is greater than the local illuminance second threshold.
7. A computer terminal device, characterized in that: The invention comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, a vehicle high and low beam switching control method as described in any one of claims 1 to 5 is implemented.
8. A computer-readable storage medium, characterized in that The computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the vehicle high and low beam switching control method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Automotive far-reaching headlamp control device
CN101428584A
Intelligent control method and device for vehicle high beam, equipment and storage medium
CN115027349A