Engine compartment illumination control method and device, vehicle and storage medium
By obtaining the engine hood opening command in the vehicle and detecting the ambient light brightness, and selecting appropriate lighting equipment to light up, the problem of taking into account the engine compartment lighting and power saving under the multi-engine hood structure is solved, and efficient lighting and power management is achieved.
Patent Information
- Application Number
- CN202311164279.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-11
- Publication Date
- 2025-03-11
AI Technical Summary
In vehicles, how to take into account the lighting needs and power saving needs of the engine compartment under the multi-bonnet structure?
By obtaining the second hood that needs to be opened as indicated by the hood opening command, and upon detecting that the target ambient light brightness is less than the brightness threshold, based on the second hood, the target lighting device corresponding to the second hood is selected from the candidate hood and determined as the target lighting device to be lit.
When there is an engine compartment lighting requirement, it is achieved to ensure that the engine compartment area corresponding to the engine hood in the open state is illuminated, while avoiding the waste of vehicle electricity by turning on all candidate lighting equipment at the same time, achieving the purpose of taking into account both lighting needs and power savings.
Smart Images

Figure CN119590325A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle control, and more specifically, to an engine compartment lighting control method, device, vehicle and storage medium in the field of vehicle control. Background Art
[0002] Currently in the vehicle industry, with the continuous upgrading and reform of vehicle production technology, the structure of vehicles is gradually changing.
[0003] In one possible implementation, the engine hood of the vehicle evolves from the original one-piece structure to a two-piece structure, that is, the engine hood is divided into a left hood and a right hood. The left hood corresponds to the left side of the engine compartment, and the right hood corresponds to the right side of the engine compartment. The left hood and the right hood can be opened and closed independently without affecting each other.
[0004] Based on the above-mentioned structure of the engine hood, how to balance the lighting needs and power saving needs of the engine compartment has become an urgent problem to be solved. Summary of the invention
[0005] The present application provides an engine compartment lighting control method, device, vehicle and storage medium. The method can set an engine compartment lighting control strategy for a vehicle with multiple engine hoods, thereby saving power loss while taking into account the engine compartment lighting needs.
[0006] In a first aspect, a method for controlling engine compartment lighting is provided, the method comprising: in response to an engine hood opening instruction, determining in a first engine hood a second engine hood that the engine hood opening instruction indicates needs to be opened, at least two of the first engine hoods being deployed on a target vehicle, and each of the first engine hoods independently controlling a switch; when the second engine hood is in an open state and it is detected that the target ambient light brightness is less than a first brightness threshold, based on the second engine hood, determining a target lighting device from candidate lighting devices, at least two of the candidate lighting devices being deployed in the engine compartment of the target vehicle, and different candidate lighting devices corresponding to different first engine hoods; and controlling the target lighting device to be in a lit state.
[0007] In the above technical solution, this application proposes a method for controlling engine compartment lighting for multiple engine hoods: by obtaining the second engine hood that needs to be opened as indicated by the engine hood opening instruction, and when it is detected that the target ambient light brightness is less than the brightness threshold, the target lighting device corresponding to the second engine hood can be selected from the candidate lighting devices based on the second engine hood, and determined as the target lighting device that needs to be lit. On the one hand, it can ensure that when there is a demand for engine compartment lighting, the engine compartment area corresponding to the engine hood in the open state can be illuminated; on the other hand, it can avoid wasting vehicle power by turning on all candidate lighting devices at the same time, thereby taking into account both the lighting demand and power saving demand of the engine compartment.
[0008] In combination with the first aspect, in some possible implementations, the target lighting device is determined from the candidate lighting devices based on the second engine hood, including: determining a first position of the second engine hood relative to the engine compartment; and determining the candidate lighting device located in the engine compartment corresponding to the first position as the target lighting device.
[0009] In the above technical solution, the present application also proposes a method for determining the target lighting device corresponding to the second engine hood, by determining the position of the second engine hood relative to the engine compartment, so as to determine the candidate lighting device located at the position in the engine compartment as the target lighting device. After the determined target lighting device is lit, it can meet the lighting requirements of the engine compartment on the side where the engine hood is opened.
[0010] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the candidate lighting device located at the first position corresponding to the engine compartment is determined as the target lighting device, including: determining the number of candidate lighting devices located at the first position corresponding to the engine compartment; when the number of devices is greater than a number threshold and it is detected that the brightness of the target ambient light is greater than a second brightness threshold, selecting at least one target lighting device from the candidate devices located at the first position, the second brightness threshold is less than the first brightness threshold, and the number of target lighting devices is less than the number of devices; when the number of devices is greater than the number threshold and it is detected that the brightness of the target ambient light is less than the second brightness threshold, determining all of the candidate lighting devices located at the first position as the target lighting devices.
[0011] In the above technical solution, considering that there may be multiple candidate lighting devices located at the first position, and the brightness and power consumption brought by lighting up different numbers of candidate lighting devices are different, and the brightness required to be compensated under different ambient light brightnesses also differ, therefore, the present application also proposes to determine whether to light up all or part of the candidate lighting devices at the first position according to the relationship between the target ambient light brightness and the second brightness threshold. For example, if the target ambient light brightness is lower than the second brightness threshold, it means that a higher brightness needs to be compensated, and correspondingly, all candidate lighting devices can be selected to light up to meet the lighting needs under the current ambient light brightness; if the target ambient light brightness is higher than the second brightness threshold, it means that a lower brightness needs to be compensated, and part of the candidate lighting devices can be selected to light up, while meeting the lighting needs under the current ambient light brightness, it can avoid lighting up unnecessary candidate lighting devices and save the vehicle's power consumption.
[0012] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the control of the target lighting device to be in a lit state includes: when it is determined that the target lighting device needs to be lit, controlling the target lighting device to be at a first brightness, and the first brightness is the minimum brightness of the target lighting device; collecting an area image of the area where the engine compartment is located, and performing image recognition on the area image to obtain an image recognition result; when the image recognition result indicates that the first brightness does not meet the lighting requirements, controlling the target lighting device to change from the first brightness to a second brightness, and the second brightness is higher than the first brightness; when the image recognition result indicates that the first brightness meets the lighting requirements, controlling the target lighting device to continue to be at the first brightness.
[0013] In the above technical solution, after the user opens the engine hood, there may be multiple usage scenarios, such as maintenance scenarios, or storage and retrieval scenarios, and the lighting requirements in different scenarios may be different. For example, maintenance scenarios may require higher brightness than storage and retrieval scenarios. In order to take into account both lighting requirements and power saving requirements, the present application also proposes to collect regional images of the area where the engine compartment is located and perform image recognition to determine whether the first brightness (minimum brightness) meets the lighting requirements based on the image recognition results. If it meets the requirements, maintain the minimum brightness to save energy; if it does not meet the requirements, increase the brightness to meet the lighting requirements of the current scene.
[0014] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, when the image recognition result indicates that the first brightness does not meet the lighting requirements, controlling the target lighting device to change from the first brightness to the second brightness includes: obtaining the target usage scenario of the engine compartment indicated by the image recognition result; determining the target brightness corresponding to the target usage scenario based on a first correspondence between candidate usage scenarios and candidate brightness; when the target brightness does not match the first brightness, determining that the first brightness does not meet the lighting requirements under the target usage scenario; determining the target brightness as the second brightness, and controlling the brightness of the target lighting device to change from the first brightness to the second brightness.
[0015] In the above technical solution, with respect to the method of determining the second brightness, the present application also proposes determining the target usage scene of the engine compartment according to the image recognition result, so as to determine whether the first brightness matches the brightness corresponding to the target usage scene based on the first corresponding relationship (the relationship between the candidate usage scene and the candidate brightness), and then, if the first brightness does not match, the target brightness corresponding to the target usage scene is used as the second brightness to control the brightness of the target lighting device to be adjusted to the second brightness. The adjusted second brightness meets the lighting brightness required by the current target usage scene.
[0016] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, controlling the target lighting device to be in the lit state also includes: when it is determined that the target lighting device needs to be lit, obtaining a second correspondence between the candidate ambient light brightness and the candidate brightness; based on the target ambient light brightness and the second correspondence, determining a third brightness corresponding to the target ambient light brightness; based on the third brightness, controlling the target lighting device to be in the lit state.
[0017] In the above technical solution, considering that the brightness required to be compensated under different ambient light brightness is different, in order to further save electric energy and take into account the lighting needs under different ambient light brightness, the present application also proposes to determine the third brightness corresponding to the target ambient light brightness according to the second corresponding relationship between the candidate ambient light brightness and the candidate brightness, and control the lighting of the target lighting device based on the third brightness. In this way, the lighting needs under different ambient light brightness can be met, and the purpose of saving electric energy can also be achieved.
[0018] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the method also includes: when the target lighting device is in the lighting state, in response to the engine hood closing instruction, determining that the engine hood closing instruction indicates that the third engine hood needs to be closed; when the third engine hood is in the closed state, based on the second position of the third engine hood relative to the engine compartment, controlling the target lighting device located in the engine compartment corresponding to the second position to be extinguished.
[0019] In the above technical solution, when the hood is opened, it is necessary to determine whether the target lighting device is lit. When the hood is closed, if the target lighting device is lit, in order to avoid wasting the vehicle power by the hood still being lit after the hood is closed, the present application also proposes that when the target lighting device is in the lit state, if a hood closing instruction is received, the third hood required to be closed by the hood closing instruction can be determined, and then based on the second position of the third hood relative to the engine compartment, the target lighting device located at the second position is controlled to be extinguished. The target lighting device on the corresponding side of the hood that has been closed can be accurately extinguished, further saving vehicle power.
[0020] In a second aspect, an engine compartment lighting control device is provided, the device comprising: a determination module, for responding to an engine hood opening instruction, determining in a first engine hood a second engine hood that the engine hood opening instruction indicates needs to be opened, at least two of the first engine hoods are deployed on a target vehicle, and each of the first engine hoods independently controls a switch; the determination module is also used to determine a target lighting device from candidate lighting devices based on the second engine hood when the second engine hood is in an open state and it is detected that the target ambient light brightness is less than a first brightness threshold, at least two of the candidate lighting devices are deployed in the engine compartment of the target vehicle, and different candidate lighting devices correspond to different first engine hoods; a first control module, for controlling the target lighting device to be in a lit state.
[0021] In combination with the second aspect, in some possible implementations, the determination module is further used to: determine a first position of the second engine hood relative to the engine compartment; and determine a candidate lighting device located in the engine compartment corresponding to the first position as the target lighting device.
[0022] In combination with the second aspect and the above-mentioned implementation methods, in some possible implementation methods, the determination module is also used to: determine the number of candidate lighting devices located at the engine compartment corresponding to the first position; when the number of devices is greater than the number threshold and the target ambient light brightness is detected to be greater than the second brightness threshold, select at least one target lighting device from the candidate devices located at the first position, the second brightness threshold is less than the first brightness threshold, and the number of target lighting devices is less than the number of devices; when the number of devices is greater than the number threshold and the target ambient light brightness is detected to be less than the second brightness threshold, determine all the candidate lighting devices located at the first position as the target lighting devices.
[0023] In combination with the second aspect and the above-mentioned implementation methods, in some possible implementation methods, the first control module is also used to: when it is determined that the target lighting device needs to be lit, control the target lighting device to be at a first brightness, and the first brightness is the minimum brightness of the target lighting device; collect an area image of the area where the engine compartment is located, and perform image recognition on the area image to obtain an image recognition result; when the image recognition result indicates that the first brightness does not meet the lighting requirements, control the target lighting device to change from the first brightness to a second brightness, and the second brightness is higher than the first brightness; when the image recognition result indicates that the first brightness meets the lighting requirements, control the target lighting device to continue to be at the first brightness.
[0024] In combination with the second aspect and the above-mentioned implementation methods, in some possible implementation methods, the first control module is also used to: obtain the target usage scenario of the engine compartment indicated by the image recognition result; determine the target brightness corresponding to the target usage scenario based on a first correspondence between candidate usage scenarios and candidate brightness; if the target brightness does not match the first brightness, determine that the first brightness does not meet the lighting requirements under the target usage scenario; determine the target brightness as the second brightness, and control the brightness of the target lighting device from the first brightness to the second brightness.
[0025] In combination with the second aspect and the above-mentioned implementation methods, in some possible implementation methods, the first control module is also used to: when it is determined that the target lighting device needs to be illuminated, obtain a second correspondence between the candidate ambient light brightness and the candidate brightness; based on the target ambient light brightness and the second correspondence, determine a third brightness corresponding to the target ambient light brightness; based on the third brightness, control the target lighting device to be in the illuminated state.
[0026] In combination with the second aspect and the above-mentioned implementation methods, in some possible implementation methods, the device also includes: a determination module for determining, in response to the engine hood closing instruction, when the target lighting device is in the lit state, that the engine hood closing instruction indicates a third engine hood that needs to be closed; and a second control module for controlling, when the third engine hood is in the closed state, to extinguish the target lighting device located at the engine compartment corresponding to the second position based on the second position of the third engine hood relative to the engine compartment.
[0027] In a third aspect, a vehicle is provided, comprising a memory and a processor. The memory is used to store executable program code, and the processor is used to call and run the executable program code from the memory, so that the vehicle executes the method in the first aspect or any possible implementation of the first aspect.
[0028] In a fourth aspect, a computer program product is provided, comprising: a computer program code, which, when executed on a computer, enables the computer to execute the method in the first aspect or any possible implementation of the first aspect.
[0029] In a fifth aspect, a computer-readable storage medium is provided, which stores a computer program code. When the computer program code runs on a computer, the computer executes the method in the above-mentioned first aspect or any possible implementation manner of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 It is a schematic structural diagram of a vehicle with a butterfly-opening engine hood provided in an embodiment of the present application;
[0031] Figure 2 is a schematic flow chart of an engine compartment lighting control method provided in an embodiment of the present application;
[0032] Figure 3 This is a schematic diagram of a process of adaptively adjusting cabin brightness provided by an embodiment of the present application;
[0033] Figure 4 is a schematic flow chart of another engine compartment lighting control method provided in an embodiment of the present application;
[0034] Figure 5 is a schematic diagram of another process of adaptively adjusting cabin brightness provided by an embodiment of the present application;
[0035] Figure 6 is a schematic flow chart of another engine compartment lighting control method provided in an embodiment of the present application;
[0036] Figure 7 This is a schematic diagram of a process for setting the lighting brightness in a cabin provided by an embodiment of the present application;
[0037] Figure 8 is a schematic flow chart of another engine compartment lighting control method provided in an embodiment of the present application;
[0038] Fig. 9 is a structural schematic diagram of an engine compartment lighting control device provided in an embodiment of the present application;
[0039] Fig.10 It is a structural schematic diagram of a vehicle provided in an embodiment of the present application. DETAILED DESCRIPTION
[0040] The technical solution in the present application will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B: "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0041] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.
[0042] Figure 1 It is a schematic structural diagram of a vehicle with a butterfly-opening engine hood provided in an embodiment of the present application.
[0043] For example, Figure 1 As shown, an engine compartment is generally configured in the vehicle 100. The engine compartment generally includes an engine, a battery, a water tank refilling tank, a relay box, a brake booster pump, a fluid storage tank and other components related to the driving of the vehicle 100.
[0044] Correspondingly, the component used to cover the engine compartment is called a "hood" (also called an engine cover, or simply "hood"). Different from a conventional integral hood, the hood 110 provided in the embodiment of the present application can be divided into a left hood and a right hood. When the left hood and the right hood are fully opened, the hood can be in a "butterfly shape", so the hood 110 can also be called a butterfly-opened hood.
[0045] For example, with the position of the user standing outside the vehicle 100 and facing the front windshield of the vehicle 100 as the reference position, the hood corresponding to the left hand side of the user can be called the "left hood", and the hood corresponding to the right hand side of the user is called the "right hood". Correspondingly, the position of the engine compartment covered by the left hood is called the "left position of the engine compartment" (referred to as the "left position"), and the position of the engine compartment covered by the right hood is called the "right position of the engine compartment" (referred to as the "right position").
[0046] In order to meet the lighting needs in the engine compartment, lighting equipment is generally installed in the engine compartment. When the engine hood is opened, the lighting equipment can be turned on to illuminate the inside of the engine compartment to meet the lighting needs of users when repairing the engine compartment or placing items. In the case where the structure of the engine hood is changed, how to control the lighting of the engine compartment according to the opening and closing of the engine hood is a problem that needs to be solved in the embodiments of the present application. Figure 2 is a schematic flow chart of an engine compartment lighting control method provided in an embodiment of the present application. The method is applied to Figure 1 in the vehicle.
[0047] For example, Figure 2 As shown, the method 200 includes:
[0048] Step 201, in response to a hood opening instruction, determining in a first hood a second hood that the hood opening instruction indicates needs to be opened, wherein at least two first hoods are deployed on the target vehicle, and each first hood has an independent control switch.
[0049] Since each first engine hood is independently controlled, the engine hood opening instruction can be used to open all first engine hoods at the same time, or can be used to open any at least one first engine hood. Figure 1 Taking the engine hood shown as an example, the target vehicle is equipped with two first engine hoods (a left engine hood and a right engine hood), and the engine hood opening instruction can be used to open the left engine hood, or to open the right engine hood, or to open the left engine hood and the right engine hood at the same time. Therefore, after the target vehicle receives the engine hood opening instruction, it is first necessary to determine the second engine hood indicated by the engine hood opening instruction from the first engine hood, and then determine how to adjust the lighting mode of the engine compartment according to the opening state of the second engine hood.
[0050] For example, taking the target vehicle being deployed with a left-side hood and a right-side hood as an example, if the hood opening instruction is used to instruct the opening of the left-side hood, the left-side hood is determined as the second hood; if the hood opening instruction is used to instruct the opening of the right-side hood, the right-side hood is determined as the second hood; if the hood opening instruction is used to instruct the opening of both the left-side hood and the right-side hood, the left-side hood and the right-side hood are determined as the second hood.
[0051] The triggering method for the engine hood opening command may include at least one of the following: (1) triggering the engine hood opening command by touching a micro switch outside the vehicle; (2) triggering the engine hood opening command by a vehicle remote control key; (3) triggering the engine hood opening command remotely through a mobile terminal; (4) triggering the engine hood opening command through gesture operation; (5) triggering the engine hood opening command through voice commands, etc.
[0052] Step 202, when the second engine hood is in the open state and it is detected that the target ambient light brightness is less than the first brightness threshold, based on the second engine hood, a target lighting device is determined from the candidate lighting devices, and at least two candidate lighting devices are deployed in the engine compartment of the target vehicle, and different candidate lighting devices correspond to different first engine hoods.
[0053] During the use of the vehicle, there is a need to repair the internal components of the engine compartment, or there is a need to place items inside the engine compartment. However, in the case of dim ambient light, normal repair or placement of items may not be possible. In order to facilitate users to repair and place items, lighting equipment is generally deployed inside the engine compartment so that the lighting equipment can be lit when there is a lighting demand. Considering the special engine hood structure in the present application, the left engine hood or the right engine hood can be opened separately, and the engine compartment is also divided into different cabin areas. In order to illuminate the corresponding engine compartment areas after different engine hoods are opened, in a possible implementation, at least two candidate lighting devices are also deployed in the engine compartment of the target vehicle, and different candidate lighting devices correspond to different first engine hoods.
[0054] For example, if the target vehicle is equipped with a left engine hood and a right engine hood, at least one candidate lighting device is deployed in the engine compartment area on the side corresponding to the left engine hood, and at least one candidate lighting device is deployed in the engine compartment area on the side corresponding to the right engine hood. When the engine hood on one side is opened and there is a lighting demand, the candidate lighting device on the side corresponding to the engine hood on the one side can be lit.
[0055] Optionally, the candidate lighting device may be in the form of a lamp bead or a light strip. Optionally, in order not to affect the position of the internal components of the engine compartment, it may be deployed at the edge of the engine compartment.
[0056] Since at least two candidate lighting devices are deployed in the engine compartment, and different candidate lighting devices are used to illuminate the cabin areas in different directions in the engine compartment; if the left engine hood is turned on, the lighting device corresponding to the right engine hood is turned on instead, there is a problem that the cabin lighting demand of the current scene cannot be met; or when a single engine hood is turned on, all lighting devices are turned on at the same time, there may be a problem of wasting vehicle power. Therefore, in order to take into account both the cabin lighting demand and the power saving demand, in an embodiment of the present application, when the second engine hood is in an open state and it is detected that the target ambient light brightness is less than the first brightness threshold, the target lighting device corresponding to the second engine hood can be selected from the candidate lighting devices according to the second engine hood in an open state, and determined as the lighting device that needs to be turned on. On the one hand, it can ensure that when there is a cabin lighting demand, the engine compartment area corresponding to the engine hood in an open state can be illuminated; on the other hand, it can avoid wasting vehicle power by turning on all candidate lighting devices at the same time.
[0057] The target ambient light brightness can be detected by a light sensor arranged in the engine compartment. If the second engine hood is in the open state, and the light sensor in the engine compartment on the side corresponding to the second engine hood detects that the target ambient light brightness is less than the first brightness threshold, it indicates that there is a lighting demand in the engine compartment on the side of the second engine hood. For example, the first brightness threshold can be set to 100 cd / ㎡.
[0058] Step 203: Control the target lighting device to be in a lighting state.
[0059] When it is determined that the target lighting device needs to be lit, the vehicle may control the target lighting device to be in a lit state.
[0060] Figure 3 Schematic diagram of a cabin brightness adaptive adjustment process provided by an embodiment of the present application. Figure 3 As shown, when the engine hood executes the hood opening command, the light sensor 301 arranged in the engine compartment collects the brightness outside the cabin (i.e., the target ambient light brightness). If the external light brightness is sensed to be less than 100cd / ㎡ (setting: the visible scene ambient brightness is ≥100cd / ㎡), the light sensor unit 302 determines the signal to the body domain controller 303, and further transmits the determination signal to the compensation light control unit 304, so as to realize the adaptive adjustment and lighting of the compensation light (the compensation light is the target lighting device) as the engine hood is opened; when the light sensor 301 senses that the external illumination brightness is ≥100cd / ㎡, the compensation light in the engine compartment is automatically extinguished.
[0061] Optionally, in order to save electric energy, when it is detected that the target ambient light brightness is greater than a first brightness threshold, the vehicle may control the target lighting device that is in a lit state to be turned off.
[0062] In summary, this application proposes a method for controlling engine compartment lighting for multiple engine hoods: by obtaining the second engine hood that needs to be opened as indicated by the engine hood opening instruction, and when it is detected that the target ambient light brightness is less than the brightness threshold, the target lighting device corresponding to the second engine hood can be selected from the candidate lighting devices based on the second engine hood, and determined as the target lighting device that needs to be lit. On the one hand, it can ensure that when there is a demand for engine compartment lighting, the engine compartment area corresponding to the engine hood in the open state can be illuminated; on the other hand, it can avoid wasting vehicle power by turning on all candidate lighting devices at the same time, thereby taking into account both the lighting demand and power saving demand of the engine compartment.
[0063] The engine compartment can be divided into engine compartment areas in different directions based on the structure of the engine hood. At least one candidate lighting device is deployed in different engine compartment areas; when multiple candidate lighting devices are deployed in each engine compartment area, in order to take into account both lighting needs and energy-saving needs, the target lighting device to be lit can be selected according to the target ambient light brightness.
[0064] Figure 4 is a schematic flow chart of another engine compartment lighting control method provided in an embodiment of the present application. The method is applied to Figure 1 in the vehicle.
[0065] For example, Figure 4 As shown, the method 400 includes:
[0066] Step 401, in response to a hood opening instruction, determining in a first hood a second hood that the hood opening instruction indicates needs to be opened, wherein at least two first hoods are deployed on the target vehicle, and each first hood has an independent control switch.
[0067] The implementation of step 401 may refer to the above embodiment, and will not be described in detail in this embodiment.
[0068] Step 402, when the second engine hood is in an open state and it is detected that the target ambient light brightness is less than a first brightness threshold, determine a first position of the second engine hood relative to the engine compartment.
[0069] Take the example of an engine hood including a left hood and a right hood, the left hood is used to cover the left engine compartment area of the engine compartment, and the right hood is used to cover the right engine compartment area of the engine compartment. In order to make it so that when the left hood is opened and there is a lighting demand, only the lighting equipment in the left engine compartment area can be lit; or, when the right hood is opened and there is a lighting demand, only the lighting equipment in the right engine compartment area can be lit. In a possible implementation, when the second engine hood is in an open state and it is detected that the target ambient light brightness is less than a first brightness threshold, the target vehicle can determine the first position of the second engine hood relative to the engine compartment, and then light up the target lighting equipment located at the first position, so that the lit target lighting equipment meets the engine compartment area where there is currently a lighting demand.
[0070] Step 403: determine the candidate lighting device located at the first position corresponding to the engine compartment as the target lighting device.
[0071] Further, when determining the first position of the second engine hood in the open state relative to the engine compartment, the first position may indicate the position of the engine compartment area covered by the second engine hood relative to the engine compartment, that is, there is a lighting demand in the engine compartment area at the first position. Considering the power saving demand and the lighting demand, only the lighting device located at the first position needs to be lit. The corresponding target vehicle determines the candidate lighting device located at the first position corresponding to the engine compartment as the target lighting device that needs to be lit.
[0072] Exemplarily, if the second hood is a left-side hood, then the first position of the second hood relative to the engine compartment is a left-side position, and the candidate lighting device located at the left-side position of the engine compartment is determined as the target lighting device; if the second hood is a right-side hood, then the first position of the second hood relative to the engine compartment is a right-side position, and the candidate lighting device located at the right-side position of the engine compartment is determined as the target lighting device; if the second hood includes a left-side hood and a right-side hood, then the first position of the second hood relative to the engine compartment includes a left-side position and a right-side position, and the candidate lighting devices located at the left-side position and the right-side position of the engine compartment are determined as the target lighting devices.
[0073] Optionally, considering the difference in brightness of a single lighting device, different engine compartment areas of the engine compartment may be provided with at least two candidate lighting devices. For example, the left engine compartment area is provided with 3 candidate lighting devices, and the right engine compartment area is provided with 3 lighting devices. The brightness and power consumption brought about by lighting different numbers of lighting devices are different. Considering the need to save power consumption, the target lighting device to be lit can be adaptively adjusted according to the brightness of the target ambient light. Correspondingly, in an illustrative example, step 403 may also include steps 403A to 403C.
[0074] Step 403A, determining the number of candidate lighting devices located at a first position corresponding to the engine compartment.
[0075] In addition to selecting the target lighting device to be lit according to the first position of the second engine hood relative to the engine compartment, it is also considered that there may be multiple candidate lighting devices located at the first position; and when the target ambient light brightness is high, it is not necessary to light up all the candidate lighting devices located at the first position to save power consumption. Therefore, in a possible implementation, when selecting the target lighting device, the target vehicle can first determine the number of candidate lighting devices located at the first position corresponding to the engine compartment, and then comprehensively determine whether to light up all the candidate lighting devices located at the first position according to the number of devices and the target ambient light brightness.
[0076] Step 403B, when the number of devices is greater than the number threshold and the target ambient light brightness is detected to be greater than the second brightness threshold, at least one target lighting device is selected from the candidate devices located at the first position, the second brightness threshold is less than the first brightness threshold, and the number of target lighting devices is less than the number of devices.
[0077] Among them, the quantity threshold is 1. If the number of candidate lighting devices located at the first position is single, the candidate lighting device located at the first position can be directly determined as the target lighting device that needs to be illuminated; if the number of candidate lighting devices located at the first position is multiple, that is, the number of devices is greater than the quantity threshold, it is necessary to further determine whether to illuminate all the candidate lighting devices or only some of the candidate lighting devices according to the brightness of the target ambient light.
[0078] In the case where the number of devices is greater than the number threshold, it is necessary to further determine the required lighting brightness for the current ambient light brightness. The lower the ambient light brightness, the higher the required lighting brightness must be. The higher the ambient light brightness, the lower the required lighting brightness. Considering the need to save power loss, a second brightness threshold is set, and the second brightness threshold is less than the first brightness threshold. When the number of candidate lighting devices at the first position is greater than the number threshold, by comparing the relationship between the detected target ambient light brightness and the second brightness threshold, if the target ambient light brightness is greater than the second brightness threshold, it means that although there is a lighting demand in the current scene, the required lighting brightness is relatively low. In order to avoid lighting up all the candidate lighting devices at the first position, only some of the candidate lighting devices at the first position are selected as target lighting devices, that is, the number of target lighting devices is less than the number of candidate devices at the first position.
[0079] Step 403C: when the number of devices is greater than the number threshold and the target ambient light brightness is detected to be less than the second brightness threshold, all candidate lighting devices located at the first position are determined as target lighting devices.
[0080] On the contrary, if the target ambient light brightness is detected to be less than the second brightness threshold, it means that the lighting brightness required for the current scene is relatively high. In order to meet the lighting demand, when it is determined that the number of devices is greater than the number threshold and the target ambient light brightness is detected to be less than the second brightness threshold, all candidate lighting devices located at the first position are directly determined as target lighting devices. That is, when the target ambient light brightness is particularly low, all target lighting devices located at the first position are directly lit.
[0081] Step 404, control the target lighting device to be in a lighting state.
[0082] The implementation of step 404 may refer to the above embodiment, and will not be described in detail in this embodiment.
[0083] Step 405 : when the target lighting device is in the lighting state, in response to the engine hood closing instruction, determining a third engine hood that the engine hood closing instruction indicates needs to be closed.
[0084] Corresponding to lighting up the target lighting device in the engine compartment after the engine hood is opened, when the engine hood is closed, it means that the engine compartment does not need to be used, so in order to save power loss, the corresponding target lighting device needs to be turned off. In a corresponding possible implementation, when the target lighting device is in a lit state, if the target vehicle receives a hood closing instruction, it is necessary to determine the third engine hood that the hood closing instruction indicates needs to be turned off, and then determine the target lighting device that needs to be turned off.
[0085] Step 406, when the third engine hood is in the closed state, based on the second position of the third engine hood relative to the engine compartment, control the target lighting device located at the corresponding second position of the engine compartment to be turned off.
[0086] If both the left hood and the right hood are open, and the target lighting devices in the left and right areas of the engine compartment are lit; at this time, when a hood closing instruction to close the left hood is received, in order to avoid accidentally closing the target lighting devices in the right area. In a possible implementation, when the third hood is in the closed state, the target lighting device in the second orientation can be determined based on the second orientation of the third hood relative to the engine compartment, and then the target lighting device in the second orientation can be controlled to be extinguished.
[0087] Figure 5 FIG. 1 is another schematic diagram of a process for adaptively adjusting cabin brightness provided by an embodiment of the present application. Figure 5 As shown, when the compensation light is on, if the target vehicle receives a hood closing command, in order to avoid wasting vehicle power by keeping the compensation light on, the compensation light is determined to be turned off, and the body domain controller 501 transmits the determination signal to the compensation light control unit 502 to control the compensation light to be turned off.
[0088] In this embodiment, a method for determining the target lighting device corresponding to the second engine hood is proposed, by determining the position of the second engine hood relative to the engine compartment, so as to determine the candidate lighting device located at the position in the engine compartment as the target lighting device. After the determined target lighting device is lit, it can meet the lighting demand of the engine compartment on the side where the engine hood is opened.
[0089] Considering that there may be multiple candidate lighting devices at the first position, and the brightness and power consumption brought by lighting up different numbers of candidate lighting devices are different, and the brightness required to be compensated under different ambient light brightness is also different, therefore, the present application also proposes to determine whether to light up all or part of the candidate lighting devices at the first position according to the relationship between the target ambient light brightness and the second brightness threshold. For example, if the target ambient light brightness is lower than the second brightness threshold, it means that a higher brightness needs to be compensated, and correspondingly, all candidate lighting devices can be selected to light up to meet the lighting needs under the current ambient light brightness; if the target ambient light brightness is higher than the second brightness threshold, it means that a lower brightness needs to be compensated, and some candidate lighting devices can be selected to light up, which can avoid lighting up unnecessary candidate lighting devices while meeting the lighting needs under the current ambient light brightness, thereby saving the vehicle's power consumption.
[0090] When the hood is open, it is necessary to determine whether to light up the target lighting device. When the hood is closed, if there is a target lighting device that is lit, in order to avoid wasting the vehicle power by still being in the lit state after the hood is closed, the present application also proposes that when the target lighting device is in the lit state, if a hood closing instruction is received, the third hood that needs to be closed by the hood closing instruction can be determined, and then based on the second position of the third hood relative to the engine compartment, the target lighting device located at the second position is controlled to be extinguished. The target lighting device on the corresponding side of the closed hood can be accurately extinguished, further saving vehicle power.
[0091] Since the required lighting brightness in different engine compartment usage scenarios is different, for example, the required lighting brightness in the maintenance scenario is higher than the lighting brightness in the object placement scenario. In order to take into account both lighting needs and power saving needs, in the process of controlling the lighting of the target lighting device, the brightness of the target lighting device after being lit can be further determined according to the lighting brightness requirements in the current usage scenario.
[0092] Figure 6 is a schematic flow chart of another engine compartment lighting control method provided in an embodiment of the present application. The method is applied to Figure 1 in the vehicle.
[0093] For example, Figure 6 As shown, the method 600 includes:
[0094] Step 601, in response to a hood opening instruction, determining in a first hood a second hood that the hood opening instruction indicates needs to be opened, wherein at least two first hoods are deployed on the target vehicle, and each first hood has an independent control switch.
[0095] Step 602 : when the second engine hood is in an open state and it is detected that the target ambient light brightness is less than a first brightness threshold, a target lighting device is determined from candidate lighting devices based on the second engine hood.
[0096] The implementation of step 601 and step 602 can refer to the above embodiment, and this embodiment will not be described in detail here.
[0097] Step 603: When it is determined that the target lighting device needs to be turned on, the target lighting device is controlled to be at a first brightness, where the first brightness is the lowest brightness of the target lighting device.
[0098] Considering that it is necessary to capture images to identify the current usage scenario of the engine compartment, in order to avoid the captured images being unrecognizable due to too low brightness, while taking into account the need to save power. In one possible implementation, when it is determined that the target lighting device needs to be lit, the target vehicle can control the target lighting device to be at a first brightness, which is the lowest brightness of the target lighting device, and the first brightness can meet the image capture requirements, facilitate subsequent image capture to identify the usage scenario, and at the same time, the lowest brightness can also avoid wasting power.
[0099] Step 604 , collecting a regional image within the area where the engine compartment is located, and performing image recognition on the regional image to obtain an image recognition result.
[0100] Furthermore, after the target lighting device is at the first brightness, the target vehicle can collect a regional image of the area where the engine compartment is located through a camera deployed near the engine compartment, so as to perform image recognition on the regional image to obtain an image recognition result, and further determine whether it is necessary to adjust the brightness of the target lighting device based on the image recognition result.
[0101] Step 605 , when the image recognition result indicates that the first brightness does not meet the lighting requirement, control the target lighting device to change from the first brightness to a second brightness, where the second brightness is higher than the first brightness.
[0102] Since the first brightness is the lowest brightness of the target lighting device, if the image recognition result indicates that it is in a maintenance scene, then the first brightness obviously does not meet the current lighting needs and needs to be increased; if the image recognition result indicates that it is in a scene where items are placed, then the first brightness can meet the current lighting needs and can continue to maintain the current brightness. In order to make the target lighting device meet the lighting needs of the identified usage scenario, the target vehicle can further determine whether it is necessary to adjust the brightness of the target lighting device based on the lighting needs indicated by the image recognition result. If the image recognition result indicates that the first brightness does not meet the lighting needs, the target vehicle can control the target lighting device to adjust from the first brightness to the second brightness, and the second brightness is higher than the first brightness.
[0103] Optionally, the target vehicle may pre-set a brightness correspondence between different usage scenarios and the brightness of the target lighting device, and then in the lighting control process, it may be determined whether the first brightness meets the lighting requirements in the current usage scenario according to the brightness correspondence. Correspondingly, in an exemplary example, step 605 may also include steps 605A to 605D.
[0104] Step 605A, obtaining the target usage scenario of the engine compartment indicated by the image recognition result.
[0105] Optionally, the target vehicle may pre-store image features of the engine compartment under different usage scenarios, and then perform image recognition on the regional image based on the image features. If a feature matching the image feature is identified, the usage scenario corresponding to the image feature is determined as the target usage scenario of the engine compartment indicated by the image recognition result.
[0106] Step 605B: determining a target brightness corresponding to the target usage scenario based on a first correspondence between the candidate usage scenarios and the candidate brightnesses.
[0107] The target vehicle is pre-set with a first correspondence between different candidate usage scenarios and candidate brightness. The first correspondence can be set by a developer or by a user. For example, when using the vehicle, the user can set the corresponding candidate brightness for different candidate usage scenarios by triggering the cabin lighting setting function on the vehicle display.
[0108] Further, after the target vehicle determines the target usage scenario of the current engine compartment, the candidate brightness corresponding to the candidate usage scenario matching the target usage scenario can be determined as the target brightness corresponding to the target usage scenario based on the first corresponding relationship.
[0109] Figure 7 Schematic diagram of a cabin lighting brightness setting process provided by an embodiment of the present application. Figure 7 As shown, when the user uses the vehicle, he can set the brightness value of the engine compartment compensation light by operating on the display screen. When the hood opening command is executed, the vehicle body domain controller 701 interacts with the signal, and the compensation light control unit 702 realizes the setting of the brightness of the engine compartment compensation light.
[0110] Step 605C: when the target brightness does not match the first brightness, determine that the first brightness does not meet the lighting requirements in the target usage scenario.
[0111] After the target vehicle determines the target brightness corresponding to the target usage scenario of the current engine compartment, it can be compared with the first brightness of the current target lighting device. If the target brightness matches the first brightness, it means that the first brightness of the current target lighting device can meet the lighting requirements of the current target usage scenario. Conversely, if the target brightness does not match the first brightness, it means that the first brightness of the current target lighting device does not meet the lighting requirements of the current target usage scenario, and the brightness of the target lighting device needs to be adjusted.
[0112] Step 605D: determine the target brightness as the second brightness, and control the brightness of the target lighting device to change from the first brightness to the second brightness.
[0113] When the first brightness does not meet the lighting requirements of the target usage scenario, in order to make the lighting requirements of the adjusted target lighting equipment meet the lighting requirements of the target usage scenario, the target vehicle can directly determine the target brightness matching the target usage scenario as the second brightness to control the brightness of the target lighting equipment from the first brightness to the second brightness.
[0114] Step 606: When the image recognition result indicates that the first brightness meets the lighting requirement, control the target lighting device to continue to be at the first brightness.
[0115] When the target brightness matches the first brightness, it means that the image recognition result indicates that the first brightness meets the lighting requirements in the target usage scenario, and there is no need to adjust the brightness of the target lighting device. The corresponding target vehicle can control the target lighting device to continue to maintain the first brightness.
[0116] In this embodiment, after the user opens the engine hood, there may be multiple usage scenarios, such as maintenance scenarios or storage and retrieval scenarios, and the lighting requirements in different scenarios may be different. For example, maintenance scenarios may require higher brightness than storage and retrieval scenarios. In order to take into account both lighting requirements and power saving requirements, the present application also proposes to collect regional images of the area where the engine compartment is located and perform image recognition to determine whether the first brightness (minimum brightness) meets the lighting requirements based on the image recognition results. If it meets the requirements, the minimum brightness is maintained to save energy; if it does not meet the requirements, the brightness is increased to meet the lighting requirements of the current scene.
[0117] Regarding the method of determining the second brightness, the present application also proposes determining the target usage scene of the engine compartment according to the image recognition result, so as to determine whether the first brightness matches the brightness corresponding to the target usage scene based on the first corresponding relationship (the relationship between the candidate usage scene and the candidate brightness), and then, if the first brightness does not match, the target brightness corresponding to the target usage scene is used as the second brightness to control the brightness of the target lighting device to be adjusted to the second brightness. The adjusted second brightness meets the lighting brightness required by the current target usage scene.
[0118] The lighting demand is not only related to the current usage scenario, but also to the current ambient light brightness. When the ambient light brightness is low, the corresponding compensation light brightness is higher. When the ambient light brightness is higher, the required compensation light brightness is relatively low. In addition to adaptively adjusting the brightness of the target lighting device according to the usage scenario, the brightness of the target lighting device can also be adaptively adjusted according to the ambient light brightness.
[0119] Figure 8 is a schematic flow chart of another engine compartment lighting control method provided in an embodiment of the present application. The method is applied to Figure 1 in the vehicle.
[0120] For example, Figure 8 As shown, the method 800 includes:
[0121] Step 801, in response to a hood opening instruction, determining in a first hood a second hood that the hood opening instruction indicates needs to be opened, wherein at least two first hoods are deployed on the target vehicle, and each first hood has an independent control switch.
[0122] Step 802 : when the second engine hood is in an open state and it is detected that the target ambient light brightness is less than a first brightness threshold, a target lighting device is determined from candidate lighting devices based on the second engine hood.
[0123] The implementation of step 801 and step 802 can refer to the above embodiment, and this embodiment will not be described in detail here.
[0124] Step 803: when it is determined that the target lighting device needs to be turned on, a second corresponding relationship between the candidate ambient light brightness and the candidate brightness is obtained.
[0125] Optionally, in order to further save power loss, the candidate lighting device (or target lighting device) has multiple levels of adjustable candidate brightness. The user can pre-set the second correspondence between the candidate brightness and the candidate ambient light brightness, so that when it is determined that the target lighting device needs to be lit, the target vehicle can obtain the second correspondence between the candidate ambient light brightness and the candidate brightness, and then determine the brightness that needs to be adjusted for the current target lighting device according to the second correspondence.
[0126] Optionally, the second corresponding relationship may be a corresponding relationship between the ambient light brightness and the candidate brightness corresponding to the candidate lighting device, or may be a corresponding relationship between the ambient light brightness range and the candidate brightness.
[0127] Step 804: Determine a third brightness corresponding to the target ambient light brightness based on the target ambient light brightness and the second corresponding relationship.
[0128] Further, the target vehicle may determine a candidate brightness corresponding to the candidate ambient light brightness matching the target ambient light brightness according to the target ambient light brightness and the second corresponding relationship, and determine the candidate brightness as a third brightness corresponding to the target ambient light brightness.
[0129] Step 805: Based on the third brightness, control the target lighting device to be in a lighting state.
[0130] The target vehicle controls the target lighting device to be lit based on the third brightness, so that the target lighting device is adjusted to the third brightness for lighting.
[0131] In this embodiment, considering that the brightness required to be compensated under different ambient light brightnesses is different, in order to further save power and take into account the lighting needs under different ambient light brightnesses, the present application also proposes determining the third brightness corresponding to the target ambient light brightness according to the second corresponding relationship between the candidate ambient light brightness and the candidate brightness, and lighting the target lighting device based on the third brightness. Thus, the lighting needs under different ambient light brightnesses can be met, and the purpose of saving power can also be achieved.
[0132] Fig. 9 It is a structural schematic diagram of an engine compartment lighting control device provided in an embodiment of the present application.
[0133] For example, Fig. 9 As shown, the device 900 includes:
[0134] A determination module 901 is used for determining, in response to a hood opening instruction, a second hood in a first hood that the hood opening instruction indicates needs to be opened, wherein at least two of the first hoods are deployed on the target vehicle, and each of the first hoods has an independent control switch;
[0135] The determination module 901 is further configured to determine a target lighting device from candidate lighting devices based on the second engine hood when the second engine hood is in an open state and it is detected that the target ambient light brightness is less than a first brightness threshold, at least two candidate lighting devices are deployed in the engine compartment of the target vehicle, and different candidate lighting devices correspond to different first engine hoods;
[0136] The first control module 902 is used to control the target lighting device to be in a lighting state.
[0137] In a possible implementation, the determination module 901 is further used to: determine a first position of the second engine hood relative to the engine compartment; and determine a candidate lighting device located in the engine compartment corresponding to the first position as the target lighting device.
[0138] In one possible implementation, the determination module 901 is also used to: determine the number of candidate lighting devices located at the first position corresponding to the engine compartment; when the number of devices is greater than a number threshold and the target ambient light brightness is detected to be greater than a second brightness threshold, select at least one target lighting device from the candidate devices located at the first position, the second brightness threshold is less than the first brightness threshold, and the number of target lighting devices is less than the number of devices; when the number of devices is greater than the number threshold and the target ambient light brightness is detected to be less than the second brightness threshold, determine all the candidate lighting devices located at the first position as the target lighting devices.
[0139] In one possible implementation, the first control module 902 is further used to: when it is determined that the target lighting device needs to be lit, control the target lighting device to be at a first brightness, where the first brightness is the minimum brightness of the target lighting device; collect an area image within the area where the engine compartment is located, and perform image recognition on the area image to obtain an image recognition result; when the image recognition result indicates that the first brightness does not meet the lighting requirement, control the target lighting device to change from the first brightness to a second brightness, where the second brightness is higher than the first brightness; when the image recognition result indicates that the first brightness meets the lighting requirement, control the target lighting device to continue to be at the first brightness.
[0140] In one possible implementation, the first control module 902 is further used to: obtain the target usage scenario of the engine compartment indicated by the image recognition result; determine the target brightness corresponding to the target usage scenario based on a first correspondence between candidate usage scenarios and candidate brightness; if the target brightness does not match the first brightness, determine that the first brightness does not meet the lighting requirements under the target usage scenario; determine the target brightness as the second brightness, and control the brightness of the target lighting device from the first brightness to the second brightness.
[0141] In one possible implementation, the first control module 902 is also used to: when it is determined that the target lighting device needs to be lit, obtain a second correspondence between the candidate ambient light brightness and the candidate brightness; based on the target ambient light brightness and the second correspondence, determine a third brightness corresponding to the target ambient light brightness; based on the third brightness, control the target lighting device to be in the lit state.
[0142] In one possible implementation, the device also includes: a determination module for determining, in response to the engine hood closing instruction, when the target lighting device is in the lit state, a third engine hood that the engine hood closing instruction indicates needs to be closed; and a second control module for controlling, when the third engine hood is in the closed state, to extinguish the target lighting device located at the engine compartment corresponding to the second position based on the second position of the third engine hood relative to the engine compartment.
[0143] Fig.10 It is a structural schematic diagram of a vehicle provided in an embodiment of the present application.
[0144] For example, Fig.10As shown, the vehicle 1000 includes: a memory 1001 and a processor 1002, wherein the memory 1001 stores an executable program code 1003, and the processor 1002 is used to call and execute the executable program code 1003 to perform an engine compartment lighting control method.
[0145] In addition, an embodiment of the present application also protects a device, which may include a memory and a processor, wherein the memory stores executable program code, and the processor is used to call and execute the executable program code to execute an engine compartment lighting control method provided by an embodiment of the present application.
[0146] In this embodiment, the functional modules of the device can be divided according to the above method example. For example, each functional module can be corresponded, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0147] In the case of dividing each functional module according to each function, the device may also include a first acquisition module, an acquisition module and a first control module, etc. It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, which will not be repeated here.
[0148] It should be understood that the device provided in this embodiment is used to execute the above-mentioned engine compartment lighting control method, and thus can achieve the same effect as the above-mentioned implementation method.
[0149] In the case of an integrated unit, the device may include a processing module and a storage module. When the device is applied to a vehicle, the processing module may be used to control and manage the actions of the vehicle. The storage module may be used to support the vehicle in executing mutual program codes, etc.
[0150] The processing module may be a processor or a controller, which may implement or execute various exemplary logic blocks, modules and circuits disclosed in the present application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module may be a memory.
[0151] In addition, the device provided in the embodiments of the present application may specifically be a chip, a component or a module, and the chip may include a connected processor and a memory; wherein the memory is used to store instructions, and when the processor calls and executes the instructions, the chip can execute an engine compartment lighting control method provided in the above embodiments.
[0152] This embodiment also provides a computer-readable storage medium, in which a computer program code is stored. When the computer program code is executed on a computer, the computer executes the above-mentioned related method steps to implement an engine compartment lighting control method provided in the above embodiment.
[0153] This embodiment also provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the above-mentioned related steps to implement an engine compartment lighting control method provided by the above-mentioned embodiment.
[0154] Among them, the device, computer-readable storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.
[0155] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0156] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0157] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for controlling engine compartment lighting, characterized in that: The method comprises: In response to a hood opening instruction, determining in a first hood a second hood that the hood opening instruction indicates needs to be opened, at least two of the first hoods are deployed on the target vehicle, and each of the first hoods has an independent control switch; When the second engine hood is in an open state and it is detected that the target ambient light brightness is less than a first brightness threshold, a target lighting device is determined from candidate lighting devices based on the second engine hood, at least two of the candidate lighting devices are deployed in the engine compartment of the target vehicle, and different candidate lighting devices correspond to different first engine hoods; The target lighting device is controlled to be in a lighting state.
2. The method according to claim 1, characterized in that The step of determining a target lighting device from candidate lighting devices based on the second engine hood includes: determining a first orientation of the second engine cover relative to the engine compartment; A candidate lighting device located at the engine compartment corresponding to the first position is determined as the target lighting device.
3. The method according to claim 2, characterized in that The step of determining the candidate lighting device located at the engine compartment corresponding to the first position as the target lighting device comprises: Determine the number of candidate lighting devices located in the engine compartment corresponding to the first position; When the number of the devices is greater than the number threshold and it is detected that the target ambient light brightness is greater than a second brightness threshold, selecting at least one target lighting device from the candidate devices located at the first position, the second brightness threshold is less than the first brightness threshold, and the number of the target lighting devices is less than the number of the devices; When the number of the devices is greater than the number threshold and the target ambient light brightness is detected to be less than the second brightness threshold, all the candidate lighting devices located at the first position are determined as the target lighting devices.
4. The method according to any one of claims 1 to 3, characterized in that: The controlling the target lighting device to be in a lighting state comprises: In the case where it is determined that the target lighting device needs to be lit, controlling the target lighting device to be at a first brightness, where the first brightness is the lowest brightness of the target lighting device; Collecting a regional image within the area where the engine compartment is located, and performing image recognition on the regional image to obtain an image recognition result; When the image recognition result indicates that the first brightness does not meet the lighting requirement, controlling the target lighting device to change from the first brightness to a second brightness, where the second brightness is higher than the first brightness; When the image recognition result indicates that the first brightness meets the lighting requirement, the target lighting device is controlled to continue to be at the first brightness.
5. The method according to claim 4, characterized in that When the image recognition result indicates that the first brightness does not meet the lighting requirement, controlling the target lighting device to change from the first brightness to a second brightness includes: Acquire a target usage scenario of the engine compartment indicated by the image recognition result; Determining a target brightness corresponding to the target usage scenario based on a first correspondence between the candidate usage scenarios and the candidate brightnesses; In a case where the target brightness does not match the first brightness, determining that the first brightness does not meet the lighting requirement in the target usage scenario; The target brightness is determined as the second brightness, and the brightness of the target lighting device is controlled to change from the first brightness to the second brightness.
6. The method according to any one of claims 1 to 3, characterized in that: The controlling the target lighting device to be in a lighting state further includes: In the case where it is determined that the target lighting device needs to be lit, obtaining a second corresponding relationship between the candidate ambient light brightness and the candidate brightness; Based on the target ambient light brightness and the second corresponding relationship, determining a third brightness corresponding to the target ambient light brightness; Based on the third brightness, the target lighting device is controlled to be in the lighting state.
7. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: When the target lighting device is in the lighting state, in response to a hood closing instruction, determining that the hood closing instruction indicates a third hood to be closed; When the third engine hood is in the closed state, based on the second position of the third engine hood relative to the engine compartment, the target lighting device located at the engine compartment corresponding to the second position is controlled to be turned off.
8. An engine compartment lighting control device, characterized in that: The device comprises: a determination module, configured to determine, in response to a hood opening instruction, a second hood in a first hood that the hood opening instruction indicates needs to be opened, wherein at least two of the first hoods are deployed on the target vehicle, and each of the first hoods has an independent control switch; The determination module is further configured to determine a target lighting device from candidate lighting devices based on the second engine hood when the second engine hood is in an open state and it is detected that the target ambient light brightness is less than a first brightness threshold, at least two of the candidate lighting devices are deployed in the engine compartment of the target vehicle, and different candidate lighting devices correspond to different first engine hoods; The first control module is used to control the target lighting device to be in a lighting state.
9. A vehicle, characterized in that: The vehicle comprises: A memory for storing executable program codes; A processor, configured to call and run the executable program code from the memory, so that the vehicle executes the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed, the method according to any one of claims 1 to 7 is implemented.