CN112969259B - Control method, device, equipment and medium for intelligent colorful lamp belt - Google Patents

Control method, device, equipment and medium for intelligent colorful lamp belt Download PDF

Info

Publication number
CN112969259B
CN112969259B CN202110294861.5A CN202110294861A CN112969259B CN 112969259 B CN112969259 B CN 112969259B CN 202110294861 A CN202110294861 A CN 202110294861A CN 112969259 B CN112969259 B CN 112969259B
Authority
CN
China
Prior art keywords
color
layer
intelligent
picture
value
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.)
Active
Application number
CN202110294861.5A
Other languages
Chinese (zh)
Other versions
CN112969259A (en
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.)
Zengge Co ltd
Original Assignee
Zengge 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 Zengge Co ltd filed Critical Zengge Co ltd
Priority to CN202110294861.5A priority Critical patent/CN112969259B/en
Publication of CN112969259A publication Critical patent/CN112969259A/en
Application granted granted Critical
Publication of CN112969259B publication Critical patent/CN112969259B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • 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/175Controlling the light source by remote control
    • H05B47/19Controlling the light source by remote control via wireless transmission
    • 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

Abstract

The invention discloses a control method of an intelligent colorful lamp belt, which comprises the steps of creating a color point list according to a color set uploaded by a UI layer, correspondingly generating a first preview picture by utilizing a gradual color principle and sending the first preview picture to the UI layer, wherein color points comprise RGB values and coordinate values; automatically generating a draggable display slider for the first preview picture, wherein each sliding position of the display slider corresponds to a unique color point; calculating coordinate values of corresponding color points according to the staying position of the UI layer after the display slider is dragged, and sending a second preview picture generated according to the coordinate values to the UI layer; receiving a confirmation instruction of the UI layer, calculating the color value of each lamp bead of the intelligent colorful lamp strip according to the second preview picture, generating a control instruction according to the RGB value corresponding to the color value, and synchronizing the control instruction to the intelligent colorful lamp strip. According to the invention, a user can edit and create various colors on the UI layer, so that the intelligent colorful lamp belt can display various modes, and the intelligent colorful lamp belt has the advantages of simplicity and convenience in operation, flexibility in control and various modes.

Description

