Light emitting control method and device, electronic equipment and computer readable storage medium

CN120548779APending Publication Date: 2025-08-26LOEB SMART INNOVATION HLDG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380091648.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-01-17
Publication Date
2025-08-26

AI Technical Summary

Technical Problem

When smart light devices are controlled via Bluetooth or wifi, the color gamut formed by RGB lamp beads from different manufacturers is different from the standard sRGB or Adobe RGB color gamut, resulting in the inability to accurately output the colors displayed on the mobile device, resulting in a poor user experience.

Method used

The initial color space data of the target color is obtained through the color display disk of the terminal device, characteristic parameters are generated based on the light source characteristic physical quantities of the lamp, and converted into the current ratio of the three RGB channels to control the light emission of the lamp to ensure that the emitted color is consistent with the color selected by the user.

Benefits of technology

It realizes that the luminous color of smart lamps is consistent with the color selected by the user on the terminal device, improves the user experience, and ensures the accuracy and reliability of the luminous color through the conversion of characteristic parameters.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120548779A_ABST
    Figure CN120548779A_ABST
Patent Text Reader

Abstract

The invention discloses a light emitting control method and device, electronic equipment and a computer readable storage medium. The method is applied to a lamp with a plurality of light sources and comprises the steps that color selection information is responded, initial color space data of a target color corresponding to the color selection information is received, the color selection information is obtained through a color development disc of terminal equipment, and the color development disc is generated according to characteristic physical quantities of the light sources; the characteristic physical quantity is used for representing the light emitting color of the light source; acquiring proportion data for controlling the light source to emit light with specific intensity according to the initial color space data; and controlling the lamp to emit light according to the proportion data of the light with the specific intensity. The light emitting control method provided by the invention can ensure that the color of the light emitted by the lamp is consistent with that of the color developing disc of the terminal equipment, and improves the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Light emitting control method, device, electronic device and computer readable storage medium Technical Field

[0001] The present application relates to smart home, and specifically to a light control method, device, electronic device and computer-readable storage medium. Background Art

[0002] Smart lights can be controlled to change color through an app on a mobile device via Bluetooth, Wi-Fi, or other networks. The light-emitting part of a smart light mixes the three colors of RGB lamp beads to produce the target color.

[0003] In the related art, the color palette used to control the color changes of smart lights on mobile device apps uses the standard sRGB or Adobe RGB color gamut. However, RGB lamps from different manufacturers emit light in different color gamuts, and these color gamuts are not subsets of the standard sRGB or Adobe RGB color gamuts. As a result, when a mobile device controls the lighting of a smart light via a network like Bluetooth or Wi-Fi, the light will not emit the same color as the palette displayed on the mobile device app, resulting in a poor user experience and the perception that the smart light is malfunctioning.

[0004] Summary of the Invention

[0005] In view of the above, it is necessary to propose a light control method, device, electronic device and computer-readable storage medium, which can ensure that the color of the light emitted by the lamp is consistent with the color display panel of the terminal device, thereby improving the user experience.

[0006] A first aspect of an embodiment of the present application discloses a light emission control method, which is applied to a lamp having at least one light source, comprising: receiving initial color space data of a target color corresponding to the color selection information in response to color selection information, wherein the color selection information is obtained through a color display disk of a terminal device, and the color display disk is generated based on characteristic physical quantities of the light source, and the characteristic physical quantities are used to characterize the light emission color of the light source; obtaining proportional data for controlling the light source to emit light of a specific intensity based on the initial color space data; and controlling the light emission of the lamp based on the proportional data of the light of the specific intensity.

[0007] Compared with the related art, the color display disk of the terminal device of the present application is generated by the characteristic physical quantity of the light source of the lamp. Since the characteristic physical quantity is used to characterize the luminous color of the light source, the colors displayed on the color display disk are all colors that the lamp can emit; in addition, by obtaining the proportion data of light of a specific intensity based on the initial color space data of the target color, and then controlling the light emission of the lamp based on the proportion data of the light of a specific intensity, the luminous color of the lamp is made consistent with the target color. In other words, the above method can make the luminous color of the lamp consistent with the color selected by the user on the color display disk, thereby improving the user experience.

