A light switching method, apparatus, device and medium
By setting headlight cooling control conditions based on target vehicle speed, vehicle longitudinal acceleration, and passive light source speed threshold, the problem of repeated switching between high and low beams caused by passive light sources at night is solved, improving driving safety and user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA FAW CO LTD
- Filing Date
- 2023-04-27
- Publication Date
- 2026-06-12
AI Technical Summary
Passive light sources at night cause repeated switching between high and low beams, leading to driving safety issues and a poor user experience.
By setting headlight cooling control conditions, the system determines whether to implement headlight cooling control based on the target vehicle speed, vehicle longitudinal acceleration threshold, and passive light source speed threshold, thus avoiding repeated switching under automatic control mode.
It effectively avoids the repeated switching between high and low beams caused by passive light sources at night, improving driving safety and user experience.
Smart Images

Figure CN116252706B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent vehicle technology, and in particular to a method, device, equipment and medium for switching lights. Background Technology
[0002] The intelligent high / low beam control function based on visual perception can automatically switch between high and low beams by recognizing ambient light levels and detecting road targets ahead at night (such as vehicle targets, vehicle taillights, and vehicle headlights), providing drivers with a smarter and more convenient driving experience.
[0003] However, visual perception is highly dependent on ambient light conditions, and nighttime scenarios suffer from limitations in visual perception performance due to limited lighting. This is especially true in driving scenarios where there are highly reflective passive light sources such as road signs ahead: for example, at night when there are no vehicles nearby, signs outside the coverage area of the low beams cannot be perceived when the vehicle's low beams are on. However, when the vehicle switches to high beams, the light source shines on the sign, creating a strong reflection, which in turn causes the vehicle to switch off the high beams. While the sign is still in sight, the transition between target detection and high / low beam switching is mutually causal, leading to frequent headlight switching, user complaints, and driving hazards. Summary of the Invention
[0004] This invention provides a method, apparatus, device, and medium for switching headlights to solve the problem of driving safety issues and poor user experience caused by repeated switching between high and low beams due to passive light sources at night.
[0005] According to one aspect of the present invention, a light switching method is provided, comprising:
[0006] Set the headlight cooling control conditions based on the target vehicle speed, the vehicle longitudinal acceleration threshold, and the passive light source speed threshold.
[0007] If the headlights of the current vehicle are in automatic control mode, and the current vehicle completes the target number of high and low beam switching operations within the switching judgment time, then the headlight cooling control will be performed on the current vehicle according to the headlight cooling control conditions and the current vehicle status.
[0008] According to another aspect of the present invention, a light switching device is provided, comprising:
[0009] The headlight cooling control condition determination module is used to set headlight cooling control conditions based on the target vehicle speed, vehicle longitudinal acceleration threshold, and passive light source speed threshold.
[0010] The headlight cooling control module is used to control the headlight cooling of the current vehicle if the headlights are in automatic control mode and the current vehicle completes the target number of high and low beam switching operations within the switching judgment time. This is based on the headlight cooling control conditions and the current vehicle status.
[0011] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0012] At least one processor; and
[0013] A memory communicatively connected to the at least one processor; wherein,
[0014] The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform the light switching method according to any embodiment of the present invention.
[0015] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the light switching method according to any embodiment of the present invention.
[0016] The technical solution of this invention sets headlight cooling control conditions based on the target vehicle speed, vehicle longitudinal acceleration threshold, and passive light source speed threshold. If the vehicle's headlights are in automatic control mode and the vehicle completes the target number of high / low beam switching operations within the switching judgment time, headlight cooling control is applied to the vehicle based on the headlight cooling control conditions and the vehicle's current state. In this solution, by determining that the vehicle has completed the target number of high / low beam switching operations within the switching judgment time, it is determined that the vehicle has detected a possible passive light source. Therefore, based on the headlight cooling control conditions and the vehicle's current state, the automatic headlight control mode is turned off, preventing repeated high / low beam switching of the headlights. This achieves headlight cooling control for the vehicle, solving the problem of unsafe driving and poor user experience caused by repeated high / low beam switching due to passive light sources at night. It avoids repeated high / low beam switching caused by passive light sources at night, improving driving safety and user experience.
[0017] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 This is a flowchart of a light switching method provided in Embodiment 1 of the present invention;
[0020] Figure 2 This is a flowchart of a light switching method provided in Embodiment 2 of the present invention;
[0021] Figure 3 This is a schematic diagram of an intelligent cooling control process for high and low beam headlights provided in Embodiment 2 of the present invention;
[0022] Figure 4 This is a schematic diagram of the structure of a light switching device provided in Embodiment 3 of the present invention;
[0023] Figure 5 A schematic diagram of an electronic device that can be used to implement embodiments of the present invention is shown. Detailed Implementation
[0024] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0025] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0026] Example 1
[0027] Figure 1This is a flowchart of a headlight switching method provided in Embodiment 1 of the present invention. This embodiment is applicable to situations where repeated switching between high and low beams of a vehicle is avoided. The method can be executed by a headlight switching device, which can be implemented in hardware and / or software and can be configured in an electronic device. Figure 1 As shown, the method includes:
[0028] S110. Set the lighting cooling control conditions based on the target vehicle speed, the vehicle longitudinal acceleration threshold, and the passive light source speed threshold.
[0029] The target vehicle speed can be a pre-set vehicle speed. The vehicle longitudinal acceleration threshold can be a pre-set lower limit for vehicle longitudinal acceleration. The passive light source speed threshold can be used to describe the upper limit of the motion speed of the passive light source detected by the vehicle.
[0030] Generally, different models of vehicles produced by the same manufacturer may have different target speeds. The longitudinal acceleration threshold for a vehicle can be 0 m / s². 2 The passive light source speed threshold can be, but is not limited to, 5 km / h. It is understood that the target vehicle speed, vehicle longitudinal acceleration threshold, and passive light source speed threshold can be set independently based on specific vehicle configuration parameters and actual driving conditions.
[0031] In this embodiment of the invention, a target vehicle speed, a vehicle longitudinal acceleration threshold, and a passive light source speed threshold can be set according to the current vehicle configuration parameters and driving conditions. This ensures that the current vehicle speed is not less than the target vehicle speed, the current vehicle bus acceleration is not less than the vehicle longitudinal acceleration threshold, and the passive light source speed detected by the current vehicle is not greater than the passive light source speed threshold, which are used as lighting cooling control conditions.
[0032] S120. If the headlights of the current vehicle are in automatic control mode, and the current vehicle completes the high and low beam switching operation for the target number of rounds within the switching judgment time, then the headlight cooling control is performed on the current vehicle according to the headlight cooling control conditions and the current vehicle status.
[0033] The switching judgment time can be a pre-set time for the vehicle to complete a target number of high / low beam switching operations. The target number of rounds can be a pre-set number of rounds. For example, the target number of rounds can include, but is not limited to, 2 rounds. The high / low beam switching operation can be an operation of switching between different light types. For example, switching from low beam to high beam and then back to low beam is one round of switching, and switching from high beam to low beam and then back to high beam can also be understood as one round of switching. The current vehicle status can be used to describe the current driving condition of the vehicle. Optionally, the current vehicle status can include, but is not limited to, the current vehicle speed, the current vehicle longitudinal acceleration, and the speed of the passive light source detected by the current vehicle. The light cooling control can be to no longer control the high / low beam of the vehicle through the automatic control gear of the interior lights.
[0034] In this embodiment of the invention, if the headlight activation type of the current vehicle is controlled by the automatic control mode, the operation time for the current vehicle to complete the high / low beam switching operation for the target number of rounds is compared with the switching judgment time. If the current vehicle completes the high / low beam switching operation for the target number of rounds within the switching judgment time, it can be determined that the current vehicle has recognized a passive light source. Then, based on the headlight cooling control conditions and the current vehicle status, the duration for turning off the automatic headlight control mode is determined. During the time when the automatic headlight control mode is turned off, the user is prompted to manually control the headlights to achieve headlight cooling control of the current vehicle.
[0035] The technical solution of this invention sets headlight cooling control conditions based on the target vehicle speed, vehicle longitudinal acceleration threshold, and passive light source speed threshold. If the vehicle's headlights are in automatic control mode and the vehicle completes the target number of high / low beam switching operations within the switching judgment time, headlight cooling control is applied to the vehicle based on the headlight cooling control conditions and the vehicle's current state. In this solution, by determining that the vehicle has completed the target number of high / low beam switching operations within the switching judgment time, it is determined that the vehicle has detected a possible passive light source. Therefore, based on the headlight cooling control conditions and the vehicle's current state, the automatic headlight control mode is turned off, preventing repeated high / low beam switching of the headlights. This achieves headlight cooling control for the vehicle, solving the problem of unsafe driving and poor user experience caused by repeated high / low beam switching due to passive light sources at night. It avoids repeated high / low beam switching caused by passive light sources at night, improving driving safety and user experience.
[0036] Example 2
[0037] Figure 2This is a flowchart of a headlight switching method provided in Embodiment 2 of the present invention. This embodiment is based on the above embodiment and is further specified, providing specific optional implementation methods for controlling the vehicle headlights after the headlight cooling control of the current vehicle has ended. Figure 2 As shown, the method includes:
[0038] S210. Set the lighting cooling control conditions based on the target vehicle speed, the vehicle longitudinal acceleration threshold, and the passive light source speed threshold.
[0039] S220. If the headlights of the current vehicle are in automatic control mode, and the current vehicle completes the high and low beam switching operation for the target number of rounds within the switching judgment time, then the headlight cooling control is performed on the current vehicle according to the headlight cooling control conditions and the current vehicle status.
[0040] In an optional embodiment of the present invention, performing headlight cooling control on the current vehicle based on headlight cooling control conditions and the current vehicle state may include: when it is determined that the current vehicle state meets the headlight cooling control conditions, performing headlight cooling control on the current vehicle for a first cooling duration; when it is determined that the current vehicle state does not meet the headlight cooling control conditions, performing headlight cooling control on the current vehicle for a second cooling duration.
[0041] The first cooling time is set when the current vehicle condition meets the headlight cooling control conditions, and the headlights are not controlled via the automatic headlight control mode. The second cooling time is set when the current vehicle condition does not meet the headlight cooling control conditions, and the headlights are not controlled via the automatic headlight control mode.
[0042] In this embodiment of the invention, the current vehicle speed, the current vehicle's longitudinal acceleration, and the speed of the passive light source detected by the current vehicle can be determined based on the current vehicle state. If the current vehicle speed is greater than or equal to the target vehicle speed, the current vehicle's longitudinal acceleration is greater than or equal to a vehicle longitudinal acceleration threshold, and the speed of the passive light source detected by the current vehicle is less than or equal to a passive light source speed threshold, then the current vehicle state is determined to meet the headlight cooling control conditions, and therefore the vehicle headlights are not controlled via automatic control during the first cooling period. If any of the aforementioned headlight cooling control conditions are not met, the current vehicle state is determined not to meet the headlight cooling control conditions, and therefore the vehicle headlights are not controlled via automatic control during the second cooling period.
[0043] In an optional embodiment of the present invention, controlling the headlight cooling of the current vehicle according to a first cooling duration may include: during the first cooling duration, not generating a control command for the high / low beams of the current vehicle, and generating a manual headlight control voice signal; controlling the headlight cooling of the current vehicle according to a second cooling duration may include: during the second cooling duration, not generating a control command for the high / low beams of the current vehicle, and generating a manual headlight control voice signal.
[0044] The manual headlight control voice signal can be a pre-recorded signal prompting the user to manually control the headlights. For example, the manual headlight control voice signal may include, but is not limited to, playing "Ambient interference exists; please manually control the headlights according to the actual situation" through a speaker, and / or displaying the text "Ambient interference exists; please manually control the headlights according to the actual situation" through the vehicle's display screen.
[0045] In this embodiment of the invention, if the current vehicle state meets the headlight cooling control conditions, then during the first cooling period, no control command for the current vehicle's high / low beam headlights is generated to avoid controlling the vehicle's headlights through automatic control. Instead, a manual headlight control voice signal is generated to prompt the user to perform manual headlight control. If the current vehicle state does not meet the headlight cooling control conditions, then during the second cooling period, no control command for the current vehicle's high / low beam headlights is generated to avoid controlling the vehicle's headlights through automatic control. Instead, a manual headlight control voice signal is generated to prompt the user to perform manual headlight control.
[0046] In an optional embodiment of the present invention, the switching determination time may include: determining it based on the following formula: Among them, T A This indicates the switching judgment time, where 'a' represents the first time parameter, and 'D' represents the switching judgment time. A Δv represents the distance between the vehicle and the target passive light source when the vehicle first switches between high and low beams, and Δv represents the relative speed between the vehicle and the target passive light source when the vehicle detects the target passive light source.
[0047] The first time parameter can be a coefficient determined based on the historical driving data of the vehicle's two-wheel high / low beam switching operation. The target passive light source can be a passive light source detected when the vehicle performs its first high / low beam switching operation.
[0048] In an optional embodiment of the present invention, the first cooling duration may include being determined based on the following formula: Among them, T B 'b' represents the first cooling time, 'b' represents the second time parameter, and 'D' represents the second cooling time parameter. BΔv represents the distance between the current vehicle and the target passive light source when the vehicle performs the high / low beam switching operation on the target wheel, and Δv represents the relative speed between the current vehicle and the target passive light source when the vehicle detects the target passive light source.
[0049] The target wheel can be the last wheel in the target wheel count. For example, if the target wheel count is 2, then the target wheel is the second wheel. The second time parameter can be a coefficient set according to the headlight cooling control requirements when the current vehicle state meets the headlight cooling control conditions. For example, the second time parameter can be, but is not limited to, 110%.
[0050] In an optional embodiment of the present invention, the second cooling duration includes: determined based on the following formula: Among them, T C c represents the second cooling time, and D represents the third time parameter. B Δv represents the distance between the current vehicle and the target passive light source when the vehicle performs the high / low beam switching operation on the target wheel, and Δv represents the relative speed between the current vehicle and the target passive light source when the vehicle detects the target passive light source.
[0051] The third time parameter can be a coefficient set according to the lighting cooling control requirements when the current vehicle state does not meet the lighting cooling control conditions. The third time parameter can be, but is not limited to, 90%.
[0052] S230. When the cooling time is reached to match the current vehicle lighting cooling control, and the lighting mode is in automatic control mode, the current vehicle lighting is controlled according to the automatic control mode.
[0053] In this embodiment of the invention, if the current vehicle headlight cooling control time reaches the corresponding cooling time, and the user does not perform manual control within the cooling time, i.e. the headlight mode is in automatic control mode, then the automatic control mode is further restored to control the headlights of the current vehicle.
[0054] Optionally, if the current vehicle status meets the lighting cooling control conditions, the cooling time is the first cooling time. Once the first cooling time is reached and the lighting mode is set to automatic control, the vehicle's lights are controlled according to the automatic control mode. Alternatively, if the current vehicle status meets the lighting cooling control conditions, the cooling time is the second cooling time. Once the second cooling time is reached and the lighting mode is set to automatic control, the vehicle's lights are controlled according to the automatic control mode.
[0055] Figure 3 This is a schematic diagram of an intelligent cooling control process for high and low beam headlights provided in Embodiment 2 of the present invention. Figure 3 As shown, the intelligent cooling control process for high and low beam headlights includes the following steps:
[0056] Step 1: Confirm that the premise for starting the headlight switching method of this scheme is that the current vehicle headlight control mode is in AUTO mode (automatic control mode) and the headlights are in low beam mode. Then, define switching from low beam to high beam and then back to low beam as one round of high beam switching operation.
[0057] Step 2: Define the switching judgment time as T. A , If the vehicle completes two rounds of high / low beam switching operations within the switching judgment time, proceed to step 3.
[0058] Step 3: Determine the current vehicle status. If the current vehicle speed V ≥ 60 km / h and the current vehicle longitudinal acceleration Ax ≥ 0 m / s², then... 2 If the speed of the target passive light source detected by the current vehicle is Vobject≤0km / h, then proceed to step 4; if any of the conditions is not met, then proceed to step 5.
[0059] Step 4: The vehicle headlights enter the headlight cooling control, during the first cooling period. Inside, the system no longer sends control commands for high and low beams to the current vehicle's actuator, and simultaneously issues a text prompt through the instrument panel: "Environmental interference exists. Please manually control the high beams according to the actual situation."
[0060] Step 5: The vehicle headlights enter the headlight cooling control, during the second cooling period. Inside, the system no longer sends control commands for high and low beams to the current vehicle's actuator, and simultaneously issues a text prompt through the instrument panel: "Environmental interference exists. Please manually control the high beams according to the actual situation."
[0061] Step 6: After the cooling period ends, check the high beam control status. If it is still in AUTO mode, re-enter the automatic control mode to control the lights and restore normal operation.
[0062] In this solution, by adding headlight cooling control, the frequent switching of high and low beam control caused by the detection of state changes by passive light sources such as speed limit signs is avoided. It has the advantage of adaptability. By using vehicle status and target attributes, a dynamic cooling time control method with low computing power dependence and high coupling of vehicle status is achieved, which improves the intelligent control performance of high and low beam headlights and avoids the frequent switching of high and low beam headlight control caused by the detection of state changes by passive light sources at night.
[0063] The technical solution of this invention sets light cooling control conditions based on the target vehicle speed, vehicle longitudinal acceleration threshold, and passive light source speed threshold. If the current vehicle's headlights are in automatic control mode and the current vehicle completes the target number of high and low beam switching operations within the switching judgment time, then light cooling control is performed on the current vehicle based on the light cooling control conditions and the current vehicle status. Furthermore, if a cooling time matching the current vehicle's light cooling control is reached and the light mode is in automatic control mode, then the current vehicle's lights are controlled according to the automatic control mode. In this solution, by determining the number of high / low beam switching operations completed by the current vehicle within the specified switching time, it is determined that the current vehicle has detected a potential passive light source. Based on the light cooling control conditions and the current vehicle status, the automatic light control mode is turned off to prevent repeated high / low beam switching of the vehicle's headlights, thus achieving light cooling control. The automatic control mode can be restored after the cooling time is reached, providing a more intelligent solution to meet user needs. This solution addresses the safety concerns and poor user experience caused by repeated high / low beam switching due to passive light sources at night, improving driving safety and user experience.
[0064] Example 3
[0065] Figure 4 This is a schematic diagram of a lighting switching device provided in Embodiment 3 of the present invention. Figure 4 As shown, the device includes a light cooling control condition determination module 310 and a light cooling control module 320, wherein,
[0066] The headlight cooling control condition determination module 310 is used to set headlight cooling control conditions based on the target vehicle speed, the vehicle longitudinal acceleration threshold, and the passive light source speed threshold.
[0067] The headlight cooling control module 320 is used to control the headlight cooling of the current vehicle according to the headlight cooling control conditions and the current vehicle status if the headlights of the current vehicle are in automatic control mode and the current vehicle completes the target number of high and low beam switching operations within the switching judgment time.
[0068] The technical solution of this invention sets headlight cooling control conditions based on the target vehicle speed, vehicle longitudinal acceleration threshold, and passive light source speed threshold. If the vehicle's headlights are in automatic control mode and the vehicle completes the target number of high / low beam switching operations within the switching judgment time, headlight cooling control is applied to the vehicle based on the headlight cooling control conditions and the vehicle's current state. In this solution, by determining that the vehicle has completed the target number of high / low beam switching operations within the switching judgment time, it is determined that the vehicle has detected a possible passive light source. Therefore, based on the headlight cooling control conditions and the vehicle's current state, the automatic headlight control mode is turned off, preventing repeated high / low beam switching of the headlights. This achieves headlight cooling control for the vehicle, solving the problem of unsafe driving and poor user experience caused by repeated high / low beam switching due to passive light sources at night. It avoids repeated high / low beam switching caused by passive light sources at night, improving driving safety and user experience.
[0069] Optionally, the headlight switching device includes an automatic control gear function recovery module, which is used to control the headlights of the current vehicle according to the automatic control gear after the headlight cooling control of the current vehicle has been performed, when a cooling time matching the headlight cooling control of the current vehicle has been reached and the headlight gear is the automatic control gear.
[0070] Optionally, the headlight cooling control module 320 includes a first headlight cooling control unit and a second headlight cooling control unit; the first headlight cooling control unit is used to perform headlight cooling control on the current vehicle for a first cooling duration when it is determined that the current vehicle state meets the headlight cooling control conditions. The second headlight cooling control unit is used to perform headlight cooling control on the current vehicle for a second cooling duration when it is determined that the current vehicle state does not meet the headlight cooling control conditions.
[0071] Optionally, the first headlight cooling control unit is specifically configured to, during the first cooling period, not generate control commands for high / low beam headlights of the current vehicle, and to generate a manual headlight control voice signal. The second headlight cooling control unit is specifically configured to, during the second cooling period, not generate control commands for high / low beam headlights of the current vehicle, and to generate a manual headlight control voice signal.
[0072] Optionally, the switching determination time includes:
[0073] Determined based on the following formula:
[0074]
[0075] Among them, T AThis indicates the switching judgment time, where 'a' represents the first time parameter, and D... A Δv represents the distance between the current vehicle and the target passive light source when the current vehicle performs its first high / low beam switching operation, and Δv represents the relative speed between the current vehicle and the target passive light source when the current vehicle detects the target passive light source.
[0076] Optionally, the first cooling duration includes a value determined based on the following formula:
[0077]
[0078] Among them, T B Let b represent the first cooling time, b represent the second time parameter, and D represent the second cooling time. B Δv represents the distance between the current vehicle and the target passive light source when the current vehicle performs the target wheel high / low beam switching operation, and Δv represents the relative speed between the current vehicle and the target passive light source when the current vehicle detects the target passive light source.
[0079] Optionally, the second cooling duration includes a formula determined based on the following formula:
[0080]
[0081] Among them, T C 'c' represents the second cooling time, and 'c' represents the third time parameter.
[0082] The lighting switching device provided in this embodiment of the invention can execute the lighting switching method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the method.
[0083] Example 4
[0084] Figure 5 A schematic diagram of an electronic device that can be used to implement embodiments of the present invention is shown. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the invention described and / or claimed herein.
[0085] like Figure 5As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0086] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0087] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as the light switching method.
[0088] In some embodiments, the light switching method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the light switching method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the light switching method by any other suitable means (e.g., by means of firmware).
[0089] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0090] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0091] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0092] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0093] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0094] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0095] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0096] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for switching lights, characterized in that, include: Set the headlight cooling control conditions based on the target vehicle speed, the vehicle longitudinal acceleration threshold, and the passive light source speed threshold. If the headlights of the current vehicle are in automatic control mode, and the current vehicle completes the target number of high and low beam switching operations within the switching judgment time, then the headlight cooling control is performed on the current vehicle according to the headlight cooling control conditions and the current vehicle status.
2. The method according to claim 1, characterized in that, After performing headlight cooling control on the current vehicle, the method further includes: When the cooling time is reached to match the current vehicle lighting cooling control, and the lighting setting is the automatic control setting, the current vehicle lighting is controlled according to the automatic control setting.
3. The method according to claim 1, characterized in that, The step of controlling the headlight cooling of the current vehicle based on the headlight cooling control conditions and the current vehicle status includes: When it is determined that the current vehicle state meets the lighting cooling control conditions, the lighting cooling control is performed on the current vehicle according to the first cooling duration; If it is determined that the current vehicle state does not meet the lighting cooling control conditions, the lighting cooling control is performed on the current vehicle according to the second cooling duration.
4. The method according to claim 3, characterized in that, The step of controlling the headlight cooling of the current vehicle according to the first cooling duration includes: During the first cooling period, no control command is generated for the current vehicle to control the high and low beams, and a manual headlight control voice signal is generated. The step of controlling the headlight cooling of the current vehicle according to the second cooling duration includes: During the second cooling period, no control command is generated for the high / low beam headlights of the current vehicle, and a voice signal for manual headlight control is generated instead.
5. The method according to claim 1, characterized in that, The switching determination time includes: Determined based on the following formula: Among them, T A This indicates the switching judgment time, where 'a' represents the first time parameter, and 'D' represents the switching judgment time. A Δv represents the distance between the current vehicle and the target passive light source when the current vehicle performs its first high / low beam switching operation, and Δv represents the relative speed between the current vehicle and the target passive light source when the current vehicle detects the target passive light source.
6. The method according to claim 3, characterized in that, The first cooling duration includes: Determined based on the following formula: Among them, T B Let b represent the first cooling time, b represent the second time parameter, and D represent the second cooling time. B Δv represents the distance between the current vehicle and the target passive light source when the current vehicle performs the target wheel high / low beam switching operation, and Δv represents the relative speed between the current vehicle and the target passive light source when the current vehicle detects the target passive light source.
7. The method according to claim 6, characterized in that, The second cooling duration includes: Determined based on the following formula: Among them, T C 'c' represents the second cooling time, and 'c' represents the third time parameter.
8. A lighting switching device, characterized in that, include: The headlight cooling control condition determination module is used to set headlight cooling control conditions based on the target vehicle speed, vehicle longitudinal acceleration threshold, and passive light source speed threshold. The headlight cooling control module is used to control the headlight cooling of the current vehicle if the headlights of the current vehicle are in automatic control mode and the current vehicle completes the high and low beam switching operation of the target number of rounds within the switching judgment time.
9. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the light switching method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the light switching method according to any one of claims 1-7.