Control method, device, equipment and medium for intelligent colorful lamp belt
Technical Field
The invention relates to the field of lamp control, in particular to a control method, a device, equipment and a medium for an intelligent colorful lamp belt.
Background
The intelligent colorful lamp strip, namely the LED pixel lamp strip, is formed by welding an LED and a peripheral circuit by taking a flexible FPC as a substrate, and can realize the display effects of chasing, running and colorful lamps. The intelligent colorful lamp belt is widely used for various decorative scenes due to the characteristics of colorful and various colors and strong plasticity. At present, the intelligent colorful lamp belt is mainly controlled through wireless control and wired control. In the wireless control method, one method adopts infrared remote control, 2.4G remote control and other modes, and the control is triggered by a button of a remote controller; the other mode is realized through an intelligent mobile terminal, for example, mobile phone control is realized, and the color and the dynamic mode of the lamp strip are edited on the mobile phone by adopting wireless communication modes such as Bluetooth and Wi-Fi. And the wired control is mainly connected with a computer through a USB (universal serial bus), and the color and the dynamic mode of the lamp strip are edited on the computer.
However, these existing methods have their own disadvantages, such as that the infrared remote control and the 2.4G remote control only have a limited number of simple keys, and only can realize fixed modes and colors; the wired communication is used, and the computer needs to be preferentially connected, so that the operation is complex and the limitation is strong. Although the APP control through the mobile phone is more convenient than the former two, only built-in colors and dynamic modes are combined in the APP, so that the presentation effect is single, and the requirement on the diversity of the intelligent magic color lamp band modes cannot be met.
Disclosure of Invention
The invention aims to provide a method, a device, equipment and a medium for controlling an intelligent color strip, which can solve the problems of complex operation, single presentation effect and strong limitation existing in the intelligent color strip control method in the prior art.
In order to overcome the defects in the prior art, the invention provides a control method of an intelligent colorful lamp belt, which comprises the following steps:
creating a color point list according to a color set uploaded by a UI layer, correspondingly generating a first preview picture by utilizing a gradient color principle and sending the first preview picture to the UI layer, wherein the color points comprise RGB values and coordinate values;
automatically generating a draggable display slider for the first preview picture, wherein each sliding position of the display slider corresponds to the unique color point;
calculating coordinate values of corresponding color points according to the final staying position of the display slider in the UI layer, and sending a second preview picture generated according to the coordinate values to the UI layer;
and receiving a confirmation instruction sent by the UI layer, calculating the color value of each lamp bead of the intelligent magic color lamp strip according to the second preview picture, generating a control instruction according to the RGB value corresponding to the color value, and synchronizing the control instruction to the intelligent magic color lamp strip controller so as to control the intelligent magic color lamp strip to display.
Further, before the creating the color point list according to the color set uploaded by the UI layer, the method further includes:
responding to a user-defined mode selection request sent by the UI layer, and correspondingly sending different menus to the UI layer, wherein the menus comprise a picture generation mode and a new mode;
if the UI layer selects the slave picture generation mode, calling a camera or a gallery interface to enable the UI layer to determine a target picture, reading HSV (hue, saturation and value) and gray values of each pixel point of the target picture, and taking the color with the highest brightness value and gray value in the HSV as the color to be uploaded of the picture;
and if the UI layer selects the new creation mode, receiving the uploading color customized by the UI layer.
Further, before the receiving the confirmation instruction sent by the UI layer, the method further includes:
and responding to the color point adding request of the UI layer, creating a color point object for the added color point, storing the color point object into the color point list, and automatically updating the second preview picture into a third preview picture.
Further, the number of the color points that can be added is less than or equal to 1000.
Further, the control method of the intelligent color strip further comprises the following steps:
responding to the color editing request of the UI layer, calling a color selector for selection of the UI layer, obtaining corresponding color points by using an array index according to the color selected by the UI layer, and updating corresponding color values.
Further, the color selector includes 65536 colors.
Further, the control instruction is synchronized to the intelligent magic color lamp strip controller through WiFi, Bluetooth, Internet, broadcast Bluetooth or Zigbee communication modes.
The invention also provides a control device of the intelligent colorful lamp belt, which comprises:
the list creating unit is used for creating a color point list according to the color set uploaded by the UI layer, correspondingly generating a first preview picture by utilizing a gradient color principle and sending the first preview picture to the UI layer, wherein the color points comprise RGB values and coordinate values;
the sliding block generating unit is used for automatically generating a draggable display sliding block for the first preview picture, and each sliding position of the display sliding block corresponds to the unique color point;
the image generation unit is used for calculating the coordinate value of the corresponding color point according to the final stop position of the display slider in the UI layer and sending a second preview image generated according to the coordinate value to the UI layer;
and the control unit is used for receiving the confirmation instruction sent by the UI layer, calculating the color value of each lamp bead of the intelligent color strip according to the second preview picture, generating a control instruction according to the RGB value corresponding to the color value, and synchronizing the control instruction to the intelligent color strip controller so as to control the intelligent color strip to display.
The present invention also provides a computer terminal device, comprising:
one or more processors;
a memory coupled to the processor for storing one or more programs;
when executed by the one or more processors, the one or more programs cause the one or more processors to implement the method of controlling a smart magic tape as described in any of the above.
The invention also provides a computer readable storage medium, on which a computer program is stored, the computer program being executed by a processor to implement the control method of the intelligent magic lamp strip as described in any one of the above.
Compared with the prior art, the invention has the beneficial effects that:
1) the method supports the creation of custom colors and dynamic modes through the mobile phone;
2) the data is sent by wireless communication technologies such as Wi-Fi, Bluetooth, Internet, broadcast Bluetooth, Zigbee and the like;
3) the colors comprise any gradual change color and any filling color;
4) supporting to select a picture, and reading the main color from the picture;
5) the modes include: static state, running water, breathing, jumping, stroboscopic and flashing;
6) the method supports manual dragging of color points, and calls out any required gradient color or filling color length;
7) and when in the editing mode, the preview is real-time on the interface of the mobile phone and is simultaneously sent to the equipment, so that the effect of 'what you see is what you get' is achieved.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a control method of an intelligent magic color lamp strip according to a first embodiment of the present invention;
fig. 2 is a flowchart illustrating steps performed before step S10 according to an embodiment of the present invention;
FIG. 3 is a flow chart of data interaction among the UI layer, the application layer and the intelligent color strip controller according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a control device of an intelligent magic color lamp strip according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be understood that the step numbers used herein are for convenience of description only and are not intended as limitations on the order in which the steps are performed.
It is to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
The terms "comprises" and "comprising" indicate the presence of the described 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.
The term "and/or" refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to fig. 1, a first embodiment of the present invention provides a method for controlling an intelligent color strip, including:
s10, creating a color point list according to the color set uploaded by the UI layer, correspondingly generating a first preview picture by utilizing a gradient color principle and sending the first preview picture to the UI layer, wherein the color points comprise RGB values and coordinate values;
in this step, the UI layer is an intelligent mobile terminal, and for convenience of understanding, a smart phone is preferred, and an APP is preferably used to control the intelligent color strip, it should be noted that the APP is only a preferred manner, and in practical application, applets, web pages, and the like having the same function may also be used, and no limitation is made herein.
Specifically, in this step, the color set uploaded by the UI layer refers to one or several display effects of the intelligent color strip determined by the user according to the actual application requirements, for example, the dynamic mode of the intelligent color strip may include: the method comprises the steps that static, running water, breathing, jumping, stroboscopic and flashing modes and the like are adopted, each mode corresponds to one color set, a user needs to determine the color set and then sends the color set to an application layer, the application layer creates a color point list according to the color set, namely, all color points in the color set are read to form one list for storage, then a first preview picture corresponding to the requirements of a UI layer is generated by using a fading principle and sent to the UI layer, and the UI layer refers to the display effect of a first selected control scheme.
In a certain embodiment, before step S10, a method for providing a different menu for the user to select to upload a color set is further included, as shown in fig. 2, which specifically includes the following steps:
s01, responding to a user-defined mode selection request sent by the UI layer, and correspondingly sending different menus to the UI layer, wherein the menus comprise a picture generation mode and a new mode;
s011, if the UI layer selects the slave picture generation mode, calling a camera or a gallery interface to enable the UI layer to determine a target picture, reading HSV (hue, saturation and value) and a gray value of each pixel point of the target picture, and taking a color with the highest brightness value and the highest gray value in the HSV as a color to be uploaded of the picture;
and S012, if the UI layer selects the new creation mode, receiving the uploading color customized by the UI layer.
It should be noted that, a user first starts the APP, then enters the custom mode function module, and sends a selection request to the application layer, and then the application layer calls different menus, so that the APP displays the menus for the user to select.
Further, the APP judges a menu selected by the user, if the selected menu is menu 1, a camera interface or a system gallery interface of the system is called for the user to select, and the user is waited to select a picture. Then, the APP reads data of the picture, obtains each pixel point of the picture, further obtains HSV of each pixel point, analyzes and summarizes the data, then sorts the data from high to low according to gray values and brightness values of the pixels, then selects the color with higher gray value and brightness value as a main color of the picture, establishes a color set and uploads the color set to an application layer, and then executes the step S10; if the selected menu is menu 2, the color composition color set in the mode created by the user is uploaded to the application layer directly, and then step S10 is performed. Through setting up different functional mode, the style that intelligent unreal color lamp area demonstrates can be richened, and then satisfy user's demand.
S20, automatically generating a draggable display slider for the first preview picture, wherein each sliding position of the display slider corresponds to the unique color point;
in this step, when the first preview picture is generated in step S10, a draggable display slider is automatically generated in the first preview picture, and a sliding strip from a starting point to an end point of the slider, that is, the color selector, may be in a strip shape, may be in a circular ring shape, and mainly includes 65536 colors, and is extremely rich in color. It will be appreciated that each position of the slider strip corresponds to a unique color point.
S30, calculating coordinate values of corresponding color points according to the final stop positions of the display sliders in the UI layer, and sending a second preview picture generated according to the coordinate values to the UI layer;
in the step, the user mainly selects a display mode by moving a slider, the APP displays the slider below the generated preview picture, and each color point is drawn into a slider for the user to slide. The user can drag the slider of the color point on the interface to adjust the position of the slider. And then the APP calculates the coordinates of the preview image by the slider according to the coordinates of the touch screen when the user drags, so as to calculate the coordinate position value of the color point. When a user moves the slider, the preview picture is updated in real time along with the coordinate of the sliding position, and the user can change the previewing effect of the sliding side;
in a certain embodiment, the actual effects of the preview picture and the intelligent colorful lamp strip can be synchronized, and when the user drags the color point, the APP can regenerate the preview picture immediately after calculating the coordinate value of the color point according to the color gradient principle. Therefore, the user can feed back the APP interface at the same time in the operation process of the APP, the displayed color of the intelligent magic color lamp strip is consistent with the preview picture, the effect of what you see is what you get is achieved, and the intelligent magic color lamp strip is convenient and flexible to operate and high in applicability.
And S40, receiving a confirmation instruction sent by the UI layer, calculating the color value of each lamp bead of the intelligent color strip according to the second preview picture, generating a control instruction according to the RGB value corresponding to the color value, and synchronizing the control instruction to the intelligent color strip controller so as to control the intelligent color strip to display.
In this step, the user updates the data of the color points of the APP memory while operating the APP. The APP memory color point List object is of a List type, and each item comprises Red, Green, Blue and an X coordinate value. Then APP calculates the color value of each lamp bead of the intelligent magic color lamp strip according to the gradient principle with the color point list data, then the color value is converted into a control command, the control command is a string of Byte array data, and the data comprise the RGB value of each lamp bead. And finally, after the multicolor controller receives the command, outputting the data to the corresponding lamp beads. The intelligent magic color lamp strip displays.
The first embodiment of the invention supports the creation of a user-defined color and a dynamic mode through a mobile phone, including a mode selected from pictures and a new mode created, can flexibly and abundantly provide a display color and support the manual dragging of color points, and call out any required gradient color or filling color length; and when in the editing mode, the preview is real-time on the mobile phone interface and is simultaneously sent to the equipment, so that the effect of 'what you see is what you get' is achieved. Has the advantages of simple operation, strong flexibility and rich display styles.
In a certain embodiment, before the receiving the confirmation instruction sent by the UI layer, the method further includes: and responding to the color point adding request of the UI layer, creating a color point object for the added color point, storing the color point object into the color point list, and automatically updating the second preview picture into a third preview picture. In this embodiment, a user may click an add button on the interface to add a color point, and after detecting an add event, the APP creates a color point object to the color point list memory and displays the color point object on the preview picture. It should be noted that the number of the color points added here can be as much as 1000, so that the user can arbitrarily combine the colors desired by the user, thereby realizing the effect of arbitrarily filling the colors.
In a certain embodiment, the method for controlling the intelligent color strip further includes: and responding to the color editing request of the UI layer, calling a color selector for selection of the UI layer, obtaining a corresponding color point by using an array index according to the color selected by the UI layer, and updating a corresponding color value. After the user selects a color point, the user clicks the menu or button for modifying the color, and the APP displays a color selector to select a color value for the user, where the color value includes 65536 colors. After the user selects the color, the APP finds the corresponding color point according to the array index, and the corresponding color value is updated, so that the effect of any gradually-changed color is realized.
In one embodiment, the control command is synchronized to the intelligent magic color lamp strip controller through a WiFi, bluetooth, internet, broadcast bluetooth or Zigbee communication mode.
In one embodiment, a data interaction flow of a UI layer, an application layer and an intelligent magic color lamp band controller is provided, as shown in fig. 2, a user starts a mobile phone APP to enter a self-defined mode function, then an APP interface pops up two menus for the user to select, menu 1 is a mode generated from a picture, menu 2 is a mode created new, then a processing logic unit in the APP application layer judges the menu selected by the user, when the user selects menu 1, a camera or a picture library interface of a system is called, the user is waited to select a picture through the APP interface, after the user determines the picture, the processing logic unit in the APP application layer reads data of the picture to obtain each pixel point of the picture and HSV of the pixel points for analysis and summarization, then a message is taken from high to low according to a gray value and a brightness value of the pixel, then a color with a higher gray value and a brightness value is selected as a main color of the picture and a color set is determined, if the user selects menu 2, determining a color set directly from the picture created by the user;
further, when the color set is determined, a color point list is correspondingly created, each color point comprises RGB and a coordinate position value, then a preview picture is generated according to a gradual color principle, the preview picture is displayed on an APP interface at the moment, a display slider is generated below the preview picture at the same time, each color point corresponds to the unique position of the slider, and a user can arbitrarily drag the slider to adjust the position of the slider to determine the desired effect of the preview picture. When dragging, the preview picture is updated in real time, so that the effect of what you see is what you get is achieved.
Further, when the user determines the position of the slider, the processing logic unit in the APP application layer may calculate the coordinates of the slider relative to the preview picture according to the coordinates of the touch screen dragged by the user, so as to calculate the coordinate position value of the color, and in this embodiment, if the user finds that the color provided by the APP cannot meet the requirement, the user may click an add button of the interface to add the color point, and support up to 1000 added color points, and when the APP logic processing unit detects an add event, create a color point object into the color point list, and display the color point object in the preview picture for the user to confirm. In addition, if the user only wants to modify a certain color, the user can click on a color point selection and editing button of the APP interface, and then the APP displays a color selector for the user to select color values, wherein the color values include 65536 types, and the user can edit or modify the color values at will. After the user has determined the colour, APP finds corresponding colour point according to the array index, the colour value that the update corresponds, then data updating, wherein APP memory colour takes you List to be a List type, every item includes R, G, B and coordinate value then calculates data according to the gradual change principle, obtain the colour value of every lamp pearl of intelligence magic color lamp area, and convert into control command, control command is a string of Byte array data, data include the RGB value of every lamp pearl, then with control command synchronization to intelligence magic color lamp area controller, control intelligence magic color lamp area shows according to the effect of preview picture.
Referring to fig. 4, in an embodiment, a control device of an intelligent color strip is further provided, including:
the list creating unit 01 is configured to create a color point list according to a color set uploaded by the UI layer, generate a first preview picture by using a gradient color principle and send the first preview picture to the UI layer, where the color points include RGB values and coordinate values;
a slider generating unit 02, configured to automatically generate a draggable display slider for the first preview picture, where each sliding position of the display slider corresponds to a unique color point;
the picture generating unit 03 is configured to calculate a coordinate value of a corresponding color point according to the final staying position of the display slider in the UI layer, and send a second preview picture generated according to the coordinate value to the UI layer;
and the control unit 04 is used for receiving the confirmation instruction sent by the UI layer, calculating the color value of each lamp bead of the intelligent colorful lamp strip according to the second preview picture, generating a control instruction according to the RGB value corresponding to the color value, and synchronizing the control instruction to the intelligent colorful lamp strip.
The control device provided by the embodiment of the invention supports the creation of a custom color and a dynamic mode through a mobile phone, comprises a picture selection mode and a new creation mode, can flexibly and abundantly provide a display color and support the manual dragging of color points, and can call out any required gradient color or filling color length; and when in the editing mode, the preview is real-time on the mobile phone interface and is simultaneously sent to the equipment, so that the effect of 'what you see is what you get' is achieved. Has the advantages of simple operation, strong flexibility and rich display styles.
In an embodiment, there is also provided a computer terminal device including:
one or more processors;
a memory coupled to the processor for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the control method of the intelligent magic tape as described above.
The processor is used for controlling the overall operation of the computer terminal equipment so as to complete all or part of the steps of the control method of the intelligent colorful lamp strip. The memory is used to store various types of data to support the operation at the computer terminal device, which data may include, for example, instructions for any application or method operating on the computer terminal device, as well as application-related data. The Memory may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk, or optical disk.
The computer terminal Device may be implemented by one or more APPlication Specific integrated circuits (APPlication Specific 1 registered Circuit, AS1C for short), a Digital Signal Processor (DSP for short), a Digital Signal Processing Device (DSPD for short), a Programmable Logic Device (PLD for short), a Field Programmable Gate Array (FPGA for short), a controller, a microcontroller, a microprocessor, or other electronic components, and is configured to execute the method for controlling the intelligent color strip according to any one of the embodiments described above, and achieve technical effects consistent with the method described above.
In an embodiment, there is also provided a computer readable storage medium comprising program instructions, which when executed by a processor, implement the steps of the method for controlling a smart magic light strip as described in any one of the above embodiments. For example, the computer-readable storage medium may be the above-mentioned memory including program instructions, and the above-mentioned program instructions may be executed by a processor of a computer terminal device to implement the control method of the intelligent color strip according to any one of the above-mentioned embodiments, and achieve the technical effects consistent with the above-mentioned method.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.