[0008] Optionally, the initial color space data is HSV color space data; obtaining proportional data for controlling the light source to emit light of a specific intensity based on the initial color space data includes: converting the HSV color space data into RGB color space data; converting the RGB color space data into data based on an XYZ color space based on preset characteristic parameters; obtaining the color coordinates of the target color based on the XYZ color space-based data; and obtaining the proportional data ratio of the light of the specific intensity based on the color coordinates.

[0009] Optionally, the characteristic parameter is a ratio matrix coefficient, and the ratio matrix coefficient is obtained according to the RGB parameters of the light source; converting the RGB color space data into data based on the XYZ color space according to the preset characteristic parameters includes: converting the RGB color space data into data based on the XYZ color space according to the ratio matrix coefficient.

[0010] Optionally, the ratio matrix coefficients are obtained in the following manner: generating a first matrix based on the XYZ color space and a second matrix based on the RGB color space according to the characteristic physical quantity; and calculating the ratio matrix coefficients according to the ratio of the first matrix and the second matrix.

[0011] Optionally, the light source includes a first light source emitting red light, a second light source emitting green light, and a third light source emitting blue light; controlling the lamp to emit light according to the proportion data of light of the specific intensity includes: calculating the current ratio of the RGB three channels according to the proportion data of light of the specific intensity, wherein the current ratio of the RGB three channels is the required current ratio between the first light source, the second light source, and the third light source when the lamp emits light of the target color; and controlling the lamp to emit light according to the current ratio of the RGB three channels.

[0012] Optionally, the calculating the current ratio of the RGB three channels based on the proportion data of the light of the specific intensity includes: normalizing the proportion data of the light of the specific intensity; and obtaining the current ratio of the RGB three channels based on the normalized proportion data of the light of the specific intensity and the preset adjustable maximum grayscale value of the lamp.

[0013] Optionally, the lamp includes at least one group of light sources, wherein each group of light sources includes a first light source emitting red light, a second light source emitting green light, and a third light source emitting blue light.

[0014] In a second aspect, an embodiment of the present application further provides a luminous control determination device, which is applied to a lamp having at least one light source, comprising: a receiving module, the receiving module being used to receive initial color space data of a target color corresponding to the color selection information in response to color selection information, wherein the color selection information is obtained through a color display disk of a terminal device, the color display disk being generated based on characteristic physical quantities of a plurality of the light sources, and the characteristic physical quantities being used to characterize the luminous color of the light source; an acquisition module, the acquisition module being used to acquire proportional data for controlling the light source to emit light of a specific intensity based on the initial color space data; and a control module, the control module being used to control the luminous intensity of the lamp based on the proportional data of the light of the specific intensity.

[0015] In a third aspect, an embodiment of the present application further provides an electronic device, comprising a processor and a memory, wherein the memory is used to store instructions, and the processor is used to call the instructions in the memory, so that the electronic device implements the light control method as described in any one of the first aspects.

[0016] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the light-emitting control method as described in any one of the first aspects. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] FIG1 is a flow chart of a light emitting control method provided in one embodiment of the present application.

[0018] FIG2 is a flow chart of a light emitting control method provided in an embodiment of the present application.

[0019] FIG3 is a flow chart of a light emitting control method provided in an embodiment of the present application.

[0020] FIG4 is a schematic diagram of functional modules of a light emitting control device provided in one embodiment of the present application.

[0021] FIG5 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0022] In order to more clearly understand the above-mentioned objectives, features and advantages of the present application, the present application is described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features therein can be combined with each other without conflict.

[0023] In the following description, many specific details are set forth to facilitate a full understanding of the present application. The described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.

[0024] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application pertains. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.

[0025] It should be further noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a list of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.

[0026] In this application, "at least one" means one or more, and "more than one" means two or more than two. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The terms "first", "second", "third", "fourth", etc. (if any) in the specification, claims and drawings of this application are used to distinguish similar objects, rather than to describe a specific order or sequence.

