Light source display control method and device, storage medium and intelligent device
By acquiring and processing multiple color data to generate a gradient color data sequence, and controlling the display of RGB light strips, the problem of mismatched display effects caused by single color sensor acquisition is solved, achieving colorful display and a better user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-28
- Publication Date
- 2026-03-10
AI Technical Summary
The existing RGB light strips use a single color sensor, which results in the light source display effect failing to match the surrounding environment, leading to insufficient visual experience and immersion for users.
By acquiring initial color data and multiple target color data, gradient processing is performed to generate a gradient color data sequence, which controls the color display of the light source in the target display area, thereby achieving a colorful display effect that matches the surrounding environment.
It improves the matching degree between the light source display effect and the environment, enhancing the user's visual experience and immersion.
Smart Images

Figure CN116056294B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of display control technology, and in particular to a light source display control method, apparatus, storage medium and intelligent device. Background Technology
[0002] With rapid economic development and continuous improvement in living standards, people have increasingly higher demands for entertainment and leisure. Ambient lighting, as a widely used decorative lighting option, is appearing more and more frequently in daily life. Ambient lighting not only provides decorative illumination but also enhances the atmosphere and improves the user's entertainment experience by controlling the color of the light.
[0003] Currently, LED light strips are increasingly being used as ambient lighting. RGB light strips refer to LEDs that are soldered onto copper wires or flexible circuit boards using a special processing technique, and then connected to a power source to emit light. They are named for their strip-like shape when illuminated. LED light strips are convenient to use, widely applicable, and can achieve LED color changes. However, although the color of LED light strips can change with the surrounding environment, because color sensors can only capture one color at a time, LED light strips can only display a single color at a time. This results in a display effect that cannot perfectly match the surrounding environment, providing users with a less immersive visual experience. Summary of the Invention
[0004] This application provides a light source display control method, apparatus, storage medium, and intelligent device, which can solve the problem that the current color sensors only capture one color, resulting in the light source display effect not being able to match the surrounding environment well.
[0005] In a first aspect, embodiments of this application provide a light source display control method, including:
[0006] Obtain initial color data, which is the color data currently corresponding to the target display area;
[0007] Acquire target color data, which is collected by a color sensor according to preset requirements, wherein there are multiple target color data;
[0008] Based on the initial color data and multiple target color data, a gradient process is performed to obtain a gradient color data sequence corresponding to each target color data. The gradient color data sequence includes a target color data and intermediate color data required to gradient process an initial color data to the target color data.
[0009] Based on the gradient color data sequence, the color display of the light source in the target display area is controlled.
[0010] In one possible implementation of the first aspect, the step of performing gradient processing based on the initial color data and multiple target color data to obtain gradient color data sequences corresponding to the target color data respectively includes:
[0011] Establish a correspondence between the initial color data and multiple target color data to obtain multiple color combinations, wherein each color combination includes an initial color data and its corresponding target color data;
[0012] The color combinations are subjected to gradient processing to obtain gradient color data sequences corresponding to each color combination. The gradient color data sequence includes a target color data in the color combination and intermediate color data required to gradient process the initial color data in the color combination to the corresponding target color data. The intermediate color data are arranged in an orderly manner.
[0013] In one possible implementation of the first aspect, acquiring the target color data includes:
[0014] Obtain the grouping categories of light sources in the target display area and the number of groups in each grouping category, wherein the grouping categories include a first category and a second category;
[0015] A first target color data is determined, which is selected from the historical color data set collected by the color sensor, and the number of the first target color data is determined according to the number of groups in the first category;
[0016] A second target color data is determined, which is the current color data collected by the color sensor, and the number of the second target color data is determined according to the number of groups in the second category;
[0017] The first target color data and the second target color data are randomly sorted to obtain the target color data. The number of target color data is the sum of the number of groups in the first category and the number of groups in the second category.
[0018] In one possible implementation of the first aspect, the target display area includes a first target display area and a second target display area, and controlling the color display of the target display area based on the gradient color data sequence includes:
[0019] Determine the first target display area corresponding to the first category, and the second target display area corresponding to the second category;
[0020] Establish a mapping relationship between the first target color data and the first target display area, and a mapping relationship between the second target color data and the second target display area;
[0021] Control the light source in the first target display area to display colors according to the gradient color data sequence corresponding to the first target color data;
[0022] Control the light source in the second target display area to display colors according to the gradient color data sequence corresponding to the second target color data.
[0023] In one possible implementation of the first aspect, controlling the color display of the target display area based on the gradient color data sequence includes:
[0024] Obtain the user's display requirements, including the color display duration of the target display area;
[0025] Based on the display duration, determine the display interval duration of the intermediate color data in the gradient color data sequence;
[0026] The light source in the target display area is controlled to display colors based on the gradient color data sequence and the display interval duration.
[0027] In one possible implementation of the first aspect, the light source display control method further includes:
[0028] Obtain the user's adjustment instructions;
[0029] Based on the adjustment instructions, the initial color data and target color data are reacquired.
[0030] Based on the revised initial color data and the revised target color data, gradient processing is performed to obtain multiple revised gradient color data sequences;
[0031] Based on the revised gradient color data sequence, the color display of the target display area is controlled.
[0032] Secondly, embodiments of this application provide a light source display control device, including:
[0033] An initial data acquisition unit is used to acquire initial color data, wherein the initial color data is the color data currently corresponding to the target display area;
[0034] A target data acquisition unit is used to acquire target color data, which is collected by a color sensor according to preset requirements, wherein there are multiple target color data.
[0035] A data processing unit is configured to perform gradient processing based on the initial color data and multiple target color data to obtain gradient color data sequences corresponding to the target color data respectively. The gradient color data sequence includes a target color data and intermediate color data required to gradient process an initial color data to the target color data.
[0036] A light source display control unit is used to control the color display of the light source in the target display area based on the gradient color data sequence.
[0037] In one possible implementation of the second aspect, the data processing unit includes:
[0038] The relationship correspondence module is used to establish a correspondence between the initial color data and multiple target color data to obtain multiple color combinations, wherein each color combination includes an initial color data and its corresponding target color data.
[0039] The gradient processing module is used to perform gradient processing on the color combinations respectively to obtain a gradient color data sequence corresponding to each color combination. The gradient color data sequence includes a target color data in the color combination and intermediate color data required to gradient process the initial color data in the color combination to the corresponding target color data. The intermediate color data is arranged in an orderly manner.
[0040] In one possible implementation of the second aspect, the target data acquisition unit includes:
[0041] The grouping information acquisition module is used to acquire the grouping category of the light source in the target display area and the number of groups in each grouping category, wherein the grouping category includes a first category and a second category;
[0042] The first data determination module is used to determine the first target color data, which is selected from the historical color data set collected by the color sensor, and the number of the first target color data is determined according to the number of groups of the first category.
[0043] The second data determination module is used to determine the second target color data, which is the current color data collected by the color sensor, and the number of the second target color data is determined according to the number of groups in the second category;
[0044] The target data acquisition module is used to randomly sort the first target color data and the second target color data to obtain the target color data, wherein the number of target color data is the sum of the number of groups in the first category and the number of groups in the second category.
[0045] In one possible implementation of the second aspect, the target display area includes a first target display area and a second target display area, and the light source display control unit includes:
[0046] The display sub-region determination module is used to determine the first target display area corresponding to the first category and the second target display area corresponding to the second category;
[0047] The relationship mapping module is used to establish a mapping relationship between the first target color data and the first target display area, and a mapping relationship between the second target color data and the second target display area;
[0048] The first display control module is used to control the light source in the first target display area and display colors according to the gradient color data sequence corresponding to the first target color data;
[0049] The second display control module is used to control the light source in the second target display area and display colors according to the gradient color data sequence corresponding to the second target color data.
[0050] In one possible implementation of the second aspect, the light source display control unit includes:
[0051] The requirement acquisition module is used to acquire the user's display requirements, including the color display duration of the target display area;
[0052] The display interval determination module is used to determine the display interval duration of the intermediate color data in the gradient color data sequence based on the display duration.
[0053] The light source display control module is used to control the light source in the target display area and to display colors based on the gradient color data sequence and the display interval duration.
[0054] In one possible implementation of the second aspect, the light source display control method further includes:
[0055] The update instruction acquisition unit is used to acquire the user's update instruction;
[0056] The data acquisition unit is used to reacquire the initial color data and the target color data based on the update instruction;
[0057] The gradient processing unit is updated to perform gradient processing based on the revised initial color data and the revised target color data, resulting in multiple revised gradient color data sequences.
[0058] The display control unit is updated to control the color display of the target display area based on the revised gradient color data sequence.
[0059] Thirdly, embodiments of this application provide an intelligent device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the light source display control method as described in the first aspect above.
[0060] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the light source display control method as described in the first aspect above.
[0061] Fifthly, embodiments of this application provide a computer program product that, when run on a smart device, causes the smart device to execute the light source display control method as described in the first aspect above.
[0062] In this embodiment, initial color data and multiple target color data are acquired. The target color data is collected by a color sensor according to preset requirements. Then, based on the initial color data and the multiple target color data, gradient processing is performed to obtain gradient color data sequences corresponding to the target color data. Each gradient color data sequence includes one target color data and intermediate color data required to gradient an initial color data to the target color data. Finally, based on the gradient color data sequence, the color display of the light source in the target display area is controlled. This solution enables the light source in the target display area to achieve multi-color display, which not only makes the light display effect of the light source more compatible with the surrounding environment, but also provides users with a better visual experience, enhances immersion, and improves the effectiveness of light source display control. Attached Figure Description
[0063] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0064] Figure 1 This is a flowchart illustrating the implementation of the light source display control method provided in the embodiments of this application;
[0065] Figure 2 This is a flowchart illustrating the specific implementation of step S102 of the light source display control method provided in this application embodiment;
[0066] Figure 3 A flowchart illustrating the specific implementation of step S103 of the light source display control method provided in this application embodiment;
[0067] Figure 4 This is a flowchart illustrating a specific implementation of step S104 of the light source display control method provided in this application embodiment;
[0068] Figure 5 This is another specific implementation flowchart of step S104 of the light source display control method provided in the embodiments of this application;
[0069] Figure 6 This is a flowchart illustrating the specific implementation of a light source display control method provided in another embodiment of this application;
[0070] Figure 7 This is a structural block diagram of the light source display control device provided in the embodiments of this application;
[0071] Figure 8 This is a schematic diagram of the smart device provided in the embodiments of this application. Detailed Implementation
[0072] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.
[0073] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.
[0074] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0075] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."
[0076] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0077] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0078] Some technologies use color sensors to collect color data. Currently, color sensors can only collect one color at a time for light sources such as RGB LED strips or RGB LED strips. As a result, these light sources can only display one color. The limited color sampling by color sensors leads to the light source display effect not matching the surrounding environment well, resulting in insufficient visual experience and immersion for users.
[0079] Therefore, this application provides a light source display control method. By acquiring multiple target color data, and then gradually processing the initial color data of the target display area to the target color data to obtain a gradient color data sequence, the color display of the light source in the target display area is controlled based on the gradient color data sequence. This not only enables the light source to achieve multi-color display, but also makes the light display effect of the light source more compatible with the surrounding environment, providing users with a better visual experience, enhancing immersion, and improving the effectiveness of light source display control.
[0080] The light source display control method provided in this application can be applied to smart devices such as mobile devices and tablets. This application does not impose any restrictions on the specific type of smart device.
[0081] Figure 1 The implementation flow of the light source display control method provided in this application embodiment is illustrated. The method flow includes steps S101 to S104. The specific implementation principle of each step is as follows:
[0082] Step S101: Obtain initial color data, wherein the initial color data is the color data currently corresponding to the target display area.
[0083] In this embodiment, the color data currently corresponding to the target display area is obtained as the initial color data. The target display area can specifically be a light strip. The number of initial color data points is the same as the total number of light source groups within the target area.
[0084] The initial color data can be all the same color data or different color data, depending on the current color display of the target display area. The initial color data is dynamically changing.
[0085] Step S102: Acquire target color data, which is obtained by a color sensor according to preset requirements. There are multiple target color data.
[0086] In this embodiment, the color sensor collects color data from the display screen or the surrounding environment according to preset requirements. These preset requirements can be system-defined or modified according to user instructions. The number of target color data points is determined based on the total number of light source groups within the target area. Specifically, the number of target color data points is the same as the total number of light source groups within the target area.
[0087] In this embodiment of the application, the target color data changes dynamically according to the acquisition cycle of the color sensor.
[0088] As one embodiment of this application, Figure 2 The specific implementation flow of step S102 of the light source display control method provided in this application embodiment is shown below:
[0089] A1: Obtain the grouping categories of light sources in the target display area and the number of groups in each grouping category. The grouping categories include a first category and a second category. The number of light sources in different grouping categories is different.
[0090] In some implementations, the total number of groups in the target display area is N, where the number of groups for the first category of light sources is X1, X1 = N / 2, and the number of groups for the second category of light sources is X2, X2 = N / 2 + N%2, X1 + X2 = N. The total number of light sources in the target display area is A, the number of light sources in each group of the first category is a1, a1 = A / N, and the number of light sources in each group of the second category is a2, a2 = a1 + 1.
[0091] A2: Determine the first target color data, which is selected from the historical color data set collected by the color sensor. The number of the first target color data is determined according to the number of groups in the first category.
[0092] In this embodiment, the number of the first target color data is the same as the number of groups in the first category. The number of historical color data in the aforementioned historical color data set is greater than the number of groups in the first category. The historical color data set includes color data collected by a color sensor over time. A number of historical color data, the same number of groups as the first category, are randomly selected from the historical color data set as the first target color data.
[0093] In one possible implementation, the historical color data set is updated based on the acquisition time of the color sensor. The historical color data in the set is stored in sorted order by acquisition time, and the number of historical color data is fixed. After storing the color data acquired by the color sensor at the most recent acquisition time, the historical color data acquired at the oldest acquisition time is deleted.
[0094] A3: Determine the second target color data. The second target color data is the current color data collected by the color sensor. The number of second target color data is determined according to the number of groups in the second category. The second target color data is the most recently collected color data by the color sensor that has not yet been stored in the historical color dataset. Specifically, the number of second target color data is the same as the number of groups in the second category.
[0095] In some implementations, when there is only one color sensor, the current color data collected by the color sensor is one, and the current color data collected by the color sensor is copied to obtain a second target color data with the same number of groups as the second category.
[0096] A4: The target color data is obtained by randomly sorting the first target color data and the second target color data. The number of target color data is the sum of the number of groups in the first category and the number of groups in the second category. The number of target color data is equal to the total number of groups of the light source in the target display area.
[0097] Step S103: Based on the initial color data and multiple target color data, perform gradient processing to obtain gradient color data sequences corresponding to the target color data respectively. The gradient color data sequence includes a target color data and intermediate color data required to gradient process an initial color data to the target color data.
[0098] In this embodiment, the number of gradient color data sequences is the same as the number of target color data.
[0099] For example, to gradient an initial color data Ya to a target color data XA, 10 intermediate color data Ya1, Ya2, Ya3...Ya are required. 10 .
[0100] In some implementations, the number of intermediate color data required to gradient an initial color data to a target color data can be a preset fixed value, or determined based on the color difference between the initial color data and the target color data.
[0101] In other implementations, the number of intermediate color data can be determined based on the display speed and display duration set by the user.
[0102] As an embodiment of this application, Figure 3 The specific implementation flow of step S103 of the light source display control method provided in this application embodiment is shown below:
[0103] B1: Establish a correspondence between the initial color data and multiple target color data to obtain multiple color combinations. Each color combination includes an initial color data and its corresponding target color data. The number of color combinations is the same as the number of target color data.
[0104] In this embodiment, the initial color data can be randomly combined with the target color data to ensure that there is one and only one initial color data and target color data in a color combination.
[0105] B2: Perform gradient processing on the color combinations to obtain gradient color data sequences corresponding to each color combination. The gradient color data sequence includes a target color data in the color combination and intermediate color data required to gradient process the initial color data in the color combination to the corresponding target color data. The intermediate color data is arranged in an orderly manner.
[0106] In this embodiment of the application, by establishing a correspondence between initial color data and target color data, the effectiveness and stability of display control can be improved, and the display effect can be guaranteed.
[0107] Step S104: Based on the gradient color data sequence, control the color display of the light source in the target display area.
[0108] In this embodiment, the target display area light source is controlled to sequentially display the intermediate color data and the color corresponding to the target color data in the gradient color data sequence.
[0109] Since both the initial color data and the target color data are dynamically changing, and the gradient color data sequence corresponding to the target color data is also dynamically changing, in this embodiment of the application, after a display cycle ends, the color display of the light source in the target display area is controlled in real time based on the dynamically changing gradient color data sequence, so that the light display effect of the light source can match the surrounding environment in real time, bringing users a better visual experience and enhancing immersion.
[0110] As one embodiment of this application, the target display area includes a first target display area and a second target display area, and the target color data includes first target color data and second target color data. Figure 4 A specific implementation flow of step S104 of the light source display control method provided in this application embodiment is shown below:
[0111] C1: Determine the first target display area corresponding to the first category, and the second target display area corresponding to the second category.
[0112] C2: Establish the mapping relationship between the first target color data and the first target display area, and the mapping relationship between the second target color data and the second target display area.
[0113] C3: Control the light source in the first target display area to display colors according to the gradient color data sequence corresponding to the first target color data.
[0114] For example, the first category corresponds to a first target display area, which includes X1 first target display sub-areas. X1 first target color data are associated with X1 first target display sub-areas, and the light source within one first target display sub-area is controlled to display color according to a gradient color data sequence corresponding to one first target color data. It should be noted that different first target display sub-areas correspond to different first target color data.
[0115] C4: Control the light source in the second target display area to display colors according to the gradient color data sequence corresponding to the second target color data.
[0116] For example, the second category corresponds to a second target display area, which includes X2 second target display sub-areas. X2 second target color data are associated with X2 second target display sub-areas, and the light source within one second target display sub-area is controlled to display color according to a gradient color data sequence corresponding to one second target color data. It should be noted that different second target display sub-areas correspond to different second target color data.
[0117] This application embodiment can realize color display in different areas. The light source displays different colors in different target display areas. In the same target display area, the light source displays different colors in different target display sub-areas. It effectively controls the light source to achieve multi-color display in different areas, better matches the surrounding environment, and thus brings users a better visual experience and enhances immersion.
[0118] As one embodiment of this application, Figure 5 Another specific implementation flow of step S104 of the light source display control method provided in the embodiment of this application is shown below:
[0119] D1: Obtain the user's display requirements, which include the color display duration of the target display area.
[0120] D2: Based on the display duration, determine the display interval duration of the intermediate color data in the gradient color data sequence.
[0121] D3: Control the light source in the target display area to display colors based on the gradient color data sequence and the display interval duration.
[0122] In this embodiment, the display interval of intermediate color data is determined based on the color display duration in the user's display requirements. Then, the light source of the target display area is controlled to sequentially display the intermediate color data and the color corresponding to the target color data in the gradient color data sequence based on the display interval, thereby enabling the light source to achieve a color gradient effect and enhancing the user experience.
[0123] As one embodiment of this application, Figure 6 Another specific implementation flow of the light source display control method provided in this application embodiment is shown below:
[0124] E1: Retrieve the user's update command.
[0125] In this embodiment, the user can input an update command via an application on the mobile device. The update command can be used to instruct the initial color data and target color data to be reacquired.
[0126] E2: Based on the update instruction, reacquire the initial color data and the target color data.
[0127] E3: Based on the re-processed initial color data and the re-processed target color data, perform gradient processing to obtain multiple re-processed gradient color data sequences.
[0128] E4: Based on the revised gradient color data sequence, control the color display of the target display area.
[0129] In the embodiments of this application, the specific contents of steps E2 to E3 can be referred to steps S101 to S104, and will not be repeated here.
[0130] In this embodiment, the initial color data and target color data are re-acquired by obtaining the user's update command, thereby controlling the target display area to update the color display, which can better meet user needs and enhance user experience.
[0131] In this embodiment, initial color data and multiple target color data are acquired. The target color data is collected by a color sensor according to preset requirements. Then, based on the initial color data and the multiple target color data, gradient processing is performed to obtain gradient color data sequences corresponding to the target color data. Each gradient color data sequence includes a target color data and intermediate color data required to gradient an initial color data to the target color data. Finally, based on the gradient color data sequence, the color display of the light source in the target display area is controlled. This solution enables the light source in the target display area to achieve multi-color display, which not only makes the light display effect of the light source more compatible with the surrounding environment, but also provides users with a better visual experience, enhances immersion, and improves the effectiveness of light source display control.
[0132] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0133] Corresponding to the light source display control method described in the above embodiments, Figure 7 A structural block diagram of the light source display control device provided in the embodiments of this application is shown. For ease of explanation, only the parts related to the embodiments of this application are shown.
[0134] Reference Figure 7 The light source display control device includes: an initial data acquisition unit 71, a target data acquisition unit 72, a data processing unit 73, and a light source display control unit 74, wherein:
[0135] The initial data acquisition unit 71 is used to acquire initial color data, which is the color data currently corresponding to the target display area;
[0136] The target data acquisition unit 72 is used to acquire target color data, which is collected by a color sensor according to preset requirements, and there are multiple target color data.
[0137] The data processing unit 73 is used to perform gradient processing based on the initial color data and multiple target color data to obtain gradient color data sequences corresponding to the target color data respectively. The gradient color data sequence includes a target color data and intermediate color data required to gradient process an initial color data to the target color data.
[0138] The light source display control unit 74 is used to control the color display of the light source in the target display area based on the gradient color data sequence.
[0139] As one possible implementation of this application, the data processing unit 73 includes:
[0140] The relationship correspondence module is used to establish a correspondence between the initial color data and multiple target color data to obtain multiple color combinations, wherein each color combination includes an initial color data and its corresponding target color data.
[0141] The gradient processing module is used to perform gradient processing on the color combinations respectively to obtain a gradient color data sequence corresponding to each color combination. The gradient color data sequence includes a target color data in the color combination and intermediate color data required to gradient process the initial color data in the color combination to the corresponding target color data. The intermediate color data is arranged in an orderly manner.
[0142] As one possible implementation of this application, the target data acquisition unit 72 includes:
[0143] The grouping information acquisition module is used to acquire the grouping category of the light source in the target display area and the number of groups in each grouping category, wherein the grouping category includes a first category and a second category;
[0144] The first data determination module is used to determine the first target color data, which is selected from the historical color data set collected by the color sensor, and the number of the first target color data is determined according to the number of groups of the first category.
[0145] The second data determination module is used to determine the second target color data, which is the current color data collected by the color sensor, and the number of the second target color data is determined according to the number of groups in the second category;
[0146] The target data acquisition module is used to randomly sort the first target color data and the second target color data to obtain the target color data, wherein the number of target color data is the sum of the number of groups in the first category and the number of groups in the second category.
[0147] As one possible implementation of this application, the target display area includes a first target display area and a second target display area, and the light source display control unit 74 includes:
[0148] The display sub-region determination module is used to determine the first target display area corresponding to the first category and the second target display area corresponding to the second category;
[0149] The relationship mapping module is used to establish a mapping relationship between the first target color data and the first target display area, and a mapping relationship between the second target color data and the second target display area;
[0150] The first display control module is used to control the light source in the first target display area and display colors according to the gradient color data sequence corresponding to the first target color data;
[0151] The second display control module is used to control the light source in the second target display area and display colors according to the gradient color data sequence corresponding to the second target color data.
[0152] As one possible implementation of this application, the light source display control unit 74 includes:
[0153] The requirement acquisition module is used to acquire the user's display requirements, including the color display duration of the target display area;
[0154] The display interval determination module is used to determine the display interval duration of the intermediate color data in the gradient color data sequence based on the display duration.
[0155] The light source display control module is used to control the light source in the target display area and to display colors based on the gradient color data sequence and the display interval duration.
[0156] As one possible implementation of this application, the light source display control method further includes:
[0157] The update instruction acquisition unit is used to acquire the user's update instruction;
[0158] The data acquisition unit is used to reacquire the initial color data and the target color data based on the update instruction;
[0159] The gradient processing unit is updated to perform gradient processing based on the revised initial color data and the revised target color data, resulting in multiple revised gradient color data sequences.
[0160] The display control unit is updated to control the color display of the target display area based on the revised gradient color data sequence.
[0161] In this embodiment, initial color data and multiple target color data are acquired. The target color data is collected by a color sensor according to preset requirements. Then, based on the initial color data and the multiple target color data, gradient processing is performed to obtain gradient color data sequences corresponding to the target color data. Each gradient color data sequence includes a target color data and intermediate color data required to gradient an initial color data to the target color data. Finally, based on the gradient color data sequence, the color display of the light source in the target display area is controlled. This solution enables the light source in the target display area to achieve multi-color display, which not only makes the light display effect of the light source more compatible with the surrounding environment, but also provides users with a better visual experience, enhances immersion, and improves the effectiveness of light source display control.
[0162] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.
[0163] This application embodiment also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements... Figures 1 to 6 The steps of any light source display control method are represented.
[0164] This application embodiment also provides a smart device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements... Figures 1 to 6 The steps of any light source display control method are represented.
[0165] This application also provides a computer program product that, when run on a server, causes the server to execute the implementation as described above. Figures 1 to 6 The steps of any light source display control method are represented.
[0166] Figure 8 This is a schematic diagram of a smart device provided in an embodiment of this application. Figure 8 As shown, the smart device 8 in this embodiment includes: a processor 80, a memory 81, and a computer program 82 stored in the memory 81 and executable on the processor 80. When the processor 80 executes the computer program 82, it implements the steps in the various light source display control method embodiments described above, for example... Figure 1Steps S101 to S104 are shown. Alternatively, when the processor 80 executes the computer program 82, it implements the functions of each module / unit in the above-described device embodiments, for example... Figure 7 The functions of units 71 to 74 are shown.
[0167] For example, the computer program 82 may be divided into one or more modules / units, which are stored in the memory 81 and executed by the processor 80 to complete this application. The one or more modules / units may be a series of computer-readable instruction segments capable of performing a specific function, which describe the execution process of the computer program 82 in the smart device 8.
[0168] The intelligent device 8 may include, but is not limited to, a processor 80 and a memory 81. Those skilled in the art will understand that... Figure 8 This is merely an example of the smart device 8 and does not constitute a limitation on the smart device 8. It may include more or fewer components than shown, or combine certain components, or different components. For example, the smart device 8 may also include input / output devices, network access devices, buses, etc.
[0169] The processor 80 can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.
[0170] The memory 81 can be an internal storage unit of the smart device 8, such as a hard drive or memory of the smart device 8. The memory 81 can also be an external storage device of the smart device 8, such as a plug-in hard drive, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card equipped on the smart device 8. Furthermore, the memory 81 can include both internal and external storage units of the smart device 8. The memory 81 is used to store the computer program and other programs and data required by the smart device. The memory 81 can also be used to temporarily store data that has been output or will be output.
[0171] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.
[0172] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0173] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include at least: any entity or device capable of carrying computer program code to a device / terminal equipment, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.
[0174] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0175] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A light source display control method characterized by comprising: The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing method and device. The application relates to a color data processing The light source in the target display area is controlled to display colors based on the gradient color data sequence, and the colors displayed by the light source in different target display areas are different, and the colors displayed by the light source in different target display sub-areas in the same target display area are also different.
2. The light source display control method according to claim 1, characterized by, The intermediate color data are arranged in order.
3. The light source display control method according to claim 1, characterized by, The number of the target color data is the sum of the number of the first type of groups and the number of the second type of groups.
4. The light source display control method according to claim 3, characterized by, The target display area includes a first target display area and a second target display area. The color display of the target display area is controlled based on the gradient color data sequence, including: The first target display area corresponding to the first type is determined, and the second target display area corresponding to the second type is determined; A mapping relationship between the first target color data and the first target display area and a mapping relationship between the second target color data and the second target display area are established; The light source in the first target display area is controlled to display colors according to the gradient color data sequence corresponding to the first target color data; The light source in the second target display area is controlled to display colors according to the gradient color data sequence corresponding to the second target color data.
5. The light source display control method according to any one of claims 1 to 4, characterized by, The color display of the target display area is controlled based on the gradient color data sequence, including: The display requirement of a user is obtained, and the display requirement includes a display duration of the target display area; Based on the display duration, a display interval duration of intermediate color data in the gradient color data sequence is determined; The light source in the target display area is controlled to display colors based on the gradient color data sequence and the display interval duration.
6. The light source display control method according to any one of claims 1 to 4, characterized by, The light source display control method further includes: An update instruction of a user is obtained; Based on the update instruction, the initial color data and the target color data are re-acquired; Based on the re-acquired initial color data and the re-acquired target color data, gradient processing is performed to obtain a new plurality of gradient color data sequences; The color display of the target display area is controlled based on the new plurality of gradient color data sequences.
7. A light source display control device, characterized by comprising: It includes: An initial data acquisition unit is configured to acquire initial color data, the initial color data being color data currently corresponding to a target display area, the initial color data dynamically changing; A target data acquisition unit is configured to acquire target color data, the target color data being obtained by a color sensor collecting color rendering data of a display screen or color rendering data of a surrounding environment according to a preset requirement, wherein the target color data has a plurality of target color data, and the target color data dynamically changes according to a collection period of the color sensor; and the target data acquisition unit includes: The packet information acquisition module is configured to acquire a grouping category of the light sources in the target display region and a grouping number of each grouping category, the grouping category includes a first category and a second category, the number of light sources in different grouping categories is different, and a total grouping number in the target display region is N, wherein the grouping number of the first category light sources is X1, X1=N / 2, the grouping number of the second category light sources is X2, X2=N / 2+N%2, and X1+X2=N; a total number of the light sources in the target display region is A, the number of light sources in each group in the first category is a1, a1=A / N, and the number of light sources in each group in the second grouping category is a2, a2=a1+1; The first data determination module is configured to determine first target color data, the first target color data is selected from a historical color data set collected by the color sensor, and the number of the first target color data is determined according to the grouping number of the first category; The second data determination module is configured to determine second target color data, the second target color data is current color data collected by the color sensor, and the number of the second target color data is determined according to the grouping number of the second category; when the color sensor is one, the current color data collected by the color sensor is one, and the current color data collected by the color sensor is copied to obtain second target color data with the same number as the grouping number of the second category; The target data acquisition module is configured to obtain the target color data by randomly sorting the first target color data and the second target color data; The data processing unit is configured to perform gradient processing based on the initial color data and the plurality of target color data to obtain a gradient color data sequence corresponding to each of the target color data, the gradient color data sequence includes one target color data and intermediate color data required for gradient processing of one initial color data to the target color data; the number of the intermediate color data is determined according to a display speed and a display time length set by a user; and the data processing unit includes: The relationship corresponding module is configured to establish a corresponding relationship between the initial color data and the plurality of target color data to obtain a plurality of color combinations, the color combination includes one initial color data and corresponding target color data; and the initial color data and the target color data are randomly combined to ensure that there is only one initial color data and target color data in one color combination; The gradient processing module is configured to perform gradient processing on the color combinations respectively to obtain a gradient color data sequence corresponding to each of the color combinations; The light source display control unit is configured to control the light sources in the target display region to display colors based on the gradient color data sequence, the colors displayed by the light sources in different target display regions are different, and the colors displayed by the light sources in different target display sub-regions in the same target display region are also different.
8. The light source display control apparatus according to claim 7, wherein The light source display control unit includes: The demand acquisition module is configured to acquire a display demand of a user, and the display demand includes a display time length of the target display region. a display interval determination module, configured to determine a display interval duration of intermediate color data in the gradient color data sequence based on the display duration; a light source display control module, configured to control light sources in the target display region to display colors based on the gradient color data sequence and the display interval duration.
9. An intelligent device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, The processor implements the light source display control method in any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium storing a computer program, the computer program comprising instructions that, when executed by a computer, cause the computer to perform the method of any one of claims 1 to 9. The computer program, when executed by the processor, implements the light source display control method in any one of claims 1 to 6.
Citation Information
Patent Citations
Intelligent environment light control method and system, computer equipment and storage medium
CN112996196A
Method and device for controlling gradual change effect of intelligent bulb
CN114245545A