Claims (9)

1. A control method of an intelligent colorful lamp belt is characterized by comprising the following steps:
responding to a user-defined mode selection request sent by a UI layer, and correspondingly sending different menus to the UI layer, wherein the menus comprise a picture generation mode and a new mode;
if the UI layer selects the slave picture generation mode, calling a camera or a gallery interface to enable the UI layer to determine a target picture, reading HSV (hue saturation value) and gray value of each pixel point of the target picture, and taking the brightness value in the HSV and the color with the highest gray value as the to-be-uploaded color of the picture;
if the UI layer selects the new creation mode, receiving the uploading color defined by the UI layer;
creating a color point list according to a color set uploaded by a UI layer, correspondingly generating a first preview picture by utilizing a gradient color principle and sending the first preview picture to the UI layer, wherein the color points comprise RGB values and coordinate values;
automatically generating a draggable display slider for the first preview picture, wherein each sliding position of the display slider corresponds to the unique color point;
calculating coordinate values of corresponding color points according to the final staying position of the display slider in the UI layer, and sending a second preview picture generated according to the coordinate values to the UI layer;
and receiving a confirmation instruction sent by the UI layer, calculating the color value of each lamp bead of the intelligent magic color lamp strip according to the second preview picture, generating a control instruction according to the RGB value corresponding to the color value, and synchronizing the control instruction to the intelligent magic color lamp strip controller so as to control the intelligent magic color lamp strip to display.
2. The method for controlling the intelligent magic lamp strip according to claim 1, wherein before the receiving the confirmation instruction sent by the UI layer, the method further comprises:
and responding to the request of adding the color point of the UI layer, creating a color point object for the color point which can be added, storing the color point object into the color point list, and automatically updating the second preview picture into a third preview picture.
3. The method for controlling an intelligent magic lamp belt as claimed in claim 2, wherein the number of color points that can be added is less than or equal to 1000.
4. The method for controlling an intelligent magic color lamp strip according to claim 2, further comprising:
and responding to the color editing request of the UI layer, calling a color selector for selection of the UI layer, obtaining a corresponding color point by using an array index according to the color selected by the UI layer, and updating a corresponding color value.
5. The method for controlling a smart magic light bar as claimed in claim 4, wherein the color selector contains 65536 colors.
6. The method for controlling an intelligent color strip lamp according to any one of claims 1-5, wherein the control command is synchronized to the intelligent color strip lamp controller through WiFi, Bluetooth, Internet, broadcast Bluetooth or Zigbee communication.
7. The utility model provides a controlling means in intelligent unreal color lamp area which characterized in that includes:
the response request unit is used for responding to a user-defined mode selection request sent by the UI layer and correspondingly sending different menus to the UI layer, wherein the menus comprise a picture generation mode and a new mode;
the reading unit is used for calling a camera or a gallery interface to enable the UI layer to determine a target picture if the UI layer selects the slave picture generation mode, reading HSV (hue saturation value) and a gray value of each pixel point of the target picture, and taking the color with the highest brightness value and the highest gray value in the HSV as the color to be uploaded of the picture;
the mode creating unit is used for receiving the uploading color defined by the UI layer if the UI layer selects the new mode to be created;
the list creating unit is used for creating a color point list according to the color set uploaded by the UI layer, correspondingly generating a first preview picture by utilizing a gradient color principle and sending the first preview picture to the UI layer, wherein the color points comprise RGB values and coordinate values;
the sliding block generating unit is used for automatically generating a draggable display sliding block for the first preview picture, and each sliding position of the display sliding block corresponds to the unique color point;
the image generation unit is used for calculating the coordinate value of the corresponding color point according to the final stop position of the display slider in the UI layer and sending a second preview image generated according to the coordinate value to the UI layer;
and the control unit is used for receiving the confirmation instruction sent by the UI layer, calculating the color value of each lamp bead of the intelligent color strip according to the second preview picture, generating a control instruction according to the RGB value corresponding to the color value, and synchronizing the control instruction to the intelligent color strip controller so as to control the intelligent color strip to display.
8. A computer terminal device, comprising:
one or more processors;
a memory coupled to the processor for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method of controlling a smart magic tape as claimed in any one of claims 1 to 6.
9. A computer-readable storage medium, on which a computer program is stored, the computer program being executed by a processor to implement the control method of the intelligent magic light strip according to any one of claims 1 to 6.
CN202110294861.5A 2021-03-19 2021-03-19 Control method, device, equipment and medium for intelligent colorful lamp belt Active CN112969259B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110294861.5A CN112969259B (en) 2021-03-19 2021-03-19 Control method, device, equipment and medium for intelligent colorful lamp belt

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110294861.5A CN112969259B (en) 2021-03-19 2021-03-19 Control method, device, equipment and medium for intelligent colorful lamp belt

Publications (2)

Publication Number Publication Date
CN112969259A CN112969259A (en) 2021-06-15
CN112969259B true CN112969259B (en) 2022-08-02

Family

ID=76279407

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110294861.5A Active CN112969259B (en) 2021-03-19 2021-03-19 Control method, device, equipment and medium for intelligent colorful lamp belt

Country Status (1)

Country Link
CN (1) CN112969259B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117521179B (en) * 2024-01-04 2024-04-19 深圳市智岩科技有限公司 Atmosphere lamp equipment, luminous partition layout construction method and device and computer equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102932993B (en) * 2012-10-26 2014-12-24 浙江大学 Lamp under remote control of cell phone and control method of lamp
CN105351880A (en) * 2015-12-09 2016-02-24 北京阿启蒙技术有限公司 Intelligent colorful light and control terminal thereof
CN109654398A (en) * 2018-12-18 2019-04-19 深圳市联芯互联科技有限公司 A kind of colorful light atmosphere lamp
CN111246621B (en) * 2020-01-10 2022-03-15 江门市征极光兆科技有限公司 WiFi technology-based neon light strip control system
CN112261768B (en) * 2020-11-03 2023-12-19 广东好太太智能家居有限公司 Lamp strip color control method and system, intelligent terminal and storage device