[0027] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0028] To facilitate understanding, some illustrations of concepts related to the embodiments of the present application are given as examples for reference.

[0029] Terminal devices may include, but are not limited to, mobile phones, smart TVs, smart speakers, wearable devices, tablet computers, desktop computers, all-in-one computers, handheld computers, laptop computers, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), laptop computers, mobile computers, augmented reality (AR) devices, virtual reality (VR) devices, artificial intelligence (AI) devices, vehicle-mounted devices, and any other terminal devices or portable terminal devices.

[0030] HSV color space data consists of: Hue (H), measured in degrees, ranging from 0° to 360°. Starting from red and proceeding counterclockwise, red is 0°, green is 120°, and blue is 240°. Their complementary colors are yellow at 60°, cyan at 180°, and violet at 300°. Saturation (S) indicates the degree to which a color approaches a spectral color. A color can be considered the result of mixing a spectral color with white. The greater the proportion of the spectral color, the closer the color approaches the spectral color, and the higher the saturation. High saturation results in a deep and vivid color. Saturation is highest when the white component of a spectral color is zero. Values ​​typically range from 0% to 100%, with higher values ​​indicating more saturated colors. Value (V): Value indicates the brightness of a color. For light source colors, the value is related to the brightness of the light source; for object colors, it is related to the object's transmittance or reflectance. Values ​​typically range from 0% (black) to 100% (white).

[0031] The RGB color space represents color using a cube of unit length. The eight common colors—black, blue, green, cyan, red, purple, yellow, and white—are located at the eight vertices of the cube. Black is typically placed at the origin of the three-dimensional rectangular coordinate system, while red, green, and blue are placed on the three coordinate axes, respectively. The entire cube is placed in the first hexagram. Cyan and red, purple and green, and yellow and blue are complementary colors. The value ranges for each parameter are: R: 0-255; G: 0-255; B: 0-255.

[0032] FIG1 is a schematic diagram of a light emission control process according to an embodiment of the present application. This embodiment is applied to a lamp having at least one light source, and specifically includes the following steps as shown in FIG1 :

[0033] Step 101: In response to color selection information, receive initial color space data of a target color corresponding to the color selection information.

[0034] In some embodiments, the color selection information is obtained through a color display disk of a terminal device, and the color display disk is generated based on a characteristic physical quantity of at least one of the light sources, and the characteristic physical quantity is used to characterize the luminous color of the light source. Specifically, during the production of the light source, the light source colors of different lamps are different according to the subtle differences in the pigment modulation during production. The color coordinates of the light source color obtained in this way are specific, and the color coordinates are the characteristic physical quantities. The lamp is composed of three light sources, and the luminous color gamut that matches the lamp can be obtained based on the color coordinate values ​​of the three light sources. The luminous color gamut is also the color display disk displayed on the terminal device of this application.

[0035] In some embodiments, a lamp may include only one light source, and the light source may have three colors of pigments (i.e., red, green, and blue) at the same time; a lamp may also include at least one group of light sources, each group of light sources includes a first light source capable of emitting red light, a second light source capable of emitting green light, and a third light source capable of emitting blue light, and the number of light sources of the same luminous color may be one or more. In other words, this embodiment does not specifically limit the number of light sources in the lamp, and it can be set according to actual needs. In addition, this embodiment does not specifically limit the arrangement order of light sources of different luminous colors in the lamp. For example, if the number of the first light source, the second light source, and the third light source of a certain lamp are all two, the arrangement of the light sources can be red, green, blue, red, green, and blue, or red, red, green, green, blue, and blue, or other arrangements. Examples will not be given one by one here, and it can be set according to actual needs.

[0036] In some embodiments, color selection information can be obtained by generating color selection information corresponding to the target color based on the user's selection of the target color in the color display disk. Specifically, the user's selection of the display disk described in this application can be achieved by a click, voice operation, etc. This application does not specifically limit the method for obtaining the color selection information.

[0037] To facilitate understanding, the following specifically describes how the lamp of this embodiment receives the initial color space data:

[0038] The user opens an application on the terminal device that can match the lamp. The application displays a color wheel, and the user selects the target color on the color wheel. Assuming the target color is yellow, the user's selection of yellow is the color selection information. Based on the color selection information, the application generates initial color space data for yellow and sends the initial color space data to the lamp.

[0039] Step 102: Obtaining proportion data for controlling the light source to emit light of a specific intensity according to the initial color space data.

[0040] In some embodiments, the initial color space data is HSV color space data.

[0041] How to obtain the proportion data of light of a specific intensity based on the HSV color space data is described in detail later. To avoid repetition, this will not be described again.

[0042] Step 103: Control the lamp to emit light according to the light intensity ratio.

[0043] How to control the lighting of the lamp according to the light intensity ratio is described in detail later. To avoid repetition, this will not be described again.

[0044] Compared with the related art, the color display disk of the terminal device of the present application is generated by the characteristic physical quantity of the light source of the lamp. Since the characteristic physical quantity is used to characterize the luminous color of the light source, the colors displayed on the color display disk are all colors that the lamp can emit; in addition, by obtaining the light intensity ratio of the RGB three channels of the target color according to the initial color space data of the target color, and then controlling the lamp to emit light according to the light intensity ratio, the luminous color of the lamp is consistent with the target color. In other words, the above method can make the luminous color of the lamp consistent with the color selected by the user on the color display disk, thereby improving the user experience.

[0045] FIG2 is a flow chart of light emission control according to an embodiment of the present application. This application further illustrates the aforementioned embodiment and specifically illustrates how to obtain proportional data of light of a specific intensity when the initial color space data is HSV color space data. As shown in FIG2 , the process specifically includes the following steps:

[0046] Step 201: In response to color selection information, receive HSV color space data of a target color corresponding to the color selection information.

[0047] Step 202: Convert the HSV color space data into RGB color space data.

[0048] It is understandable that HSV is a user-oriented color model, while display systems use the hardware-oriented RGB color model. Therefore, when controlling lamps, it is necessary to convert HSV color space data into RGB color space data so that the lamps can perform subsequent operations through the RGB color space data.

[0049] Step 203: Convert the RGB color space data into data based on the XYZ color space according to preset characteristic parameters.

[0050] In some embodiments, the preset characteristic parameters are ratio matrix coefficients, which are determined based on the matrix ratios of the XYZ color domain and the RGB color domain formed by the characteristic physical quantities of the light source (i.e., the color coordinates of the light source color). Specifically, the conversion relationship between RGB color space data and data based on the XYZ color space is: in, is the data based on XYZ color space, [S] is the ratio matrix coefficient, The data is in RGB color space.

[0051] In some embodiments, the color coordinates (x, y) of the light source color and the XYZ color space have the following conversion relationship: (1) x = X / X+Y+Z; (2) y = Y / X+Y+Z; (3) z = Z / X+Y+Z = 1-xy.

[0052] Combining formula (1) and formula (2), we can get: (4) X = Y / yx; Combining formula (4) and formula (3), we can get: (5) Z = Y / y(1-xy).

[0053] Based on the above formula (4) and formula (5), the ratio matrix coefficient [S] can be obtained as follows:

[0054] Assume that the color coordinates of the RGB primary colors of the light source in the XYZ color space are (r x , r y , r z ), (g x , g y , g z ), (b x , b y , b z ), according to the conversion relationship between color coordinates and XYZ color space, we can know that the three stimulus values ​​of the light source in XYZ color space are (substitute the conversion relationship between color coordinates and XYZ color space, that is, formula (4) and formula (5)):

[0055] Assuming that the tristimulus values ​​of any color P in the RGB color space are (RP, GP, BP) and the tristimulus values ​​in the XYZ color space are (XP, YP, ZP), the same color point can be represented in two different color spaces, and the matrix relationship can be obtained: [P] = RP[R] + GP[G] + BP[B] = XP[X] + YP[Y] + ZP[Z], so:

