CN116056294A - Light source display control method and device, storage medium and intelligent equipment - Google Patents

Light source display control method and device, storage medium and intelligent equipment Download PDF

Info

Publication number
CN116056294A
CN116056294A CN202211699666.1A CN202211699666A CN116056294A CN 116056294 A CN116056294 A CN 116056294A CN 202211699666 A CN202211699666 A CN 202211699666A CN 116056294 A CN116056294 A CN 116056294A
Authority
CN
China
Prior art keywords
color data
target
light source
display
color
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211699666.1A
Other languages
Chinese (zh)
Inventor
陈禹东
吴凯华
唐林
孙斌
徐盎
张少峰
徐�明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jixian Technology Co ltd
Original Assignee
Shenzhen Jixian Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Jixian Technology Co ltd filed Critical Shenzhen Jixian Technology Co ltd
Priority to CN202211699666.1A priority Critical patent/CN116056294A/en
Publication of CN116056294A publication Critical patent/CN116056294A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/165Controlling the light source following a pre-assigned programmed sequence; Logic control [LC]
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/20Controlling the colour of the light
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/105Controlling the light source in response to determined parameters
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/105Controlling the light source in response to determined parameters
    • H05B47/11Controlling the light source in response to determined parameters by determining the brightness or colour temperature of ambient light
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Liquid Crystal Display Device Control (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The application is applicable to the technical field of display control, and provides a light source display control method, a device, a storage medium and intelligent equipment, wherein the method comprises the following steps: acquiring initial color data, wherein the initial color data is currently corresponding to a target display area; acquiring a plurality of target color data, and carrying out gradual change processing based on the initial color data and the target color data to obtain gradual change color data sequences corresponding to the target color data respectively, wherein the gradual change color data sequences comprise one target color data and intermediate color data required by gradual change processing of the initial color data to the target color data; and controlling the color display of the target display area light source based on the gradient color data sequence. According to the method and the device, the target display area light source can achieve multicolor display, the lamplight display effect of the light source can be matched with the surrounding environment, and the user can be provided with better visual experience and immersion sense.

Description

Light source display control method and device, storage medium and intelligent equipment
Technical Field
The application relates to the technical field of display control, in particular to a light source display control method, a light source display control device, a storage medium and intelligent equipment.
Background
Along with the rapid development of economy and the continuous improvement of living standard, people have higher and higher requirements on life and entertainment. The atmosphere lamp is used as the decorative lighting with wide application, more and more of the atmosphere lamp is used in daily life, the atmosphere lamp can be used for decorative lighting, the atmosphere sense can be increased by controlling the light color change, and the entertainment experience of a user is improved.
Currently, the application of the LED lamp strip as an atmosphere lamp is also increasing. The RGB lamp strip is obtained by welding an LED lamp on a copper wire or a strip-shaped flexible circuit board by a special processing technology, and connecting a power supply to emit light. The LED lamp strip is convenient to use and wide in application, and can realize LED color change. However, the color of the LED lamp strip can be changed along with the change of the color of the surrounding environment, but the color sensor can only collect one color at a time, the LED lamp strip can only display a single color at a time, the display effect cannot be well matched with the surrounding environment, and the visual experience and the immersion feeling of a user are insufficient.
Disclosure of Invention
The embodiment of the application provides a light source display control method, a device, a storage medium and intelligent equipment, which can solve the problem that the light source display effect cannot be well matched with the surrounding environment due to single color collection of the current color sensor.
In a first aspect, an embodiment of the present application provides a light source display control method, including:
acquiring initial color data, wherein the initial color data is currently corresponding to a target display area;
acquiring target color data, wherein the target color data are acquired by a color sensor according to preset requirements, and the target color data are multiple;
performing gradient processing based on the initial color data and a plurality of target color data to obtain gradient color data sequences corresponding to the target color data respectively, wherein the gradient color data sequences comprise target color data and intermediate color data required by gradient processing of the initial color data to the target color data;
and controlling the color display of the target display area light source based on the gradient color data sequence.
In a possible implementation manner of the first aspect, the performing a gradation process based on the initial color data and the plurality of target color data to obtain a gradation color data sequence corresponding to the target color data respectively includes:
Establishing corresponding relations between the initial color data and a plurality of target color data to obtain a plurality of color combinations, wherein the color combinations comprise one initial color data and corresponding target color data;
and respectively carrying out gradient treatment on the color combinations to obtain gradient color data sequences corresponding to the color combinations, wherein the gradient color data sequences comprise target color data in the color combinations and intermediate color data required by gradient treatment of initial color data in the color combinations to the corresponding target color data, and the intermediate color data are orderly arranged.
In a possible implementation manner of the first aspect, the acquiring the target color data includes:
acquiring grouping categories of light sources in the target display area and grouping numbers of the grouping categories, wherein the grouping categories comprise a first category and a second category;
determining first target color data, wherein the first target color data is selected from a historical color data set acquired by the color sensor, and the number of the first target color data is determined according to the grouping number of the first category;
determining second target color data, wherein the second target color data is current color data acquired by the color sensor, and the number of the second target color data is determined according to the grouping number of the second category;
And after the first target color data and the second target color data are randomly sequenced, the target color data are obtained, wherein the number of the target color data is the sum of the grouping number of the first category and the grouping number of the second category.
In a possible implementation manner of the first aspect, the target display area includes a first target display area and a second target display area, and the controlling, based on the gradient color data sequence, color display of the target display area includes:
determining a first target display area corresponding to the first category and a second target display area corresponding to the second category;
establishing a mapping relation between the first target color data and the first target display area and a mapping relation between the second target color data and the second target display area;
controlling a light source in the first target display area, and performing color display according to a gradual change color data sequence corresponding to the first target color data;
and controlling the light source in the second target display area, and performing color display according to the gradual change color data sequence corresponding to the second target color data.
In a possible implementation manner of the first aspect, the controlling, based on the gradient color data sequence, color display of the target display area includes:
acquiring a display requirement of a user, wherein the display requirement comprises a color development time length of the target display area;
determining a display interval duration of intermediate color data in the gradient color data sequence based on the display duration;
and controlling the light source in the target display area, and performing color display based on the gradient color data sequence and the display interval duration.
In a possible implementation manner of the first aspect, the light source display control method further includes:
acquiring an adjustment instruction of a user;
based on the adjustment instruction, re-acquiring initial color data and target color data;
performing gradient processing based on the restored initial color data and the restored target color data to obtain a plurality of restored gradient color data sequences;
and controlling the color display of the target display area based on the renewed gradient color data sequence.
In a second aspect, an embodiment of the present application provides a light source display control device, including:
An initial data acquisition unit, configured to acquire initial color data, where the initial color data is color data currently corresponding to a target display area;
the target data acquisition unit is used for acquiring target color data, wherein the target color data are acquired by a color sensor according to preset requirements, and the target color data are multiple;
the data processing unit is used for carrying out gradual change processing based on the initial color data and a plurality of target color data to obtain gradual change color data sequences corresponding to the target color data respectively, wherein the gradual change color data sequences comprise one target color data and intermediate color data required by gradual change processing of the initial color data to the target color data;
and the light source display control unit is used for controlling the color display of the light source of the target display area based on the gradient color data sequence.
In a possible implementation manner of the second aspect, the data processing unit includes:
the relation correspondence module is used for establishing correspondence between the initial color data and a plurality of target color data to obtain a plurality of color combinations, wherein the color combinations comprise one initial color data and the corresponding target color data;
The color combination processing module is used for respectively carrying out gradient processing on the color combinations to obtain gradient color data sequences corresponding to the color combinations, wherein the gradient color data sequences comprise target color data in the color combinations and intermediate color data required by gradient processing of initial color data in the color combinations to the corresponding target color data, and the intermediate color data are orderly arranged.
In a possible implementation manner of the second aspect, the target data acquisition unit includes:
the grouping information acquisition module is used for acquiring grouping categories of the light sources in the target display area and grouping numbers of the grouping categories, wherein the grouping categories comprise a first category and a second category;
the first data determining module is used for determining first target color data, the first target color data are selected from a historical color data set acquired 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 determining module is used for determining second target color data, the second target color data are current color data acquired by the color sensor, and the number of the second target color data is determined according to the grouping number of the second category;
And the target data acquisition module is used for obtaining the target color data after the first target color data and the second target color data are randomly sequenced, wherein the number of the target color data is the sum of the grouping number of the first category and the grouping number of the second category.
In a possible implementation manner 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:
the display sub-area determining module is used for determining a first target display area corresponding to the first category and a second target display area corresponding to the second category;
the relation mapping module is used for establishing a mapping relation between the first target color data and the first target display area and a mapping relation between the second target color data and the second target display area;
the first display control module is used for controlling the light source in the first target display area and carrying out color display according to the gradual change color data sequence corresponding to the first target color data;
and the second display control module is used for controlling the light source in the second target display area and carrying out color display according to the gradual change color data sequence corresponding to the second target color data.
In a possible implementation manner of the second aspect, the light source display control unit includes:
the demand acquisition module is used for acquiring the display demand of a user, wherein the display demand comprises the color development time length of the target display area;
a display interval determining module, configured to determine a display interval duration of intermediate color data in the gradient color data sequence based on the display duration;
and the light source display control module is used for controlling the light source in the target display area and carrying out color display based on the gradient color data sequence and the display interval duration.
In a possible implementation manner of the second aspect, the light source display control method further includes:
an update instruction acquisition unit configured to acquire an update instruction of a user;
the data acquisition unit is used for acquiring the initial color data and the target color data again based on the updating instruction;
the updating gradual change processing unit is used for carrying out gradual change processing based on the renewed initial color data and the renewed target color data to obtain a plurality of renewed gradual change color data sequences;
and the updating display control unit is used for controlling the color display of the target display area based on the renewed gradient color data sequence.
In a third aspect, an embodiment of the present application provides an intelligent device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the light source display control method according to the first aspect when executing the computer program.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium storing a computer program, which when executed by a processor implements the light source display control method according to the first aspect described above.
In a fifth aspect, embodiments of the present application provide a computer program product, which when run on a smart device, causes the smart device to perform the light source display control method as described in the first aspect above.
According to the embodiment of the application, initial color data and a plurality of target color data are acquired by a color sensor according to preset requirements, then gradual change processing is carried out on the basis of the initial color data and the plurality of target color data to obtain gradual change color data sequences corresponding to the target color data respectively, the gradual change color data sequences comprise one target color data, one initial color data is gradually changed to middle color data required by the target color data, and finally color display of the light source of the target display area is controlled on the basis of the gradual change color data sequences. According to the method and the device, the target display area light source can achieve multicolor display, the lamplight display effect of the light source can be matched with the surrounding environment, the user can be better visually experienced, immersion is enhanced, and the effectiveness of light source display control is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required for the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of an implementation of a light source display control method provided in an embodiment of the present application;
fig. 2 is a flowchart of a specific implementation of step S102 of the light source display control method provided in the embodiment of the present application;
fig. 3 is a flowchart of a specific implementation of step S103 of the light source display control method provided in the embodiment of the present application;
fig. 4 is a flowchart of a specific implementation of step S104 of the light source display control method provided in the embodiment of the present application;
fig. 5 is a flowchart of another implementation of step S104 of the light source display control method according to the embodiment of the present application;
FIG. 6 is a flowchart of a specific implementation of a light source display control method according to another embodiment of the present application;
fig. 7 is a block diagram of a light source display control apparatus according to an embodiment of the present application;
Fig. 8 is a schematic diagram of an intelligent device provided in an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
In addition, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
Color sensors may be employed in some techniques to collect color data. At present, the color sensor can only collect one color at a time for the light sources such as RGB (red, green and blue) lamp strips or magical lamp strips, and the light sources such as the RGB lamp strips or magical lamp strips can only display one color, and the color sensor can only collect a single color, so that the display effect of the light source cannot be well matched with the surrounding environment, and the visual experience and the immersion feeling of a user are insufficient.
Therefore, the application provides a light source display control method, through obtaining a plurality of target color data, then gradually processing initial color data of a target display area to target color data to obtain a gradually changed color data sequence, and then controlling color display of a light source of the target display area based on the gradually changed color data sequence, so that multicolor display of the light source can be realized, the light display effect of the light source can be more matched with the surrounding environment, better visual experience is brought to a user, immersion sense is enhanced, and the effectiveness of light source display control is improved.
The light source display control method provided by the embodiment of the application can be applied to intelligent equipment such as mobile equipment and tablet computers, and the specific type of the intelligent equipment is not limited.
Fig. 1 shows an implementation flow of the light source display control method provided in the embodiment of the present application, where the method flow includes steps S101 to S104. The specific implementation principle of each step is as follows:
step S101: and acquiring initial color data, wherein the initial color data is the color data currently corresponding to the target display area.
In the embodiment of the application, the color data currently corresponding to the target display area is obtained as the initial color data. The target display area may specifically be a light strip. The number of the initial color data is the same as the total number of the groups of the light sources in the target area.
The initial color data may be all the same color data or may be different color data, and may specifically be determined according to the current color display of the target display area. The initial color data is dynamically changing.
Step S102: and acquiring target color data, wherein the target color data are acquired by a color sensor according to preset requirements, and the target color data are multiple.
In the embodiment of the application, the color sensor collects color development data of the display screen or color development data of surrounding environment according to preset requirements, wherein the preset requirements can be preset for the system and can be changed according to user instructions. The number of the target color data is determined according to the total number of groups of the light sources in the target area. Specifically, the number of the target color data is the same as the total number of the groups of the light sources in the target area.
In this embodiment of the present application, the target color data dynamically changes according to a collection period of the color sensor.
As an embodiment of the present application, fig. 2 shows a specific implementation flow of step S102 of the light source display control method provided in the embodiment of the present application, which is described in detail below:
a1: and acquiring grouping categories of the light sources in the target display area and grouping numbers of the grouping categories, wherein the grouping categories comprise a first category and a second category. The number of light sources in different grouping categories is different.
In some embodiments, the total number of packets in the target display area is N, where the number of packets of the first type of light source is X1, x1=n/2, and the number of packets of the second type of light source 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 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.
A2: and determining first target color data, wherein the first target color data is selected from a historical color data set acquired by the color sensor, and the number of the first target color data is determined according to the grouping number of the first category.
In this embodiment, the number of the first target color data is the same as the number of the packets of the first class. The number of the historical color data in the historical color data set is larger than the grouping number of the first category. The historical color data set comprises color data acquired by a color sensor in a time sharing mode. And randomly selecting the historical color data with the same number as the grouping number of the first category from the historical color data set as first target color data.
In one possible embodiment, the historical color data set is updated according to the acquisition time of the color sensor. The historical color data in the historical color data set are stored in sequence according to the collection time, the number of the historical color data is fixed, and after the color data with the latest collection time of the color sensor is stored, the historical color data with the longest collection time is deleted.
A3: and determining second target color data, wherein the second target color data is current color data acquired by the color sensor, and the number of the second target color data is determined according to the grouping number of the second category. The second target color data is the color data which is acquired by the color sensor and is not stored in the historical color data set. Specifically, the number of the second target color data is the same as the number of packets of the second category.
In some embodiments, 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 number of the packets of the second category.
A4: and after the first target color data and the second target color data are randomly sequenced, the target color data are obtained, wherein the number of the target color data is the sum of the grouping number of the first category and the grouping number of the second category. The number of the target color data is equal to the total grouping number of the target display area light sources.
Step S103: and carrying out gradient processing based on the initial color data and a plurality of target color data to obtain gradient color data sequences corresponding to the target color data respectively, wherein the gradient color data sequences comprise target color data and intermediate color data required by gradient processing of the initial color data to the target color data.
In this embodiment, the number of the gradation color data sequences is the same as the number of the target color data.
Illustratively, gradation processing of one initial color data Ya to one target color data XA requires 10 intermediate color data Ya 1 、Ya 2 、Ya 3 …Ya 10
In some embodiments, the number of intermediate color data required for performing the gradation processing on one initial color data to the target color data may be a preset fixed value, or may be determined according to a color difference between the initial color data and the target color data.
In other embodiments, the number of intermediate color data may be determined according to a display speed and a display duration set by a user.
As an embodiment of the present application, fig. 3 shows a specific implementation flow of step S103 of the light source display control method provided in the embodiment of the present application, which is described in detail below:
b1: and establishing corresponding relations between the initial color data and a plurality of target color data to obtain a plurality of color combinations, wherein the color combinations comprise one initial color data and the corresponding target color data. The number of the color combinations is the same as the number of the target color data.
In this embodiment, the initial color data may be randomly combined with the target color data, so as to ensure that there is only one initial color data and target color data in one color combination.
B2: and respectively carrying out gradient treatment on the color combinations to obtain gradient color data sequences corresponding to the color combinations, wherein the gradient color data sequences comprise target color data in the color combinations and intermediate color data required by gradient treatment of initial color data in the color combinations to the corresponding target color data, and the intermediate color data are orderly arranged.
In the embodiment of the application, the effectiveness and stability of display control can be improved and the display effect is ensured by establishing the corresponding relation between the initial color data and the target color data.
Step S104: and controlling the color display of the target display area light source based on the gradient color data sequence.
In this embodiment of the present application, the target display area light source is controlled to sequentially display the intermediate color data in the gradient color data sequence and the color corresponding to the target color data.
Because the initial color data and the target color data are dynamically changed, and the gradient color data sequence corresponding to the target color data is also dynamically changed, in the embodiment of the application, after one display period is finished, the color display of the light source in the target display area is controlled in real time based on the dynamically changed gradient color data sequence, so that the light display effect of the light source can be matched with the surrounding environment in real time, better visual experience is brought to a user, and the immersion sense is enhanced.
As an embodiment of the present 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, fig. 4 shows a specific implementation flow of step S104 of the light source display control method provided in the embodiment of the present application, which is described in detail below:
c1: and determining a first target display area corresponding to the first category and a second target display area corresponding to the second category.
C2: and establishing a mapping relation between the first target color data and the first target display area and a mapping relation between the second target color data and the second target display area.
And C3: and controlling the light source in the first target display area, and performing color display according to the gradual change color data sequence corresponding to the first target color data.
The first category corresponds to a first target display area, the first target display area includes X1 first target display sub-areas, X1 first target color data corresponds to the X1 first target display sub-areas, and the light source in one first target display sub-area is controlled to perform color display according to a gradient color data sequence corresponding to the first target color data. It should be noted that the different first target display sub-areas correspond to different first target color data.
And C4: and controlling the light source in the second target display area, and performing color display according to the gradual change color data sequence corresponding to the second target color data.
The second category corresponds to a second target display area, the second target display area includes X2 second target display sub-areas, X2 second target color data corresponds to the X2 second target display sub-areas, and the light source in one second target display sub-area is controlled to perform color display according to a gradient color data sequence corresponding to the second target color data. It should be noted that the different second target display sub-areas correspond to different second target color data.
According to the embodiment of the application, the color display can be carried out in the different areas, the colors of the light source display in the different target display areas are different, the colors of the light source display in the different target display areas are also different in the same target display area, the light source is effectively controlled to realize the multi-color display in the different areas, the light source is better matched with the surrounding environment, and therefore better visual experience is brought to a user, and the immersion sense is enhanced.
As an embodiment of the present application, fig. 5 shows another specific implementation flow of step S104 of the light source display control method provided in the embodiment of the present application, which is described in detail below:
D1: and acquiring the display requirement of a user, wherein the display requirement comprises the color development time length of the target display area.
D2: and determining the display interval duration of the intermediate color data in the gradient color data sequence based on the display duration.
D3: and controlling the light source in the target display area, and performing color display based on the gradient color data sequence and the display interval duration.
In the embodiment of the application, the display interval duration of the intermediate color data is determined based on the color development duration in the display requirement of the user, then the target display area light source is controlled, the intermediate color data in the gradient color data sequence and the colors corresponding to the target color data are sequentially displayed based on the display interval duration, so that the light of the light source achieves the effect of color gradient, and the user experience is enhanced.
As an embodiment of the present application, fig. 6 shows another specific implementation flow of the light source display control method provided in the embodiment of the present application, which is described in detail below:
e1: and acquiring an updating instruction of the user.
In the embodiment of the application, the user can input the update instruction according to the application program in the mobile device. The update instructions may be used to instruct re-acquisition of the initial color data and the target color data.
E2: and re-acquiring the initial color data and the target color data based on the updating instruction.
E3: and carrying out gradual change processing based on the restored initial color data and the restored target color data to obtain a plurality of restored gradual change color data sequences.
E4: and controlling the color display of the target display area based on the renewed gradient color data sequence.
In the embodiment of the present application, the specific content of the step E2 to the step E3 may refer to the step S101 to the step S104, which is not described herein again.
In the embodiment of the application, the initial color data and the target color data are re-acquired by acquiring the updating instruction of the user, so that the target display area is controlled to update the color display, the user requirements can be better met, and the user experience is enhanced.
In this embodiment of the present application, initial color data and multiple target color data are acquired by a color sensor according to a preset requirement, then gradation processing is performed based on the initial color data and multiple target color data, so as to obtain gradation color data sequences corresponding to the target color data respectively, where the gradation color data sequences include one target color data, and one initial color data is subjected to gradation processing to intermediate color data required by the target color data, and finally color display of the target display area light source is controlled based on the gradation color data sequences. According to the method and the device, the target display area light source can achieve multicolor display, the lamplight display effect of the light source can be matched with the surrounding environment, the user can be better visually experienced, immersion is enhanced, and the effectiveness of light source display control is improved.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic of each process, and should not limit the implementation process of the embodiment of the present application in any way.
Fig. 7 shows a block diagram of a light source display control apparatus according to an embodiment of the present application, corresponding to the light source display control method described in the above embodiment, and for convenience of explanation, only the portions related to the embodiments of the present application are shown.
Referring to fig. 7, the light source display control apparatus includes: an initial data acquisition unit 71, a target data acquisition unit 72, a data processing unit 73, a light source display control unit 74, wherein:
an initial data obtaining unit 71, configured to obtain initial color data, where the initial color data is color data currently corresponding to a target display area;
a target data obtaining unit 72, configured to obtain target color data, where the target color data is obtained by a color sensor according to a preset requirement, and the target color data has a plurality of target color data;
a data processing unit 73, configured to perform a gradation process based on the initial color data and the plurality of target color data, to obtain gradation color data sequences corresponding to the target color data, respectively, where the gradation color data sequences include one target color data and intermediate color data required for gradation processing of one initial color data to the target color data;
A light source display control unit 74 for controlling the color display of the target display area light source based on the gradation color data sequence.
As a possible embodiment of the present application, the data processing unit 73 includes:
the relation correspondence module is used for establishing correspondence between the initial color data and a plurality of target color data to obtain a plurality of color combinations, wherein the color combinations comprise one initial color data and the corresponding target color data;
the color combination processing module is used for respectively carrying out gradient processing on the color combinations to obtain gradient color data sequences corresponding to the color combinations, wherein the gradient color data sequences comprise target color data in the color combinations and intermediate color data required by gradient processing of initial color data in the color combinations to the corresponding target color data, and the intermediate color data are orderly arranged.
As a possible embodiment of the present application, the target data acquisition unit 72 includes:
the grouping information acquisition module is used for acquiring grouping categories of the light sources in the target display area and grouping numbers of the grouping categories, wherein the grouping categories comprise a first category and a second category;
The first data determining module is used for determining first target color data, the first target color data are selected from a historical color data set acquired 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 determining module is used for determining second target color data, the second target color data are current color data acquired by the color sensor, and the number of the second target color data is determined according to the grouping number of the second category;
and the target data acquisition module is used for obtaining the target color data after the first target color data and the second target color data are randomly sequenced, wherein the number of the target color data is the sum of the grouping number of the first category and the grouping number of the second category.
As a possible embodiment of the present 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:
the display sub-area determining module is used for determining a first target display area corresponding to the first category and a second target display area corresponding to the second category;
The relation mapping module is used for establishing a mapping relation between the first target color data and the first target display area and a mapping relation between the second target color data and the second target display area;
the first display control module is used for controlling the light source in the first target display area and carrying out color display according to the gradual change color data sequence corresponding to the first target color data;
and the second display control module is used for controlling the light source in the second target display area and carrying out color display according to the gradual change color data sequence corresponding to the second target color data.
As a possible embodiment of the present application, the light source display control unit 74 includes:
the demand acquisition module is used for acquiring the display demand of a user, wherein the display demand comprises the color development time length of the target display area;
a display interval determining module, configured to determine a display interval duration of intermediate color data in the gradient color data sequence based on the display duration;
and the light source display control module is used for controlling the light source in the target display area and carrying out color display based on the gradient color data sequence and the display interval duration.
As a possible implementation manner of the present application, the light source display control method further includes:
an update instruction acquisition unit configured to acquire an update instruction of a user;
the data acquisition unit is used for acquiring the initial color data and the target color data again based on the updating instruction;
the updating gradual change processing unit is used for carrying out gradual change processing based on the renewed initial color data and the renewed target color data to obtain a plurality of renewed gradual change color data sequences;
and the updating display control unit is used for controlling the color display of the target display area based on the renewed gradient color data sequence.
In this embodiment of the present application, initial color data and multiple target color data are acquired by a color sensor according to a preset requirement, then gradation processing is performed based on the initial color data and multiple target color data, so as to obtain gradation color data sequences corresponding to the target color data respectively, where the gradation color data sequences include one target color data, and one initial color data is subjected to gradation processing to intermediate color data required by the target color data, and finally color display of the target display area light source is controlled based on the gradation color data sequences. According to the method and the device, the target display area light source can achieve multicolor display, the lamplight display effect of the light source can be matched with the surrounding environment, the user can be better visually experienced, immersion is enhanced, and the effectiveness of light source display control is improved.
It should be noted that, because the content of information interaction and execution process between the above devices/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein again.
The present embodiment also provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of any one of the light source display control methods as shown in fig. 1 to 6.
The embodiment of the application also provides an intelligent device, which comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the steps of any one of the light source display control methods shown in fig. 1 to 6 are realized when the processor executes the computer program.
The present embodiments also provide a computer program product which, when run on a server, causes the server to perform the steps of implementing any one of the light source display control methods as represented in fig. 1 to 6.
Fig. 8 is a schematic diagram of a smart device according to an embodiment of the present application. As shown in fig. 8, the smart device 8 of 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. The processor 80, when executing the computer program 82, implements the steps in the respective embodiments of the light source display control method described above, such as steps S101 to S104 shown in fig. 1. Alternatively, the processor 80, when executing the computer program 82, performs the functions of the modules/units of the apparatus embodiments described above, such as the functions of the units 71-74 shown in fig. 7.
By way of example, the computer program 82 may be partitioned into one or more modules/units that are stored in the memory 81 and executed by the processor 80 to complete the present application. The one or more modules/units may be a series of computer readable instruction segments capable of performing a specific function describing the execution of the computer program 82 in the smart device 8.
The smart device 8 may include, but is not limited to, a processor 80, a memory 81. It will be appreciated by those skilled in the art that fig. 8 is merely an example of the smart device 8 and is not meant to be limiting as the smart device 8 may include more or fewer components than shown, or may combine certain components, or different components, e.g., the smart device 8 may also include input-output devices, network access devices, buses, etc.
The processor 80 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 81 may be an internal storage unit of the smart device 8, such as a hard disk or a memory of the smart device 8. The memory 81 may also be an external storage device of the Smart device 8, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the Smart device 8. Further, the memory 81 may also include both an internal storage unit and an external storage device of the smart device 8. The memory 81 is used for storing the computer program as well as other programs and data required by the smart device. The memory 81 may also be used to temporarily store data that has been output or is to be output.
It should be noted that, because the content of information interaction and execution process between the above devices/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application implements all or part of the flow of the method of the above embodiments, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, where the computer program, when executed by a processor, may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to an apparatus/terminal device, recording medium, computer Memory, read-Only Memory (ROM), random access Memory (RAM, random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (10)

1. A light source display control method, characterized by comprising:
acquiring initial color data, wherein the initial color data is currently corresponding to a target display area;
acquiring target color data, wherein the target color data are acquired by a color sensor according to preset requirements, and the target color data are multiple;
performing gradient processing based on the initial color data and a plurality of target color data to obtain gradient color data sequences corresponding to the target color data respectively, wherein the gradient color data sequences comprise target color data and intermediate color data required by gradient processing of the initial color data to the target color data;
And controlling the color display of the target display area light source based on the gradient color data sequence.
2. The method according to claim 1, wherein the performing a gradation process based on the initial color data and the plurality of target color data to obtain gradation color data sequences corresponding to the target color data, respectively, includes:
establishing corresponding relations between the initial color data and a plurality of target color data to obtain a plurality of color combinations, wherein the color combinations comprise one initial color data and corresponding target color data;
and respectively carrying out gradient treatment on the color combinations to obtain gradient color data sequences corresponding to the color combinations, wherein the gradient color data sequences comprise target color data in the color combinations and intermediate color data required by gradient treatment of initial color data in the color combinations to the corresponding target color data, and the intermediate color data are orderly arranged.
3. The light source display control method according to claim 1, wherein the acquiring the target color data includes:
acquiring grouping categories of light sources in the target display area and grouping numbers of the grouping categories, wherein the grouping categories comprise a first category and a second category;
Determining first target color data, wherein the first target color data is selected from a historical color data set acquired by the color sensor, and the number of the first target color data is determined according to the grouping number of the first category;
determining second target color data, wherein the second target color data is current color data acquired by the color sensor, and the number of the second target color data is determined according to the grouping number of the second category;
and after the first target color data and the second target color data are randomly sequenced, the target color data are obtained, wherein the number of the target color data is the sum of the grouping number of the first category and the grouping number of the second category.
4. A light source display control method according to claim 3, wherein the target display area includes a first target display area and a second target display area;
the controlling the color display of the target display area based on the gradient color data sequence includes:
determining a first target display area corresponding to the first category and a second target display area corresponding to the second category;
Establishing a mapping relation between the first target color data and the first target display area and a mapping relation between the second target color data and the second target display area;
controlling a light source in the first target display area, and performing color display according to a gradual change color data sequence corresponding to the first target color data;
and controlling the light source in the second target display area, and performing color display according to the gradual change 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, wherein the controlling the color display of the target display area based on the gradation color data sequence includes:
acquiring a display requirement of a user, wherein the display requirement comprises a color development time length of the target display area;
determining a display interval duration of intermediate color data in the gradient color data sequence based on the display duration;
and controlling the light source in the target display area, and performing color display based on the gradient color data sequence and the display interval duration.
6. A light source display control method according to any one of claims 1 to 4, characterized in that the light source display control method further comprises:
Acquiring an update instruction of a user;
based on the updating instruction, re-acquiring initial color data and target color data;
performing gradient processing based on the restored initial color data and the restored target color data to obtain a plurality of restored gradient color data sequences;
and controlling the color display of the target display area based on the renewed gradient color data sequence.
7. A light source display control apparatus, comprising:
an initial data acquisition unit, configured to acquire initial color data, where the initial color data is color data currently corresponding to a target display area;
the target data acquisition unit is used for acquiring target color data, wherein the target color data are acquired by a color sensor according to preset requirements, and the target color data are multiple;
the data processing unit is used for carrying out gradual change processing based on the initial color data and a plurality of target color data to obtain gradual change color data sequences corresponding to the target color data respectively, wherein the gradual change color data sequences comprise one target color data and intermediate color data required by gradual change processing of the initial color data to the target color data;
And the light source display control unit is used for controlling the color display of the light source of the target display area based on the gradient color data sequence.
8. The light source display control device according to claim 7, wherein the light source display control unit includes:
the demand acquisition module is used for acquiring the display demand of a user, wherein the display demand comprises the color development time length of the target display area;
a display interval determining module, configured to determine a display interval duration of intermediate color data in the gradient color data sequence based on the display duration;
and the light source display control module is used for controlling the light source in the target display area and carrying out color display based on the gradient color data sequence and the display interval duration.
9. A smart device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the light source display control method according to any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the light source display control method according to any one of claims 1 to 6.
CN202211699666.1A 2022-12-28 2022-12-28 Light source display control method and device, storage medium and intelligent equipment Pending CN116056294A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211699666.1A CN116056294A (en) 2022-12-28 2022-12-28 Light source display control method and device, storage medium and intelligent equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211699666.1A CN116056294A (en) 2022-12-28 2022-12-28 Light source display control method and device, storage medium and intelligent equipment

Publications (1)

Publication Number Publication Date
CN116056294A true CN116056294A (en) 2023-05-02

Family

ID=86121121

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211699666.1A Pending CN116056294A (en) 2022-12-28 2022-12-28 Light source display control method and device, storage medium and intelligent equipment

Country Status (1)

Country Link
CN (1) CN116056294A (en)

Similar Documents

Publication Publication Date Title
CN109413361B (en) Method and system for controlling working state of terminal and terminal equipment
CN111815975A (en) Multifunctional signal lamp group binding and controlling method and device
CN110377392A (en) Wallpaper displaying method and device
CN114340102B (en) Lamp strip control method, device, display equipment, system and storage medium
CN116056294A (en) Light source display control method and device, storage medium and intelligent equipment
CN109697083B (en) Fixed-point acceleration method and device for data, electronic equipment and storage medium
CN110715369B (en) Air purifier control method and device, storage medium and air purifier
CN105094821A (en) Method and device used for determining background information of invoked applications
CN112989924B (en) Target detection method, target detection device and terminal equipment
CN114513888A (en) Microwave sensor group control method based on bus, computer device and computer readable storage medium
CN106920018A (en) The migration efficiency choosing method and device of a kind of terminal
CN110674720A (en) Picture identification method and device, electronic equipment and storage medium
CN106504723B (en) Screen color adjusting method and device and electronic equipment
CN111988897B (en) Dimming method and device of dimmer, storage medium and dimmer
CN107315588B (en) Background display method and device for Tab page style application interface
CN112102787A (en) Backlight brightness control method applied to liquid crystal display screen and related product
CN108303942A (en) Apparatus control method and device
CN110910473B (en) Chessboard coverage coloring method and device and terminal equipment
CN110784961B (en) LED driving method and device and storage medium
CN111007741B (en) Intelligent control method and system and vehicle
CN108259734B (en) Network camera equipment and luminance adjusting method of light supplement lamp thereof
CN107294844A (en) Message display method and device
CN112862085B (en) Storage space optimization method and device
CN116367386A (en) Light control method and device and electronic equipment
CN114691252A (en) Screen display method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination