Light control method and device, vehicle, electronic equipment and storage medium
By obtaining vehicle interior color information and matching with the preset color value database, the lighting color of the ambient light is controlled, and the color deviation of the vehicle in-car ambient light color on the vehicle interior surface is solved, achieving a more consistent color display effect.
Patent Information
- Application Number
- CN202311790113.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-22
- Publication Date
- 2025-06-24
AI Technical Summary
In the prior art, the color of the vehicle ambient light will have a color deviation on the vehicle interior surface, mainly due to the different colors of the vehicle interior.
By obtaining the interior color information of the vehicle and calibrating it with the matching colors in the preset color value database, the target color value is obtained, thereby controlling the lighting color of the atmosphere light.
It effectively reduces the color deviation of the ambient light color on the vehicle interior surface due to the vehicle interior color, and improves the display consistency of the ambient light color.
Smart Images

Figure CN120201616A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of lighting processing, and in particular, to a method and device for lighting control, a vehicle, an electronic device, and a storage medium. Background Art
[0002] Ambient lights are generally arranged on the inner side of the vehicle door panel and on both sides of the seat. The vehicle interior often has different color configurations, such as black, white, brown, etc. When the light shines on the leather surface of the vehicle interior, the surface of the vehicle interior will absorb part of the light of the ambient light. This is because the surface of an object is composed of molecules and atoms, and the energy of the light will be absorbed by the molecules and atoms on the surface of the object. The degree of light absorption depends on the color and material of the interior.
[0003] Therefore, in the prior art, when the user uses the ambient light, there is a deviation between the color seen by the human eye and the color set on the large screen for the color of the ambient light. Moreover, when the ambient light shines on the surfaces of vehicle interiors of different colors, the colors seen by the human eye are different. Therefore, how to reduce the color deviation of the in-vehicle ambient light on the surface of the vehicle interior due to the color of the vehicle interior is an urgent problem to be solved at present. Summary of the Invention
[0004] The present disclosure provides a method and device for lighting control, a vehicle, an electronic device, and a storage medium. Its main purpose is to solve the problem of color deviation of the in-vehicle ambient light on the surface of the vehicle interior due to the color of the vehicle interior.
[0005] According to a first aspect of the present disclosure, a method for lighting control is provided, which includes:
[0006] In response to an opening instruction of a preset ambient light, obtain the interior color information of the vehicle, where the opening instruction includes the color information of the preset ambient light input by the user;
[0007] Match according to the interior color information and the color information from a preset color value database to obtain a corresponding target color value. The preset color value database contains the preset color values obtained after color calibration of the interior color information with any one of a preset number of colors respectively;
[0008] Control the light color of the preset ambient light according to the target color value.
[0009] Optionally, before matching according to the interior color information and the color information from a preset color value database to obtain a corresponding target color value, the method further includes:
[0010] Obtain the interior color information from a preset configuration information library;
[0011] Obtain the preset quantity of preset color information;
[0012] Through a preset color calibration algorithm, respectively perform color calibration on the interior color information and the preset quantity of the preset color information to obtain the corresponding preset color values;
[0013] Construct a preset color value database according to the preset quantity of the preset color values.
[0014] Optionally, the controlling the light color of the preset atmosphere light according to the target color value includes:
[0015] Generate a target drive current corresponding to each color channel according to the target color value, and the target color value contains the color value corresponding to the color channel;
[0016] Drive the preset lamp beads corresponding to each color channel in the preset atmosphere light through the target drive current to control the light color of the preset atmosphere light.
[0017] Optionally, the matching the corresponding target color value from the preset color value database according to the interior color information and the color information includes:
[0018] Match the color information with the preset color information;
[0019] When the preset color information identical to the color information is matched, obtain the preset color table value corresponding to the preset color information as the target color value.
[0020] Optionally, after obtaining the interior color information of the vehicle in response to the opening instruction of the preset atmosphere light, it includes:
[0021] Obtain the interior color information of the vehicle through a preset host unit in the vehicle, and send the interior color information and the color information to a preset lamp head module in the vehicle according to a preset communication protocol;
[0022] Through a preset microcontroller in the preset lamp head module, match the corresponding target color value from the preset color value database according to the interior color information and the color information;
[0023] Control the light color of the preset atmosphere light according to the target color value through a preset pulse width modulation controller in the preset lamp head module.
[0024] Optionally, before obtaining the interior color information from the preset configuration information library, it further includes:
[0025] In response to the update instruction of the preset configuration information library, obtain the interior color information for update, and update the interior color information in the preset configuration information library according to the interior color information for update.
[0026] According to a second aspect of the present disclosure, there is provided a lighting control device, including:
[0027] A first acquisition unit, configured to obtain the interior color information of the vehicle in response to the opening instruction of the preset ambient light, wherein the opening instruction includes the color information of the preset ambient light input by the user;
[0028] A matching unit, configured to perform matching from a preset color value database according to the interior color information and the color information to obtain a corresponding target color value, where the preset color value database includes the preset color values obtained after color calibration of the interior color information with any one of a preset number of colors respectively;
[0029] A control unit, configured to control the lighting color of the preset ambient light according to the target color value.
[0030] Optionally, the device further includes:
[0031] A second acquisition unit, configured to obtain the interior color information from a preset configuration information library;
[0032] The second acquisition unit is further configured to obtain the preset color information of the preset number;
[0033] A calibration unit, configured to perform color calibration on the interior color information and the preset color information of the preset number respectively through a preset color calibration algorithm to obtain the corresponding preset color values;
[0034] A construction unit, configured to construct the preset color value database according to the preset color values of the preset number.
[0035] Optionally, the control unit includes:
[0036] A generation module, configured to generate a target drive current corresponding to each color channel according to the target color value, where the target color value includes the color value corresponding to the color channel;
[0037] A drive module, configured to drive the preset lamp beads corresponding to each color channel in the preset ambient light through the target drive current to control the lighting color of the preset ambient light.
[0038] Optionally, the matching unit includes:
[0039] A matching module, configured to match the color information with the preset color information;
[0040] An acquisition module, configured to obtain the preset color table value corresponding to the preset color information as the target color value when the preset color information identical to the color information is matched.
[0041] Optionally, the first acquisition unit is further configured to obtain the interior color information of the vehicle through a preset host unit in the vehicle, and send the interior color information and the color information to a preset lamp head module in the vehicle according to a preset communication protocol.
[0042] The matching unit is further configured to perform matching from a preset color value database according to the interior color information and the color information through a preset microcontroller in the preset lamp head module to obtain a corresponding target color value.
[0043] The control unit is further configured to control the light color of the preset ambient light according to the target color value through a preset pulse width modulation controller in the preset lamp head module.
[0044] Optionally, the device further includes:
[0045] An update unit, configured to obtain updated interior color information in response to an update instruction of the preset configuration information library, and update the interior color information in the preset configuration information library according to the updated interior color information.
[0046] According to a third aspect of the present disclosure, a vehicle is provided, wherein the vehicle includes the device for lighting control as described in the second aspect of the present disclosure.
[0047] According to a fourth aspect of the present disclosure, an electronic device is provided, including:
[0048] At least one processor; and
[0049] A memory communicatively connected to the at least one processor; wherein,
[0050] The memory stores instructions executable by the at least one processor, and when the instructions are executed by the at least one processor, the at least one processor is enabled to execute the method described in the foregoing first aspect.
[0051] According to a fifth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the method described in the foregoing first aspect.
[0052] According to a sixth aspect of the present disclosure, there is provided a computer program product including a computer program which, when executed by a processor, implements the method as described in the foregoing first aspect.
[0053] The method, device, vehicle, electronic device, and storage medium for lighting control provided by the present disclosure, in response to an opening instruction of a preset ambient light, obtain interior color information of the vehicle, where the opening instruction includes color information of the preset ambient light input by a user; match according to the interior color information and the color information from a preset color value database to obtain a corresponding target color value, and the preset color value database includes the preset number of preset color values obtained after color calibration of the interior color information with any one of a preset number of colors; control the lighting color of the preset ambient light according to the target color value. Compared with the related art, in the embodiment of the present disclosure, by matching the corresponding target color value from the preset number of preset color values obtained after color calibration of the interior color information with any one of a preset number of colors to control the lighting color of the preset ambient light, the color deviation of the in-vehicle ambient light color on the vehicle interior surface caused by the vehicle interior color can be reduced.
[0054] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present application, nor is it used to limit the scope of the present application. Other features of the present application will become easily understandable through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] The drawings are used to better understand the solution and do not constitute a limitation to the present disclosure. Among them:
[0056] Figure 1 is a flowchart of a method for lighting control provided by an embodiment of the present disclosure;
[0057] Figure 2 is a flowchart of a method for constructing a preset color value database provided by an embodiment of the present disclosure;
[0058] Figure 3 is a flowchart of a method for controlling the lighting color of a preset ambient light provided by an embodiment of the present disclosure;
[0059] Figure 4 is a schematic structural diagram of a device for lighting control provided by an embodiment of the present disclosure;
[0060] Figure 5 is a schematic structural diagram of another device for lighting control provided by an embodiment of the present disclosure;
[0061] Figure 6 is a schematic block diagram of an electronic device provided by an embodiment of the present disclosure. Detailed Implementation Manner
[0062] The following describes exemplary embodiments of the present disclosure with reference to the accompanying drawings. Various details of the embodiments of the present disclosure are included to facilitate understanding, and they should be considered merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0063] The method and device for lighting control, vehicle, electronic device, and storage medium according to embodiments of the present disclosure will be described below with reference to the accompanying drawings.
[0064] Figure 1 It is a flowchart of a method for lighting control provided by an embodiment of the present disclosure.
[0065] As Figure 1 shown, the method includes the following steps:
[0066] Step 101, in response to an opening instruction of a preset ambient light, obtain the interior color information of the vehicle, where the opening instruction includes the color information of the preset ambient light input by the user.
[0067] In the embodiments of the present disclosure, the ways to obtain the interior color information of the vehicle include but are not limited to: the user manually inputs through the vehicle-mounted computer, the host unit automatically obtains the interior color information from the vehicle configuration information database, automatically obtains the interior color information through an imaging device, etc. Specifically, the embodiments of the present disclosure do not limit the ways to obtain the interior color information of the vehicle.
[0068] Among them, the opening instruction of the preset ambient light refers to an instruction customarily selected by the user to turn on the preset ambient light. For example: the preset ambient light emits red light, the preset ambient light emits blue light, etc. The color information of the preset ambient light refers to the light color that the preset ambient light needs to emit. For example: red, blue, etc. Specifically, the embodiments of the present disclosure do not limit this.
[0069] Step 102, match according to the interior color information and the color information from a preset color value database to obtain a corresponding target color value. The preset color value database contains the preset color values obtained after color calibration of the interior color information with any of a preset number of colors respectively.
[0070] In the embodiments of the present disclosure, the preset color value database is a pre-set database. Among them, the preset color value is the color table value after color calibration of the interior color information and any color. Color calibration generally refers to mixing one color with another color to achieve a specific color effect. The preset color value database contains multiple preset color values. Since the interior color information is fixed, only by matching the preset color value corresponding to the color identical to the color information in the preset color value database can the target color value be obtained.
[0071] It should be noted here that the color value is a color mode based on color channels. Various colors can be generated through the combination of different channels. For example: RGB color values, etc. Some common RGB colors: light pink: #FFB6C1, 255, 182, 193; pink: #FFC0CB, 255, 192, 203; scarlet / crimson: #DC143C, 220, 20, 60; lavender: #FFF0F5, 255, 240, 245; pale violet red: #DB7093, 219, 112, 147; hot pink: #FF69B4, 255, 105, 180, etc. Specifically, the present disclosure embodiments do not limit the color values and the colors corresponding to the color values.
[0072] Step 103, control the light color of the preset atmosphere lamp according to the target color value.
[0073] In the embodiments of the present disclosure, since the color of the preset atmosphere lamp seen by the human eye is the effect of mixing the three primary colors R, G, and B, that is, the target color value controls the final light color through the color values of the color channels. It is necessary to convert the color channels corresponding to the target color value into the target drive current to drive the lamp beads in the preset atmosphere lamp to control the light color. For example: for the three color channels R, B, and G of the RGB color value, convert the color values of the three color channels R, B, and G into the target drive current respectively, and drive the lamp beads corresponding to the three channels R, G, and B in the preset atmosphere lamp through PWM to control the light color of the preset atmosphere lamp.
[0074] Regarding the control of the color by the target color value, for example: for the three color channels R, B, and G, the color value of the color channel R is 255, the color value of the color channel B is 192, and the color value of the color channel G is 203, then the final color obtained is pink.
[0075] The method for lighting control provided by the present disclosure obtains the interior color information of a vehicle in response to an activation instruction for a preset ambient light, where the activation instruction includes the color information of the preset ambient light input by a user; matches a corresponding target color value from a preset color value database according to the interior color information and the color information, and the preset color value database contains the preset color values obtained after color calibration of the interior color information with any one of a preset number of colors; controls the lighting color of the preset ambient light according to the target color value. Compared with the related art, in the embodiment of the present disclosure, by matching the corresponding target color value from the preset color values obtained after color calibration of the interior color information with any one of a preset number of colors to control the lighting color of the preset ambient light, the color deviation of the in-vehicle ambient light on the vehicle interior surface caused by the vehicle interior color can be reduced.
[0076] In an implementable manner of the embodiment of the present disclosure, it is necessary to pre-calibrate any one of a preset number of colors with the interior color in advance to determine the corresponding preset color values for different colors, construct a preset color value database, and then match the corresponding color values from the preset color value database to control the lighting color of the preset ambient light. Due to the corresponding relationship between the interior color and the color value, the color of the light irradiated on the interior surface has a small deviation from the in-vehicle ambient light color. Therefore, in order to solve the difference in the color effect of the preset ambient light caused by different interior colors, the present disclosure provides a flow schematic diagram of a method for constructing a preset color value database, as Figure 2 shown:
[0077] Step 201, obtain the interior color information from a preset configuration information database.
[0078] In the embodiment of the present disclosure, the preset configuration information database is the configuration information database of the vehicle, which includes but is not limited to: manufacturer information: including the name, brand, contact information, etc. of the vehicle manufacturer; vehicle identity information: vehicle identification number (VIN), which is the unique identifier of the vehicle and can be used to trace the source, historical records, etc. of the vehicle; vehicle performance parameters: including maximum power, number of engine cylinders, fuel type, fuel grade, etc.; body configuration: such as the number of doors, number of seats, vehicle configuration type, etc.; comfort configuration: such as air conditioning system, audio system, seat material, etc.; appearance configuration: such as wheel size, tire specification, interior color, etc.
[0079] The vehicle host unit (Head Unit, HU) can directly query the preset configuration information database to obtain the interior color information.
[0080] Step 202, obtain the preset color information of the preset number.
[0081] In the embodiments of the present disclosure, the preset quantity is a quantity value set by the user, for example: 20, 30, etc., and the preset color information is any color set by the user, for example: red, blue, yellow, white, etc. Specifically, the embodiments of the present disclosure do not limit the preset quantity and the preset color information.
[0082] Step 203: Through a preset color calibration algorithm, calibrate the interior color information with the preset color information of the preset quantity respectively to obtain the corresponding preset color values.
[0083] In the embodiments of the present disclosure, the preset color calibration algorithm is an algorithm selected by the user, for example: the additive color method (optical mixing), etc. Color calibration generally refers to mixing one color with another to achieve a specific color effect. The additive color method (optical mixing) is applicable to the mixing of light. In the additive color method, the mixing of colors follows the following laws: Complementary color law: Two complementary colors can produce white when mixed in an appropriate proportion. For example, yellow and blue, red and cyan are complementary colors; Intermediate color law: Mixing two non-complementary colors will produce a new intermediate color between them. For example, mixing red and yellow produces orange, and mixing blue and red produces purple; Substitution law: If colors A, B, and C can be obtained by mixing, then if there is no B, mixing colors X and Y can also obtain the same result.
[0084] Step 204: Construct a preset color value database according to the preset color values of the preset quantity.
[0085] In the embodiments of the present disclosure, the preset color values of the preset quantity are wrapped and merged to construct the preset color value database.
[0086] In an implementable manner of the embodiments of the present disclosure, the preset ambient light color seen by the human eye is the effect of mixing the three primary colors R, G, and B. Therefore, the target color value controls the final light color through the color values of the color channels. Regarding controlling the light color of the preset ambient light according to the target color value, the embodiments of the present disclosure provide a flow schematic diagram for controlling the light color of the preset ambient light, as Figure 3 shown:
[0087] Step 301: Generate a target drive current corresponding to each color channel according to the target color value, and the target color value includes the color value corresponding to the color channel.
[0088] In the embodiments of the present disclosure, the color channel is a tool for recording and representing color information in an image. According to different color models, the types and numbers of color channels will also vary. For example, for the RGB color model, there are three color channels, namely color channel R, color channel B, and color channel G. According to the color values of each color channel, the required color can be mixed.
[0089] When generating the corresponding target drive current through the target color value, conversion needs to be performed through a preset conversion function or conversion tool, such as a gamma correction function, etc. Specifically, the embodiments of the present disclosure do not limit the manner of generating the corresponding target drive current through the target color value.
[0090] Step 302: Drive the preset lamp beads corresponding to each color channel in the preset atmosphere lamp through the target drive current to control the light color of the preset atmosphere lamp.
[0091] In the embodiments of the present disclosure, there are preset lamp beads corresponding to the color channels in the preset atmosphere lamp. The preset lamp beads, such as small lamp beads or LEDs, are usually used to manufacture lighting devices and can be lit individually or simultaneously to produce different lighting effects. At the same time, different light colors can also be mixed according to different color values of the color channels.
[0092] In an implementable manner of the embodiments of the present disclosure, since the interior color information is fixed, only by matching the preset color value corresponding to the color identical to the color information in the preset color value database, the target color value can be obtained. Therefore, when matching from the preset color value database, the following manner can also be adopted but is not limited thereto: matching the color information with the preset color information; and when matching the preset color information identical to the color information, obtaining the preset color table value corresponding to the preset color information as the target color value.
[0093] In an implementable manner of the embodiments of the present disclosure, it is necessary to obtain the interior color information of the vehicle and the color information of the preset ambient light through the preset host unit of the vehicle, and control the color of the preset ambient light according to the interior color information and the color information of the preset ambient light through the preset lamp head module. Therefore, in order to complete the control of the preset ambient light, the following methods may also be adopted but are not limited to: obtaining the interior color information of the vehicle through the preset host unit in the vehicle, and sending the interior color information and the color information to the preset lamp head module in the vehicle according to the preset communication protocol; through the preset microcontroller in the preset lamp head module, matching from the preset color value database according to the interior color information and the color information to obtain the corresponding target color value; controlling the light color of the preset ambient light according to the target color value through the preset pulse width modulation controller in the preset lamp head module.
[0094] In the embodiments of the present disclosure, the preset host unit, for example: HU, the preset communication protocol, for example: LIN communication protocol, CAN bus protocol, etc., the preset microcontroller, for example: microcontroller (Microcontroller Unit, MCU), the preset pulse width modulation controller, for example: Pulse Width Modulation (PWM), etc. Specifically, the embodiments of the present disclosure do not limit the hardware devices.
[0095] In an implementable manner of the embodiments of the present disclosure, since the user may freely change the interior color of the vehicle, when constructing the preset color value database, if the interior color of the vehicle has been changed, it is necessary to obtain the changed interior color of the vehicle to construct the preset color value database. Therefore, in order to construct an accurate preset color value database, the following methods may also be adopted but are not limited to: in response to the update instruction of the preset configuration information database, obtaining the interior color information for update, and updating the interior color information in the preset configuration information database according to the interior color information for update. In the embodiments of the present disclosure, by triggering the update instruction of the preset configuration information database by the user to obtain the interior color information for update, the changed interior color information can be modified in time to construct an accurate preset color value database.
[0096] In summary, the embodiments of the present disclosure can achieve the following effects:
[0097] In the embodiments of the present disclosure, by matching the corresponding target color value from the preset color values obtained after color calibration of the interior color information with any one of the preset quantities to control the light color of the preset ambient light, the color deviation of the in-vehicle ambient light on the vehicle interior surface caused by the vehicle interior color can be reduced.
[0098] Corresponding to the above-described method for controlling a light, the present invention further provides a device for controlling a light. Since the device embodiment of the present invention corresponds to the above-described method embodiment, details not disclosed in the device embodiment may be referred to the above-described method embodiment, and will not be elaborated herein.
[0099] Figure 4 FIG. is a schematic structural diagram of a device for controlling a light provided by an embodiment of the present disclosure, as Figure 4 shown, including:
[0100] A first obtaining unit 41, configured to obtain interior color information of a vehicle in response to an opening instruction of a preset ambient light, where the opening instruction includes color information of the preset ambient light input by a user;
[0101] A matching unit 42, configured to perform matching from a preset color value database according to the interior color information and the color information to obtain a corresponding target color value, where the preset color value database includes the preset number of preset color values obtained after color calibration of the interior color information with any one of a preset number of colors;
[0102] A control unit 43, configured to control a light color of the preset ambient light according to the target color value.
[0103] The device for controlling a light provided by the present disclosure obtains interior color information of a vehicle in response to an opening instruction of a preset ambient light, where the opening instruction includes color information of the preset ambient light input by a user; performs matching from a preset color value database according to the interior color information and the color information to obtain a corresponding target color value, where the preset color value database includes the preset number of preset color values obtained after color calibration of the interior color information with any one of a preset number of colors; and controls a light color of the preset ambient light according to the target color value. Compared with the related art, the embodiment of the present disclosure can reduce a color deviation of a vehicle-mounted ambient light on a vehicle interior surface due to a vehicle interior color by matching a corresponding target color value from the preset number of preset color values obtained after color calibration of the interior color information with any one of a preset number of colors to control the light color of the preset ambient light.
[0104] Further, in a possible implementation manner of an embodiment of the present disclosure, as Figure 5 shown, the device further includes:
[0105] A second obtaining unit 44, configured to obtain the interior color information from a preset configuration information database;
[0106] The second obtaining unit 44 is further configured to obtain the preset number of preset color information;
[0107] The calibration unit 45 is configured to perform color calibration on the interior color information and the preset color information of the preset quantity respectively through a preset color calibration algorithm, so as to obtain the corresponding preset color values.
[0108] The construction unit 46 is configured to construct the preset color value database according to the preset color values of the preset quantity.
[0109] Further, in a possible implementation manner of the embodiment of the present disclosure, as Figure 5 shown, the control unit 43 includes:
[0110] The generation module 431 is configured to generate a target drive current corresponding to each color channel according to the target color value, where the target color value includes the color value corresponding to the color channel.
[0111] The drive module 432 is configured to drive the preset lamp beads corresponding to each color channel in the preset atmosphere lamp through the target drive current, so as to control the light color of the preset atmosphere lamp.
[0112] Further, in a possible implementation manner of the embodiment of the present disclosure, as Figure 5 shown, the matching unit 42 includes:
[0113] The matching module 421 is configured to match the color information with the preset color information.
[0114] The obtaining module 422 is configured to obtain the preset color table value corresponding to the preset color information as the target color value when the preset color information identical to the color information is matched.
[0115] Further, in a possible implementation manner of the embodiment of the present disclosure, the first obtaining unit 41 is further configured to obtain the interior color information of the vehicle through a preset host unit in the vehicle, and send the interior color information and the color information to a preset lamp head module in the vehicle according to a preset communication protocol.
[0116] The matching unit 42 is further configured to perform matching from a preset color value database according to the interior color information and the color information through a preset microcontroller in the preset lamp head module, so as to obtain a corresponding target color value.
[0117] The control unit 43 is further configured to control the light color of the preset atmosphere lamp according to the target color value through a preset pulse width modulation controller in the preset lamp head module.
[0118] Further, in a possible implementation manner of the embodiment of the present disclosure, as Figure 5As shown, the device further includes:
[0119] An update unit 47, configured to obtain interior color information for update in response to an update instruction of the preset configuration information library, and update the interior color information in the preset configuration information library according to the interior color information for update.
[0120] In an embodiment of the present disclosure, a vehicle is further provided, wherein the vehicle is configured with a device for controlling lights.
[0121] It should be noted that the foregoing explanations of the method embodiments also apply to the devices of the embodiments of the present disclosure. The principles are the same and will not be limited in the embodiments of the present disclosure.
[0122] According to an embodiment of the present disclosure, the present disclosure further provides an electronic device, a readable storage medium, and a computer program product.
[0123] Figure 6 FIG. shows a schematic block diagram of an exemplary electronic device 600 that can be used to implement the embodiments of the present disclosure. The electronic device is intended to represent various forms of digital computers, such as, a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, a personal digital processor, a cellular phone, a smart phone, a wearable device, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0124] As Figure 6 shown, the device 600 includes a computing unit 601, which can execute various appropriate actions and processes according to a computer program stored in a ROM (Read-Only Memory) 602 or a computer program loaded from a storage unit 608 into a RAM (Random Access Memory) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. An I / O (Input / Output) interface 605 is also connected to the bus 604.
[0125] Multiple components in device 600 are connected to I / O interface 605, including: input unit 606, such as a keyboard, mouse, etc.; output unit 607, such as various types of displays, speakers, etc.; storage unit 608, such as a disk, optical disc, etc.; and communication unit 609, such as a network card, modem, wireless communication transceiver, etc. Communication unit 609 allows device 600 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0126] Computing unit 601 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of computing unit 601 include but are not limited to CPU (Central Processing Unit), GPU (Graphic Processing Units), various dedicated AI (Artificial Intelligence) computing chips, various computing units running machine learning model algorithms, DSP (Digital Signal Processor), and any suitable processor, controller, microcontroller, etc. Computing unit 601 executes the various methods and processes described above, such as the method of lighting control. For example, in some embodiments, the method of lighting control can be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as storage unit 608. In some embodiments, part or all of the computer program can be loaded and / or installed onto device 600 via ROM 602 and / or communication unit 609. When the computer program is loaded into RAM 603 and executed by computing unit 601, one or more steps of the method described above can be executed. Alternatively, in other embodiments, computing unit 601 can be configured to execute the aforementioned method of lighting control by any other suitable means (e.g., by means of firmware).
[0127] The various embodiments of the systems and techniques described above in this specification can be implemented in digital electronic circuitry, integrated circuit systems, FPGAs (Field Programmable Gate Arrays), ASICs (Application-Specific Integrated Circuits), ASSPs (Application Specific Standard Products), SoCs (System On Chip), CPLDs (Complex Programmable Logic Devices), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which may be a special-purpose or general-purpose programmable processor that receives data and instructions from, and transmits data and instructions to, a storage system, at least one input device, and at least one output device.
[0128] The program code for implementing the methods of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions / operations specified in the flowchart and / or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
[0129] In the context of this disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer disk, a hard disk, a RAM, a ROM, an EPROM (Electrically Programmable Read-Only Memory), or a flash memory, an optical fiber, a CD-ROM (Compact Disc Read-Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0130] In order to provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (Cathode-Ray Tube) or an LCD (Liquid Crystal Display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, speech input, or tactile input).
[0131] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected to each other by any form or medium of digital data communication (e.g., a communication network). Examples of the communication network include: a LAN (Local Area Network), a WAN (Wide Area Network), the Internet, and a blockchain network.
[0132] A computer system may include a client and a server. The client and the server are generally far from each other and usually interact via a communication network. The relationship between the client and the server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system, solving the defects of difficult management and weak business scalability existing in traditional physical hosts and VPS services ("Virtual Private Server", or simply "VPS"). The server may also be a server of a distributed system or a server combined with a blockchain.
[0133] Among them, it should be noted that artificial intelligence is a discipline that studies making a computer simulate certain thinking processes and intelligent behaviors of humans (such as learning, reasoning, thinking, planning, etc.), and there are both hardware-level technologies and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include several major directions such as computer vision technology, speech recognition technology, natural language processing technology, and machine learning / deep learning, big data processing technology, and knowledge graph technology.
[0134] It should be understood that various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and no limitation is imposed herein.
[0135] The above specific embodiments do not constitute a limitation on the protection scope of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure shall be included within the protection scope of this disclosure.
Claims
1. A method for lighting control, characterized in that, Including: In response to an activation instruction of a preset ambient light, obtain interior color information of the vehicle, where the activation instruction includes color information of the preset ambient light input by a user; Match according to the interior color information and the color information from a preset color value database to obtain a corresponding target color value. The preset color value database contains the preset color values obtained after color calibration of the interior color information with any one of a preset number of colors respectively; Control the light color of the preset ambient light according to the target color value.
2. The method according to claim 1, wherein Before matching according to the interior color information and the color information from the preset color value database to obtain a corresponding target color value, the method further includes: Obtain the interior color information from a preset configuration information database; Obtain the preset color information of the preset number; Perform color calibration on the interior color information with the preset color information of the preset number respectively through a preset color calibration algorithm to obtain the corresponding preset color values; Construct the preset color value database according to the preset color values of the preset number.
3. The method according to claim 1, characterized in that The controlling the light color of the preset ambient light according to the target color value includes: Generate a target drive current corresponding to each color channel according to the target color value, where the target color value contains the color value corresponding to the color channel; Drive the preset lamp beads corresponding to each color channel in the preset ambient light through the target drive current to control the light color of the preset ambient light.
4. The method according to claim 1, wherein The matching according to the interior color information and the color information from the preset color value database to obtain a corresponding target color value includes: Match the color information with the preset color information; In the case where the preset color information identical to the color information is matched, obtain the preset color table corresponding to the preset color information as the target color value.
5. The method according to any one of claims 1 to 4, characterized in that After obtaining the interior color information of the vehicle in response to the activation instruction of the preset ambient light, it includes: Obtain the interior color information of the vehicle through a preset host unit in the vehicle, and send the interior color information and the color information to a preset lamp head module in the vehicle according to a preset communication protocol; Match according to the interior color information and the color information from the preset color value database through a preset microcontroller in the preset lamp head module to obtain a corresponding target color value; Control the light color of the preset ambient light according to the target color value through a preset pulse width modulation controller in the preset lamp head module.
6. The method according to claim 2, wherein It further includes: In response to an update instruction of the preset configuration information database, obtain updated interior color information, and update the interior color information in the preset configuration information database according to the updated interior color information.
7. A device for lighting control, characterized in that, Including: A first obtaining unit, configured to obtain interior color information of the vehicle in response to an activation instruction of a preset ambient light, where the activation instruction includes color information of the preset ambient light input by a user; A matching unit, configured to perform matching from a preset color value database according to the interior color information and the color information to obtain a corresponding target color value, where the preset color value database contains the preset color values obtained after color calibration of the interior color information with any one of a preset number of colors; A control unit, configured to control the light color of the preset atmosphere light according to the target color value.
8. A vehicle, characterized in that, The vehicle includes the device for controlling lights according to claim 7.
9. An electronic device, characterized in that, Comprising: At least one processor; And A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method according to any one of claims 1-6.
10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to execute the method according to any one of claims 1-6.