[0056] When the color P is a white color point, the value of the white color point in the RGB color space is (RW, GW, BW) = (1, 1, 1), and the value of the white color point in the XYZ color space is (wX , w Y , w Z )=(w X , w Y , 1-w X -w Y )=(0.312, 0.3290, 0.3583). From the conversion relationship between color coordinates and XYZ color space, we can get the following formula (6):

[0057] It's important to note that the conversion between RGB color space data and data based on the XYZ color space requires the concept of stripping away the RGB grayscale encoding value. This is because the RGB grayscale encoding value is a nonlinear grayscale data. Conversion between RGB space data and data based on the XYZ color space is based on linear tristimulus value data.

[0058] Therefore, stripping the RGB grayscale encoding value in formula (6), let Y W =1, the ratio matrix coefficient [S] of converting any point from the RGB color model of the light source to the XYZ color model can be calculated.

[0059] Step 204: Obtain color coordinates of the target color according to the data based on the XYZ color space.

[0060] In some embodiments, after obtaining data based on the XYZ color space, the color coordinates of the target color can be obtained by combining the aforementioned formulas (1), (2), and (3).

[0061] Step 205: Obtain proportion data of light of specific intensity according to the color coordinates.

[0062] Step 206: Control the lamp to emit light according to the ratio data of the light of the specific intensity.

[0063] Step 201 and step 206 of this embodiment are similar to step 101 and step 103 of the above embodiment, and will not be described again here to avoid repetition.

[0064] Compared with related technologies, the color display disk of the terminal device of the present application is generated by the characteristic physical quantity of the light source of the lamp. Since the characteristic physical quantity is used to characterize the luminous color of the light source, the colors displayed on the color display disk are all colors that the lamp can emit. In addition, by obtaining the light intensity ratio of the RGB three channels of the target color based on the initial color space data of the target color, and then controlling the light emission of the lamp according to the light intensity ratio, the luminous color of the lamp is consistent with the target color. In other words, the above method can make the luminous color of the lamp consistent with the color selected by the user on the color display disk, thereby improving the user experience. In addition, by converting the HSV color space data into RGB color space data, so that the lamp can perform subsequent operations through the RGB color space data, the reliability of the light control method is improved; by converting the RGB color space data into data based on the XYZ color space through matrix coefficients, the accuracy of the data based on the XYZ color space can be ensured, thereby ensuring the accuracy of the luminous color of the lamp.

[0065] FIG3 is a flow chart of a light emission control method provided in an embodiment of the present application. This application further illustrates the aforementioned embodiment and specifically describes how to control the light emission of a lamp based on the ratio data of light of a specific intensity when the initial color space data is HSV color space data. As shown in FIG3 , the method includes the following steps:

[0066] Step 301: In response to color selection information, receive HSV color space data of a target color corresponding to the color selection information.

[0067] Step 302: Convert the HSV color space data into RGB color space data.

[0068] Step 303: Convert the RGB color space data into data based on the XYZ color space according to preset characteristic parameters.

[0069] Step 304: Obtain color coordinates of the target color according to the data based on the XYZ color space.

[0070] Step 305: Obtain proportion data of light of specific intensity according to the color coordinates.

[0071] Steps 301 to 305 of this embodiment are similar to steps 201 to 205 of the aforementioned embodiment, and are not described again here to avoid repetition.

[0072] Step 306: Calculate the current ratio of the RGB three channels according to the ratio data of the light of the specific intensity.

[0073] Specifically, the current ratio of the three RGB channels is the ratio of the currents required by the red, green, and blue light sources in the lamp to produce the target color. Therefore, by calculating the current ratio of the three RGB channels, we can accurately determine the current required by each color light source, thereby ensuring that the lamp can produce the target color light and further improving the user experience.

[0074] In some embodiments, the current ratio of the RGB three channels is calculated by normalizing the proportion data of light of a specific intensity; and obtaining the current ratio based on the normalized proportion data of light of a specific intensity and the preset adjustable maximum grayscale value of the lamp.