Also Published As

Publication number Publication date
CN112969259A (en) 2021-06-15

Similar Documents

Publication Publication Date Title
KR102346632B1 (en) Configuration and operation of display devices including content curation
US9839089B1 (en) Control method for smart light
US9313865B2 (en) Control method of mobile device
US9226370B2 (en) Lighting control device
WO2014139781A2 (en) A method of configuring a system comprising a primary display device and one or more remotely controllable lamps, apparatus for performing the method and computer program product adapted to perform the method
US20150235387A1 (en) Information processing method and electronic device
CN112969259B (en) Control method, device, equipment and medium for intelligent colorful lamp belt
CN107786717A (en) A kind of control method of intelligent lamp
US20160270181A1 (en) Lighting control device and lighting control method
CN111800923B (en) Light control method and device, readable storage medium and terminal equipment
CN105117225A (en) Android system based HMI interface customizing method and system
US9980346B2 (en) Lighting setting apparatus and lighting system
CN109857438A (en) Liquid crystal touch control switch, configuration system and configuration method
CN112672464A (en) Lamp light control method and device of lamp and computer equipment
US11259390B2 (en) Rendering a dynamic light scene based on one or more light settings
US20210082091A1 (en) Digital image editing
WO2016123847A1 (en) Application control method and device
KR102081746B1 (en) Visual digital interiro design apparatus and control method therefor
US20140092128A1 (en) Image processing apparatus, image processing method, and program
US20170109863A1 (en) Pixel Mapping Systems and Processes Using Raster-Based and Vector Representation Principles
WO2022247768A1 (en) Image processing method and electronic device
WO2022105673A1 (en) Video recording method and electronic device
EP4169356B1 (en) Controlling a pixelated lighting device based on a relative location of a further light source
CN115989721A (en) Controlling an array of light segments based on user interaction with a virtual representation in a color space
CN114096037A (en) Method and equipment for user-defined light special effect and special effect display

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
GR01 Patent grant
GR01 Patent grant