Atmosphere lamp control method and device
Through the camera, the actual color and lighting intensity values of the ambient light are collected, and the target color and lighting intensity values are calculated, which solves the problem of superposition of the ambient light color and interior decoration, and accurately matches the color of the ambient light, improving the user experience.
Patent Information
- Application Number
- CN202411484977.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-23
- Publication Date
- 2024-12-17
AI Technical Summary
After the color of the vehicle's interior ambient light is superimposed with the interior color, the actual color presented is inconsistent with the color selected by the user and cannot be accurately matched.
The actual color and lighting intensity values of the ambient light are collected through the camera, compared with the preset values, calculated the target color and lighting intensity values, and adjusted the atmosphere lights by correcting parameters to match the user's initial selection.
Ensure that the color of the ambient light is consistent with the user's initial choices and improve the user experience.
Smart Images

Figure CN119155869A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicle atmosphere lamps, and in particular to a method and device for controlling an atmosphere lamp. Background Art
[0002] Currently, vehicles are all equipped with ambient lights. When the user selects the color of the ambient light on the display screen, the ambient light inside the vehicle will light up. However, if the vehicle is equipped with an interior, since the interior of the vehicle also has color, the original color of the ambient light and the color of the interior will be superimposed, and the color actually presented to the user will be another color.
[0003] Therefore, there is an urgent need for a method for controlling an ambient light that can make the color presented by the ambient light consistent with the color initially selected by the user. Summary of the invention
[0004] In order to solve the above technical problem or at least partially solve the above technical problem, the present invention provides a method and device for controlling an atmosphere lamp.
[0005] A first aspect of the present invention provides a method for controlling an ambient light, the method comprising:
[0006] The actual color value of the atmosphere light, the first light intensity value and the second light intensity value of the atmosphere light are collected by a camera, and the actual color value of the atmosphere light, the first light intensity value and the second light intensity value are sent to the main controller; wherein the first light intensity value is used to characterize the light intensity value within a first preset range; the first preset range is used to characterize the preset range of the camera; the second light intensity value is used to characterize the light intensity value within a second preset range; the second preset range is used to characterize the preset range of the atmosphere light;
[0007] Comparing the actual color value of the atmosphere light with the preset color value of the atmosphere light based on the main controller, obtaining a first color value difference between the two;
[0008] If the first color value difference is not less than a threshold, the target color value and target light intensity value of the atmosphere light are determined according to the first light intensity value, the second light intensity value, the actual color value of the atmosphere light, and the preset color value of the atmosphere light.
[0009] In one example, determining a target color value and a target light intensity value of the atmosphere light according to the first light intensity value, the second light intensity value, the actual color value of the atmosphere light, and the preset color value of the atmosphere light includes:
[0010] Determining a light intensity value difference according to the first light intensity value and the second light intensity value;
[0011] Determining a first calibration value of the atmosphere light according to an actual color value of the atmosphere light and a preset color value of the atmosphere light;
[0012] A target light intensity value and a target color value of the atmosphere light are determined according to the light intensity value difference and the first calibration value of the atmosphere light.
[0013] In one example, determining a target light intensity value and a target color value of the atmosphere light according to the light intensity value difference and the first calibration value of the atmosphere light includes:
[0014] Comparing the first calibration value of the atmosphere lamp with the preset color value of the atmosphere lamp based on the main controller to obtain a second color value difference;
[0015] If the second color value difference is less than a threshold, sending the first calibration value of the ambient light and the light intensity value difference to a vehicle body controller;
[0016] In the vehicle body controller, a correction parameter is determined according to the light intensity value difference; wherein the correction parameter is used to determine the target light intensity value of the atmosphere light;
[0017] Based on the atmosphere light control module, a target light intensity value and a target color value of the atmosphere light are determined according to the correction parameter and the first calibration value of the atmosphere light.
[0018] In one example, the method further includes:
[0019] If the second color value difference is not less than a threshold, obtaining a second calibration value of the atmosphere light according to the first calibration value of the atmosphere light and a preset color value of the atmosphere light;
[0020] A target color value and a target light intensity value of the atmosphere light are determined according to the light intensity value difference and the second calibration value of the atmosphere light.
[0021] In one example, the method further includes:
[0022] If the first color value difference is less than a threshold, the actual color value of the ambient light is determined to be the target color value of the ambient light, and the second light intensity value is determined to be the target light intensity value of the ambient light.
[0023] In one example, before collecting the actual color value of the ambient light through the camera, the method further includes:
[0024] The color of the atmosphere light is collected through a camera, and the color of the atmosphere light is converted into an actual color value of the atmosphere light.
[0025] In one example, the method further includes:
[0026] In response to a user's touch operation on the display screen, the atmosphere light is controlled; wherein the atmosphere light is displayed as a preset color value.
[0027] A second aspect of the present invention provides a control device for an ambient light, the device comprising:
[0028] The camera is configured to collect the actual color value of the atmosphere light, the first light intensity value and the second light intensity value of the atmosphere light, and send the actual color value of the atmosphere light, the first light intensity value and the second light intensity value to the main controller; wherein the first light intensity value is used to represent the light intensity value within a first preset range; the first preset range is used to represent the preset range of the camera; the second light intensity value is used to represent the light intensity value within a second preset range; the second preset range is used to represent the preset range of the atmosphere light;
[0029] A main controller is configured to compare the actual color value of the atmosphere light with the preset color value of the atmosphere light to obtain a first color value difference between the two;
[0030] The main controller is configured to determine the target color value and target light intensity value of the atmosphere light according to the first light intensity value, the second light intensity value, the actual color value of the atmosphere light, and the preset color value of the atmosphere light if the first color value difference is not less than a threshold value.
[0031] The third aspect of the present invention provides a vehicle, comprising: an ambient light control device and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the ambient light control device, the ambient light control device executes the method described in the first aspect.
[0032] A fourth aspect of the present invention provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the method of the first aspect can be implemented.
[0033] The present invention provides a method and device for controlling an atmosphere light, including: collecting the actual color value of the atmosphere light, a first light intensity value and a second light intensity value of the atmosphere light through a camera, and sending the actual color value of the atmosphere light, the first light intensity value and the second light intensity value to a main controller; wherein the first light intensity value is used to characterize the light intensity value within a first preset range; the first preset range is used to characterize the preset range of the camera; the second light intensity value is used to characterize the light intensity value within a second preset range; the second preset range is used to characterize the preset range of the atmosphere light; based on the main controller, the actual color value of the atmosphere light and the preset color value of the atmosphere light are compared to obtain a first color value difference between the two; if the first color value difference is not less than a threshold value, the target color value and the target light intensity value of the atmosphere light are determined according to the first light intensity value, the second light intensity value, the actual color value of the atmosphere light and the preset color value of the atmosphere light. By adopting this technical solution, the color presented by the atmosphere light can be consistent with the color initially selected by the user. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0035] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0036] Figure 1 It is a flow chart of a method for controlling an atmosphere lamp provided by the present invention;
[0037] Figure 2 It is a flow chart of a method for controlling an atmosphere lamp provided by the present invention;
[0038] Figure 3 It is a curve diagram of the difference between a correction parameter and a light intensity value provided by the present invention;
[0039] Figure 4a It is a structural schematic diagram of a vehicle system provided by the present invention;
[0040] Figure 4b It is a logic schematic diagram of a method for controlling an atmosphere lamp provided by the present invention;
[0041] Figure 5a It is a flow chart of a method for controlling an atmosphere lamp provided by the present invention;
[0042] Figure 5b It is a logic schematic diagram of a method for controlling an atmosphere lamp provided by the present invention;
[0043] Figure 5c This is a schematic diagram of the control principle of an atmosphere lamp provided by the present invention;
[0044] Figure 6 It is a structural schematic diagram of a control device for an atmosphere lamp provided by the present invention;
[0045] Figure 7 It is a structural schematic diagram of a control device for an atmosphere lamp provided by the present invention. DETAILED DESCRIPTION
[0046] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0047] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0048] Figure 1 1 is a flow chart of a method for controlling an atmosphere lamp provided by the present invention, and the method can be performed by an electronic device. The electronic device can be exemplarily understood as a device such as a mobile phone, a tablet computer, a laptop computer, a desktop computer, a smart TV, etc. Figure 1 As shown, the method provided in this embodiment includes the following steps:
[0049] S101. Collect the actual color value, first light intensity value and second light intensity value of the atmosphere light through a camera, and send the actual color value, first light intensity value and second light intensity value of the atmosphere light to a main controller; wherein the first light intensity value is used to characterize the light intensity value within a first preset range; the first preset range is used to characterize the preset range of the camera; the second light intensity value is used to characterize the light intensity value within a second preset range; the second preset range is used to characterize the preset range of the atmosphere light.
[0050] In one example, the method further includes:
[0051] In response to a user's touch operation on the display screen, the ambient light is controlled; wherein the ambient light is displayed as a preset color value.
[0052] In one example, the touch operation can be a click operation or a selection operation. Specifically, the display screen can display a color list, and the user selects a color by clicking on the color list. For example, the color selected by the user is green. Then the main controller sends the color selected by the user to the body controller, and the body controller sends the color selected by the user to the atmosphere light control module. The atmosphere light control module controls the atmosphere light to display a preset color value. Here, the preset color value is R0, and the corresponding RGB value is (a0, b0, c0). Among them, the main controller is the entertainment display host (Display head unit, referred to as DHU).
[0053] In one example, before collecting the actual color value of the ambient light through the camera, the following is also included:
[0054] The color of the ambient light is collected through the camera and converted into the actual color value of the ambient light.
[0055] In one example, the color of the ambient light at the interior position is captured by a camera. For example, the color of the ambient light may be green at this time, and then the green color is converted into the actual color value of the ambient light, that is, the RGB value.
[0056] In one example, the camera is installed at the rearview mirror position. After the ambient light emits color, the camera can collect the actual color value of the ambient light. The actual color value of the ambient light refers to the RGB value. For a clearer explanation, the actual color value of the ambient light is recorded as R1, and the corresponding RGB value is (a1, b1, c1). The first light intensity value is the natural light intensity value, recorded as L1, and the second light intensity value is the reflected ambient light intensity value, recorded as L2.
[0057] In this embodiment, the first preset range may be a 25CM range centered on the camera, and the second preset range may be a 5CM range centered on the ambient light. Specifically, the ambient light refers to the ambient light of the interior.
[0058] In one example, after the camera acquires R1, L1, and L2, R1, L1, and L2 are sent to the main controller.
[0059] S102: Based on the main controller, the actual color value of the ambient light is compared with the preset color value of the ambient light to obtain a first color value difference between the two.
[0060] In one example, after receiving R1, the main controller compares the difference between R1 and R0, and the difference is a first color value difference. For a clearer description, the first color value difference is recorded as F1.
[0061] Specifically, the first color value difference F1 can be determined by the following formula:
[0062]
[0063] Among them, the actual color value of the ambient light is R1 (a1, b1, c1), and the preset color value of the ambient light is R0 (a0, b0, c0).
[0064] S103: If the first color value difference is not less than the threshold, determine the target color value and target light intensity value of the atmosphere light according to the first light intensity value, the second light intensity value, the actual color value of the atmosphere light, and the preset color value of the atmosphere light.
[0065] In one example, the threshold is a preset value. For a clearer explanation, the threshold can be recorded as N. If F1 is greater than or equal to the threshold, it means that the actual color value of the ambient light and the preset color value of the ambient light are quite different. Then, the target color value and the target light intensity value of the ambient light can be determined according to the first light intensity value, the second light intensity value, the actual color value of the ambient light, and the preset color value of the ambient light. Among them, the target color value of the ambient light is the final color value of the ambient light, and the target light intensity value is the final light intensity value of the ambient light.
[0066] It is worth noting that if an ambient light is arranged at the junction of interior colors, since the area of the junction is relatively small, generally just a line, the impact is not significant, and this embodiment can still be used in this case.
[0067] The present invention provides a method for controlling an atmosphere light, including: collecting the actual color value of the atmosphere light, a first light intensity value, and a second light intensity value of the atmosphere light through a camera, and sending the actual color value of the atmosphere light, the first light intensity value, and the second light intensity value to a main controller; wherein the first light intensity value is used to characterize the light intensity value within a first preset range; the first preset range is used to characterize the preset range of the camera; the second light intensity value is used to characterize the light intensity value within the second preset range; the second preset range is used to characterize the preset range of the atmosphere light; based on the main controller, the actual color value of the atmosphere light and the preset color value of the atmosphere light are compared to obtain a first color value difference between the two; if the first color value difference is not less than a threshold value, the target color value and the target light intensity value of the atmosphere light are determined according to the first light intensity value, the second light intensity value, the actual color value of the atmosphere light, and the preset color value of the atmosphere light. By adopting this technical solution, the color presented by the atmosphere light can be consistent with the color initially selected by the user.
[0068] Figure 2 The flowchart of a method for controlling an atmosphere lamp provided by the present invention is shown. The present invention is optimized on the basis of the above embodiments, and the present invention can be combined with various optional solutions in one or more of the above embodiments.
[0069] like Figure 2 As shown, the control method of the atmosphere lamp may include the following steps:
[0070] S201. Collect the actual color value, first light intensity value and second light intensity value of the atmosphere light through the camera, and send the actual color value, first light intensity value and second light intensity value of the atmosphere light to the main controller; wherein the first light intensity value is used to represent the light intensity value within a first preset range; the first preset range is used to represent the preset range of the camera; the second light intensity value is used to represent the light intensity value within a second preset range; the second preset range is used to represent the preset range of the atmosphere light.
[0071] In an example, this step may refer to step S101.
[0072] S202: Based on the main controller, the actual color value of the ambient light is compared with the preset color value of the ambient light to obtain a first color value difference between the two.
[0073] In an example, this step may refer to step S102.
[0074] S203: If the first color value difference is not less than the threshold, determine the light intensity value difference according to the first light intensity value and the second light intensity value.
[0075] In an example, the light intensity value difference is L3, where L3=L2-L1; wherein the first light intensity value is L1, and the second light intensity value is L2.
[0076] S204: Determine a first calibration value of the atmosphere light according to the actual color value of the atmosphere light and the preset color value of the atmosphere light.
[0077] In one example, for a clearer description, the first calibration value of the ambient light may be recorded as R3, and the RGB value of R3 may be determined by the following formula:
[0078]
[0079] Among them, the actual color value of the ambient light is R1 (a1, b1, c1), and the preset color value of the ambient light is R0 (a0, b0, c0).
[0080] S205: Determine a target light intensity value and a target color value of the atmosphere light according to the light intensity value difference and a first calibration value of the atmosphere light.
[0081] In one example, determining a target light intensity value and a target color value of the ambient light according to the light intensity value difference and the first calibration value of the ambient light includes:
[0082] The main controller compares the first calibration value of the ambient light with the preset color value of the ambient light to obtain a second color value difference;
[0083] If the second color value difference is less than the threshold, sending the first calibration value of the ambient light and the light intensity value difference to the vehicle body controller;
[0084] In the vehicle body controller, a correction parameter is determined according to the difference in the light intensity value; wherein the correction parameter is used to determine the target light intensity value of the ambient light;
[0085] Based on the ambient light control module, a target light intensity value and a target color value of the ambient light are determined according to the correction parameter and the first calibration value of the ambient light.
[0086] In one example, for a clearer description, the second color value difference may be denoted as F2, wherein the second color value difference F2 may be determined by the following formula:
[0087]
[0088] The preset color value of the ambient light is R0 (a0, b0, c0), and the first calibration value of the ambient light is R3 (d0, d1, d2).
[0089] Specifically, F2 is compared with a threshold value N. If F2 is less than N, the first calibration value of the ambient light is R3 and the light intensity value difference L3 is sent to a body control module (BGM for short).
[0090] In this embodiment, the correction parameter may be α, where α is related to the light intensity difference L3. Figure 3 A curve diagram showing a correction parameter and a light intensity value difference.
[0091] In this embodiment, after obtaining the correction parameter α and the first calibration value R3 of the ambient light from the vehicle body controller, the ambient light control module (AMBIENCE LIGHTS Module, ALM) re-determines the target color value and the target light intensity value of the ambient light.
[0092] Optionally, the body controller may also send the correction parameter α and the first calibration value R3 of the ambient light to the interior lighting control module (ILCM) first, and then the interior lighting control module sends the correction parameter α and the first calibration value R3 of the ambient light to the ambient light control module.
[0093] To implement this embodiment, the vehicle system 40 includes the following structures: a camera 401, a main controller 402, a body controller 403, an interior light control module 404, and an ambient light control module 405. Figure 4a A schematic structural diagram of a vehicle system is shown.
[0094] In one example, the method further includes:
[0095] If the second color value difference is not less than the threshold, obtaining a second calibration value of the atmosphere light according to the first calibration value of the atmosphere light and the preset color value of the atmosphere light;
[0096] According to the light intensity value difference and the second calibration value of the ambient light, a target color value and a target light intensity value of the ambient light are determined.
[0097] In one example, if the second color value difference F2 is not less than N, it means that the first calibration value R3 (d0, d1, d2) of the ambient light and the preset color value R0 (a0, b0, c0) of the ambient light are significantly different, and the calibration value needs to be adjusted again. Therefore, the second calibration value R4 (d4, d5, d6) of the ambient light needs to be determined.
[0098] Specifically, the second calibration value R4 of the ambient light can be determined by the following formula:
[0099]
[0100] The preset color value of the ambient light is R0 (a0, b0, c0), and the first calibration value of the ambient light is R3 (d0, d1, d2).
[0101] In one example, the target color value and the target light intensity value of the ambient light are determined according to the light intensity value difference and the second calibration value of the ambient light, which is similar to the description of step S205 and will not be repeated here.
[0102] S206: If the first color value difference is less than the threshold, determine the actual color value of the ambient light as the target color value of the ambient light and determine the second light intensity value as the target light intensity value of the ambient light.
[0103] In one example, if the first color value difference F1 is less than the threshold N, it means that the actual color value R1 of the atmosphere light and the preset color value R0 of the atmosphere light are not much different. Then, the actual color value R1 of the atmosphere light can be used as the target color value of the atmosphere light, and the second light intensity value L2 can be determined as the target light intensity value of the atmosphere light.
[0104] For a clearer explanation, see Figure 4b A logic schematic diagram of a method for controlling an atmosphere lamp is shown.
[0105] The present invention provides a method for controlling an atmosphere light, comprising: comparing the actual color value of the atmosphere light with the preset color value of the atmosphere light based on a main controller to obtain a first color value difference between the two. If the first color value difference is not less than a threshold value, determining the light intensity value difference according to the first light intensity value and the second light intensity value. Determining a first calibration value of the atmosphere light according to the actual color value of the atmosphere light and the preset color value of the atmosphere light. Determining a target light intensity value and a target color value of the atmosphere light according to the light intensity value difference and the first calibration value of the atmosphere light. By adopting this technical solution, the atmosphere light can accurately display the preset color value, thereby improving the user experience.
[0106] Figure 5a The flowchart of a method for controlling an ambient light provided by the present invention is shown. This embodiment is applicable to vehicles without cameras.
[0107] like Figure 5a As shown, the control method of the atmosphere lamp may include the following steps:
[0108] S501, obtaining material information of the vehicle through a vehicle body controller; wherein the material information of the vehicle includes color information of the interior decoration;
[0109] S502, parsing the material information of the vehicle based on the body controller to obtain the color information of the interior decoration, and storing the color information of the interior decoration in the body controller;
[0110] S503, in response to the user's touch operation on the display screen, determining the color of the selected ambient light according to the touch operation, and sending the color of the ambient light to the vehicle body controller through the main controller;
[0111] S504: Determine a target color value of the ambient light based on the body controller according to the calibrated color value and the color of the ambient light.
[0112] In one example, the calibration color value is determined by the following process: first determining the color type of the ambient light in the vehicle, and then determining the color type of the vehicle interior. The calibration color value is the product of the color type of the ambient light and the color type of the vehicle interior.
[0113] In one example, the RGB value of the same ambient light is different under different interior conditions.
[0114] For a clearer explanation, see Figure 5b A logic diagram of a method for controlling an atmosphere lamp is shown and Figure 5c A schematic diagram of the control principle of an atmosphere lamp is shown.
[0115] The present invention provides a method for controlling an atmosphere light, comprising: obtaining material information of a vehicle through a body controller; wherein the material information of the vehicle includes color information of the interior, parsing the material information of the vehicle based on the body controller to obtain color information of the interior, and storing the color information of the interior in the body controller, responding to a user's touch operation on a display screen, determining the color of the selected atmosphere light according to the touch operation, sending the color of the atmosphere light to the body controller through a main controller, and determining the target color value of the atmosphere light based on the body controller according to the calibrated color value and the color of the atmosphere light. By adopting this technical solution, the color presented by the atmosphere light can be consistent with the color initially selected by the user without a camera.
[0116] Figure 6 is a schematic diagram of the structure of a control device for an atmosphere light provided by the present invention, and the control device for the atmosphere light can be understood as a vehicle or a part of a functional module in the vehicle. Figure 6 As shown, the control device 60 of the atmosphere lamp includes:
[0117] Camera 601 is configured to collect the actual color value of the atmosphere light, the first light intensity value and the second light intensity value of the atmosphere light, and send the actual color value of the atmosphere light, the first light intensity value and the second light intensity value to the main controller; wherein the first light intensity value is used to represent the light intensity value within a first preset range; the first preset range is used to represent the preset range of the camera; the second light intensity value is used to represent the light intensity value within a second preset range; the second preset range is used to represent the preset range of the atmosphere light.
[0118] The main controller 602 is configured to compare the actual color value of the ambient light with the preset color value of the ambient light to obtain a first color value difference between the two.
[0119] The main controller 602 is configured to determine the target color value and target light intensity value of the atmosphere light according to the first light intensity value, the second light intensity value, the actual color value of the atmosphere light, and the preset color value of the atmosphere light if the first color value difference is not less than the threshold.
[0120] In one example, the main controller 602 is configured to:
[0121] Determine a light intensity value difference according to the first light intensity value and the second light intensity value;
[0122] Determining a first calibration value of the ambient light according to an actual color value of the ambient light and a preset color value of the ambient light;
[0123] According to the light intensity value difference and the first calibration value of the ambient light, a target light intensity value and a target color value of the ambient light are determined.
[0124] In one example, the main controller 602 is configured to:
[0125] The main controller compares the first calibration value of the ambient light with the preset color value of the ambient light to obtain a second color value difference;
[0126] If the second color value difference is less than the threshold, sending the first calibration value of the ambient light and the light intensity value difference to the vehicle body controller;
[0127] In the vehicle body controller, a correction parameter is determined according to the difference in the light intensity value; wherein the correction parameter is used to determine the target light intensity value of the ambient light;
[0128] Based on the ambient light control module, a target light intensity value and a target color value of the ambient light are determined according to the correction parameter and the first calibration value of the ambient light.
[0129] In one example, the main controller 602 is configured to: if the second color value difference is not less than a threshold, obtain a second calibration value of the atmosphere light according to the first calibration value of the atmosphere light and a preset color value of the atmosphere light;
[0130] According to the light intensity value difference and the second calibration value of the ambient light, a target color value and a target light intensity value of the ambient light are determined.
[0131] In one example, the main controller 602 is configured to: if the first color value difference is less than a threshold, determine the actual color value of the ambient light as the target color value of the ambient light and determine the second light intensity value as the target light intensity value of the ambient light.
[0132] In one example, the camera 601 is configured to collect the color of the ambient light and convert the color of the ambient light into an actual color value of the ambient light.
[0133] In one example, the main controller 602 is configured to: control the ambient light in response to a user's touch operation on the display screen; wherein the ambient light is displayed as a preset color value.
[0134] The device provided in this embodiment can execute the method of any of the above embodiments, and its execution method and beneficial effects are similar, which will not be repeated here.
[0135] Figure 7 is a schematic diagram of the structure of a control device for an atmosphere light provided by the present invention, and the control device for the atmosphere light can be understood as a vehicle or a part of a functional module in the vehicle. Figure 7 As shown, the control device 70 of the atmosphere lamp includes:
[0136] The vehicle body controller 701 is configured to: obtain the material information of the vehicle; wherein the material information of the vehicle includes the color information of the interior decoration;
[0137] The body controller 701 is configured to: parse the material information of the vehicle, obtain the color information of the interior, and store the color information of the interior in the body controller;
[0138] The main controller 602 is configured to: respond to a user's touch operation on the display screen, determine the color of the selected ambient light according to the touch operation, and send the color of the ambient light to the body controller through the main controller;
[0139] The body controller 701 is configured to determine a target color value of the ambient light according to the calibrated color value and the color of the ambient light.
[0140] The device provided in this embodiment can execute the method of any of the above embodiments, and its execution method and beneficial effects are similar, which will not be repeated here.
[0141] The present invention provides a vehicle, comprising: an ambient light control device and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the ambient light control device, the ambient light control device executes a method.
[0142] The present invention provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the above method can be implemented.
[0143] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0144] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0145] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the vehicle, the vehicle: collects the actual color value of the ambient light, the first light intensity value and the second light intensity value of the ambient light through a camera, and sends the actual color value of the ambient light, the first light intensity value and the second light intensity value to the main controller; wherein the first light intensity value is used to characterize the light intensity value within a first preset range; the first preset range is used to characterize the preset range of the camera; the second light intensity value is used to characterize the light intensity value within the second preset range; the second preset range is used to characterize the preset range of the ambient light; based on the main controller, the actual color value of the ambient light and the preset color value of the ambient light are compared to obtain a first color value difference between the two; if the first color value difference is not less than a threshold value, the target color value and target light intensity value of the ambient light are determined according to the first light intensity value, the second light intensity value, the actual color value of the ambient light and the preset color value of the ambient light.
[0146] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0147] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0148] The units described in the present invention may be implemented by software or hardware, wherein the name of a unit does not limit the unit itself in some cases.
[0149] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0150] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0151] The present invention also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the method of any of the above embodiments can be implemented. The execution method and beneficial effects are similar and will not be repeated here.
[0152] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0153] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for controlling an atmosphere lamp, It is characterized in that include: The actual color value of the atmosphere light, the first light intensity value and the second light intensity value of the atmosphere light are collected by a camera, and the actual color value of the atmosphere light, the first light intensity value and the second light intensity value are sent to the main controller; wherein the first light intensity value is used to characterize the light intensity value within a first preset range; the first preset range is used to characterize the preset range of the camera; the second light intensity value is used to characterize the light intensity value within a second preset range; the second preset range is used to characterize the preset range of the atmosphere light; Comparing the actual color value of the atmosphere light with the preset color value of the atmosphere light based on the main controller, obtaining a first color value difference between the two; If the first color value difference is not less than a threshold, the target color value and target light intensity value of the atmosphere light are determined according to the first light intensity value, the second light intensity value, the actual color value of the atmosphere light, and the preset color value of the atmosphere light.
2. The method according to claim 1, It is characterized in that The determining a target color value and a target light intensity value of the atmosphere light according to the first light intensity value, the second light intensity value, the actual color value of the atmosphere light, and the preset color value of the atmosphere light includes: Determining a light intensity value difference according to the first light intensity value and the second light intensity value; Determining a first calibration value of the atmosphere light according to an actual color value of the atmosphere light and a preset color value of the atmosphere light; A target light intensity value and a target color value of the atmosphere light are determined according to the light intensity value difference and the first calibration value of the atmosphere light.
3. The method according to claim 2, It is characterized in that Determining a target light intensity value and a target color value of the atmosphere light according to the light intensity value difference and the first calibration value of the atmosphere light includes: Comparing the first calibration value of the atmosphere lamp with the preset color value of the atmosphere lamp based on the main controller to obtain a second color value difference; If the second color value difference is less than a threshold, sending the first calibration value of the ambient light and the light intensity value difference to a vehicle body controller; In the vehicle body controller, a correction parameter is determined according to the light intensity value difference; wherein the correction parameter is used to determine the target light intensity value of the atmosphere light; Based on the atmosphere light control module, a target light intensity value and a target color value of the atmosphere light are determined according to the correction parameter and the first calibration value of the atmosphere light.
4. The method according to claim 3, It is characterized in that The method further comprises: If the second color value difference is not less than a threshold, obtaining a second calibration value of the atmosphere light according to the first calibration value of the atmosphere light and a preset color value of the atmosphere light; A target color value and a target light intensity value of the atmosphere light are determined according to the light intensity value difference and the second calibration value of the atmosphere light.
5. The method according to claim 1, It is characterized in that The method further comprises: If the first color value difference is less than a threshold, the actual color value of the ambient light is determined to be the target color value of the ambient light, and the second light intensity value is determined to be the target light intensity value of the ambient light.
6. The method according to claim 1, It is characterized in that Before collecting the actual color value of the ambient light through the camera, the method further includes: The color of the atmosphere light is collected through a camera, and the color of the atmosphere light is converted into an actual color value of the atmosphere light.
7. The method according to any one of claims 1 to 6, It is characterized in that The method further comprises: In response to a user's touch operation on the display screen, the atmosphere light is controlled; wherein the atmosphere light is displayed as a preset color value.
8. A control device for an atmosphere light, It is characterized in that include: The camera is configured to collect the actual color value of the atmosphere light, the first light intensity value and the second light intensity value of the atmosphere light, and send the actual color value of the atmosphere light, the first light intensity value and the second light intensity value to the main controller; wherein the first light intensity value is used to represent the light intensity value within a first preset range; the first preset range is used to represent the preset range of the camera; the second light intensity value is used to represent the light intensity value within a second preset range; the second preset range is used to represent the preset range of the atmosphere light; A main controller is configured to compare the actual color value of the atmosphere light with the preset color value of the atmosphere light to obtain a first color value difference between the two; The main controller is configured to determine the target color value and target light intensity value of the atmosphere light according to the first light intensity value, the second light intensity value, the actual color value of the atmosphere light, and the preset color value of the atmosphere light if the first color value difference is not less than a threshold value.
9. A vehicle, It is characterized in that include: A control device for an atmosphere light and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the control device for the atmosphere light, the control device for the atmosphere light executes the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, It is characterized in that The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