[0075] Specifically, after normalizing the ratio data of light of a specific intensity, the actual grayscale value of the light source can be calculated, where 1024 is the maximum adjustable grayscale value of the lamp control part, and the grayscale value is adjusted according to the actual ratio of the current. The current ratio is obtained according to the following formula to control the light source:

[0076] Among them, D r is the light intensity ratio of the first light source, D g is the light intensity ratio of the second light source, D b is the light intensity ratio value of the third light source, 1024 is the adjustable maximum grayscale level, I R is the current ratio required by the first light source, I G is the current ratio required by the second light source, I B is the current ratio required by the third light source.

[0077] Step 307: Control the lamp to emit light according to the current ratio of the RGB three channels.

[0078] Compared with related technologies, the color display disk of the terminal device of this application is generated by the characteristic physical quantity of the light source of the lamp. Since the characteristic physical quantity is used to characterize the luminous color of the light source, the colors displayed on the color display disk are all colors that the lamp can emit. In addition, by obtaining the light intensity ratio of the RGB three channels of the target color based on the initial color space data of the target color, and then controlling the light emission of the lamp according to the light intensity ratio, the luminous color of the lamp is consistent with the target color. In other words, the above method can make the luminous color of the lamp consistent with the color selected by the user on the color display disk, thereby improving the user experience. In addition, by calculating the current ratio of the RGB three channels, it can ensure that the lamp emits light of the target color according to the current ratio, thereby further improving the user experience.

[0079] Please refer to Figure 4, which is a schematic diagram of the functional modules of a light control device 400 provided in an embodiment of the present application. As shown in Figure 4, the light control device 400 may include a receiving module 401, an acquisition module 402, and a control module 403. The modules referred to in the embodiments of the present application may be program segments that perform a specific function and are more suitable for describing the execution process of software in a processor than programs. The one or more modules may be stored in a memory and configured to be executed by one or more processors.

[0080] The luminescence control device 400 is applied to a lamp having at least one light source. Specifically, a receiving module 401 is configured to receive, in response to color selection information, initial color space data of a target color corresponding to the color selection information, wherein the color selection information is obtained via a color display panel of a terminal device, the color display panel being generated based on characteristic physical quantities of the light source, the characteristic physical quantities being used to characterize the luminous color of the light source; an acquisition module 402 is configured to obtain, based on the initial color space data, proportional data for controlling the light source to emit light of a specific intensity; and a control module 403 is configured to control the luminescence of the lamp based on the proportional data of the specific intensity.

[0081] The light control device 400 provided in the embodiment of the present application can execute the light control method provided in any embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method.

[0082] Please refer to Figure 5, which is a schematic diagram of the hardware structure of an electronic device 1000 provided in an embodiment of the present application. As shown in Figure 5, electronic device 1000 may include a processor 1001 and a memory 1002. Memory 1002 is used to store one or more computer programs 1003. One or more computer programs 1003 are configured to be executed by processor 1001. The one or more computer programs 1003 include instructions, and the instructions can be used to implement the light control method described in any of Figures 1 to 3 in electronic device 1000.

[0083] It is understood that the structure shown in this embodiment does not constitute a specific limitation on the electronic device 1000. In other embodiments, the electronic device 1000 may include more or fewer components than shown, or combine or separate some components, or arrange the components differently.

[0084] The processor 1001 may include one or more processing units. For example, the processor 1001 may include an application processor (AP), a modem, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors.

[0085] Processor 1001 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in processor 1001 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 1001. If processor 1001 needs to use the same instruction or data again, it can directly access it from this memory. This avoids duplicate accesses, reduces the waiting time of processor 1001, and thus improves system efficiency.

[0086] In some embodiments, the processor 1001 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM interface, and / or a USB interface.

[0087] In some embodiments, memory 1002 may include high-speed random access memory and may also include non-volatile memory, such as a hard disk, memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage device.

[0088] This embodiment also provides a computer-readable storage medium, which stores computer instructions. When the instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the light-emitting control method in the above-mentioned embodiment.

[0089] Among them, the electronic device and computer-readable storage medium provided in this embodiment are used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0090] In practical applications, the above functions can be distributed to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0091] In the several embodiments provided in this application, the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are schematic. For example, the division of the modules or units is a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0092] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0093] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0094] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0095] Note that the above are only preferred embodiments of the present application and the technical principles employed. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and that various obvious changes, readjustments, and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application has been described in more detail through the above embodiments, the present application is not limited to the above embodiments and may include many other equivalent embodiments without departing from the scope of the present application. The scope of the present application is determined by the scope of the appended claims.

Claims

1. A light emission control method, applied to a lamp having at least one light source, characterized in that: include: In response to color selection information, receiving initial color space data of a target color corresponding to the color selection information, wherein the color selection information is obtained through a color display disk of a terminal device, the color display disk is generated according to a characteristic physical quantity of the light source, and the characteristic physical quantity is used to characterize the luminous color of the light source; Acquire, according to the initial color space data, ratio data for controlling the light source to emit light of a specific intensity; The lamp is controlled to emit light according to the proportion data of the light with the specific intensity.

2. The light emission control method according to claim 1, characterized in that: The initial color space data is HSV color space data; the step of obtaining, according to the initial color space data, proportion data for controlling the light source to emit light of a specific intensity comprises: Convert the HSV color space data into RGB color space data; Converting the RGB color space data into data based on the XYZ color space according to preset characteristic parameters; Obtaining the color coordinates of the target color according to the data based on the XYZ color space; The ratio data of the light with the specific intensity is obtained according to the color coordinates.

3. The light emission control method according to claim 2, characterized in that: The characteristic parameter is a ratio matrix coefficient, and the ratio matrix coefficient is obtained according to the RGB parameters of the light source; The converting the RGB color space data into data based on the XYZ color space according to the preset characteristic parameters includes: The RGB color space data is converted into the data based on the XYZ color space according to the ratio matrix coefficients.

4. The light emission control method according to claim 3, characterized in that: The ratio matrix coefficients are obtained in the following manner: Generate a first matrix based on an XYZ color space and a second matrix based on an RGB color space according to the characteristic physical quantity; The ratio matrix coefficients are calculated according to the ratio of the first matrix to the second matrix.

5. The light emission control method according to claim 1, characterized in that: The step of controlling the lamp to emit light according to the proportion data of the light with the specific intensity comprises: Calculating the current ratio of the RGB three channels according to the ratio data of the light of the specific intensity, wherein the current ratio of the RGB three channels is the ratio of the current required by the light source emitting red light, the light source emitting green light, and the light source emitting blue light of the lamp when the lamp emits the light of the target color; The lamp is controlled to emit light according to the current ratio of the RGB three channels.

6. The light emission control method according to claim 5, characterized in that: The calculating the current ratio of the RGB three channels according to the ratio data of the light of the specific intensity includes: normalizing the proportion data of the light with the specific intensity; The current ratio of the RGB three channels is obtained according to the normalized ratio data of the light of specific intensity and the preset adjustable maximum grayscale value of the lamp.

7. The light emission control method according to any one of claims 1 to 6, characterized in that: The lamp comprises at least one group of light sources, wherein each group of light sources comprises a first light source emitting red light, a second light source emitting green light and a third light source emitting blue light.

8. A light control device, applied to a lamp having at least one light source, characterized in that: include: A receiving module, the receiving module is used to receive, in response to color selection information, initial color space data of a target color corresponding to the color selection information, wherein the color selection information is obtained through a color display disk of a terminal device, the color display disk is generated according to a characteristic physical quantity of the light source, and the characteristic physical quantity is used to characterize the luminous color of the light source; an acquisition module, the acquisition module being used to acquire, according to the initial color space data, proportion data for controlling the light source to emit light of a specific intensity; A control module is used to control the light of the lamp according to the proportion data of the light of the specific intensity.

9. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the memory is used to store instructions, and the processor is used to call the instructions in the memory, so that the electronic device executes the light emission control method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The method comprises computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the light emission control method according to any one of claims 1 to 7.