Light effect editing and playback method and apparatus for light-emitting device, medium, and product

By constructing a light strip projection diagram and dividing the display control windows, luminous control data is generated, the problems of lighting effect distortion and personalized design in the ambient lamp equipment are solved, and accurate lighting effect playback and user experience are achieved.

WO2025180397A1PCT designated stage Publication Date: 2025-09-04SHENZHEN INTELLIROCKS TECH CO LTD +1

Patent Information

Application Number
PCT/CN2025/079257
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-02-26
Filing Date
2025-02-26
Publication Date
2025-09-04

AI Technical Summary

Technical Problem

The pattern distortion of the luminous light belt in existing ambient lighting equipment and the limitations of user personalized lighting designs have resulted in inaccurate lighting effects presentation and inability to meet user needs.

Method used

By obtaining the position information flow of the luminous units in the luminous light strip, a light strip projection diagram is constructed and divided into multiple display control windows, and luminous control data is generated to control the set of luminous units in each display control window to achieve accurate playback of the target lighting effect.

Benefits of technology

It effectively avoids distortion of lighting effects, improves user experience, meets users' personalized lighting effects needs, and ensures that the lighting effects are consistent with the expected effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025079257_04092025_PF_FP_ABST
    Figure CN2025079257_04092025_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to a light effect editing and playback method and apparatus for a light-emitting device, a medium, and a product. The method comprises: acquiring a position information flow corresponding to light-emitting units in a light-emitting strip lamp, wherein the position information flow comprises position distribution information corresponding to the light-emitting units in the light-emitting strip lamp; expanding the position distribution information of the light-emitting units in a preset coordinate system to obtain a strip lamp projection map; using regional tolerance windows to divide the light-emitting strip lamp in the strip lamp projection map into a plurality of light-emitting unit sets, so as to correspondingly form a plurality of display control windows; and by using each display control window as a batch control unit, generating light-emitting control data for a light-emitting unit set of each display control window corresponding to a target lamp effect, and on the basis of the light-emitting control data, controlling the light-emitting strip lamp to play the target lamp effect.
Need to check novelty before this filing date? Find Prior Art

Description

Method, device, medium and product for editing and playing lighting effects of luminous equipment Technical Field

[0001] The present application relates to the field of lighting control, and in particular to a method, device, medium and product for editing and playing lighting effects of a lighting device. Background Art

[0002] In an ambient lighting device, a light strip is used as the lamp body responsible for emitting light and creating an atmosphere. Due to its flexibility, the light strip can be bent and shaped into various desired shapes. When a corresponding lighting effect is required through the light strip, the lighting effect can provide a color distribution based on materials such as reference images, and this color distribution can be projected onto the light strip. The various light-emitting units in the light strip work together to play the corresponding lighting effect, displaying the corresponding color distribution and creating an atmosphere of light.

[0003] To support the projection of color distribution onto light strips, it is necessary to know the positional distribution of each light unit within the light strip on the plane of the pattern formed by the light strip. When the color distribution needs to be projected, this positional distribution can be used to achieve the projection. The problem with traditional technology is that the resulting pattern will be distorted on the plane relative to the desired lighting effect.

[0004] In addition, when using ambient lighting, if users can only choose from the lighting effects pre-configured by the manufacturer, and cannot design different lighting effects according to their own personalized needs to control the ambient lighting to form lighting effects that match the ambient atmosphere, the usage scenarios of the ambient lighting will be limited and the personalized needs of users will not be met. Summary of the Invention

[0005] The purpose of this application is to provide a method, device, medium and product for editing and playing lighting effects of a lighting device.

[0006] According to one aspect of the present application, a method for playing back a lighting effect projection is provided, comprising:

[0007] Obtaining a position information stream corresponding to a light-emitting unit in a light-emitting light strip, wherein the position information stream includes position distribution information corresponding to each light-emitting unit in the light-emitting light strip;

[0008] According to the position distribution information of each light-emitting unit, unfolding the light strip projection image in a preset coordinate system to reconstruct the pattern data of the light strip and each light-emitting unit therein in the light strip projection image;

[0009] Using a regional tolerance window to divide the light strip in the light strip projection image into a plurality of light unit sets, and correspondingly forming a plurality of display control windows;

[0010] Each display control window is used as a batch control unit to generate lighting control data for a lighting unit set of each display control window corresponding to a target lighting effect, and the lighting strip is controlled to play the target lighting effect according to the lighting control data.

[0011] According to one aspect of the present application, a method for editing a lighting effect luminous area is provided, comprising:

[0012] Determine the shape path of the light strip and multiple light positions in the shape path based on the light strip image, so as to construct a corresponding light strip model and display it on the interface canvas;

[0013] In response to a light position graffiti event, determining the light position in the light strip model that has been graffitied as a graffiti light position, and generating corresponding graffiti light position information;

[0014] In response to a starting point positioning event, determining the position of the starting point in the interface canvas as a relative position of the starting point, and generating corresponding lighting effect lighting information, wherein the starting point is used to locate a special effect starting point of a lighting effect lighting coverage area, and the lighting effect lighting coverage area is used to light up the lighting effect of the graffiti light position;

[0015] In response to the lighting effect application event, a lighting effect configuration having the graffiti light position information and the lighting effect lighting information is generated, and the lighting effect configuration is pushed to the lighting device of the light strip.

[0016] According to another aspect of the present application, an atmosphere lighting device is provided, comprising a controller and at least one light strip, wherein the controller is configured to execute the steps of the methods described in the above aspects.

[0017] According to another aspect of the present application, a non-volatile computer-readable storage medium is provided, which stores a computer program implemented according to the methods described in the above aspects in the form of computer-readable instructions. When the computer program is called and executed by a computer, the steps included in the corresponding method are executed.

[0018] According to another aspect of the present application, a computer program product is provided, comprising a computer program / instruction, wherein when the computer program / instruction is executed by a processor, the steps of the method described in the above aspects are executed.

[0019] According to another aspect of the present application, a computer device is provided, including a central processing unit and a memory, wherein the central processing unit is configured to call and run a computer program stored in the memory to execute the steps of the methods described in the above aspects. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] FIG1 is a schematic diagram of the electrical structure of an exemplary ambient light device of the present application, wherein the light strip of the ambient light device is shaped like a flower to indicate that it can be shaped into any shape;

[0021] FIG2 illustrates the logical segmentation relationship of the light strip in FIG1 using the regional tolerance window;

[0022] FIG3 is a flow chart of a method for playing back lighting effect projection in an embodiment of the present application;

[0023] FIG4 is a schematic diagram of a process for determining a display control window by sliding a regional tolerance window in an embodiment of the present application;

[0024] FIG5 is a schematic diagram of a process for determining the size specifications of a regional tolerance window in an embodiment of the present application;

[0025] FIG6 is a schematic diagram of a process for setting a regional tolerance window according to a circular ring and determining a display control window according to the regional tolerance window in an embodiment of the present application;

[0026] FIG7 is a schematic diagram of a process for constructing light control data corresponding to a display control window according to an embodiment of the present application;

[0027] FIG8 is a flowchart of a method for editing a lighting effect luminous area in an embodiment of the present application;

[0028] FIG9 , FIG10 and FIG11 are schematic diagrams of graphical user interfaces of interface canvases in different situations respectively;

[0029] FIG12 , FIG13 , FIG14 and FIG19 are schematic diagrams of different situations of lighting effects lighting up the coverage area and rotating around;

[0030] FIG15 is a schematic diagram of a process for constructing a light strip model based on a light strip image and displaying it on an interface canvas in an embodiment of the present application;

[0031] FIG16 is a schematic diagram of the process of graffiti light position graffiti in an embodiment of the present application;

[0032] FIG17 is a flow chart illustrating a method for adjusting the angle and rotation speed of the lighting effect coverage area and determining the relative position of the starting point thereof in accordance with an embodiment of the present application;

[0033] FIG18 is a schematic diagram of a process of generating a corresponding marathon light effect according to a light effect configuration of a light emitting device in an embodiment of the present application;

[0034] FIG20 is a schematic diagram of a process for a light emitting device to generate corresponding marquee lighting effects according to multiple lighting effect configurations according to an embodiment of the present application;

[0035] FIG21 is a schematic diagram of the structure of a computer device in an embodiment of the present application. DETAILED DESCRIPTION

[0036] Please refer to Figure 1. It can be seen from the structural schematic diagram of an atmosphere lamp device provided in an embodiment of the present application that the atmosphere lamp device includes a controller 1 and a lamp body 2. The lamp body 2 is electrically connected to the controller 1 so as to accept the control of the computer program running in the controller 1 and work together to realize lighting effect playback.

[0037] The controller 1 generally includes a control chip, a communication component, and a bus connector. In some embodiments, the controller 1 may also be configured with a power adapter, a control panel, a display screen, etc. as needed.

[0038] The power adapter is primarily used to convert mains electricity into direct current (DC) to power the entire ambient light device. The control chip can be implemented using various embedded chips, such as Bluetooth SoCs (System on Chip), WiFi SoCs, MCUs (Micro Controller Units), and DSPs (Digital Signal Processing). The control chip typically includes a central processing unit (CPU) and memory, which are used to store and execute program instructions, respectively, to implement the corresponding functions. These various types of control chips may have built-in communication components or be configured with additional components as needed. The communication components can be used to communicate with external devices, such as personal computers or smartphones. After a user issues various configuration commands through their terminal device, the control chip in controller 1 can receive these commands through the communication components, complete basic configuration, and control the lamp. The bus connector is primarily used to connect the lamp 2 to the bus and provide lighting effect playback commands. Corresponding pins are provided for the power bus and signal bus. Therefore, when the lamp 2 needs to be connected to the controller 1, it can be connected to the bus connector via the corresponding connector on the lamp 2. The control panel typically provides one or more buttons for controlling the controller 1 on and off, selecting various preset lighting control modes, and so on. The display screen can be used to display various control information, thereby cooperating with the buttons on the control panel to support the implementation of human-computer interaction functions. In some embodiments, the control panel and the display screen can be integrated into the same touch screen display.

[0039] The lamp body 2 in the atmosphere light device is implemented using a light strip and can include one or more light strips. Since the light strip is flexible, it can be shaped into a layout of any shape. Each light strip 21 includes a plurality of lamp beads 210 connected in series, each lamp bead 210 serving as a light-emitting unit, and the number of lamp beads 210 in each light strip 21 can be the same and arranged at equal intervals. The operating current is transmitted to each lamp bead 210 in the same light strip 21 by the same set of cables connected to the bus. In terms of electrical connection, the lamp beads 210 in the same light strip 21 can be connected in parallel.

[0040] The controller 1 in the ambient light device can receive position distribution information of each light-emitting unit in the light strip of the ambient light device from an external terminal device, so as to generate a light strip projection map based on the position distribution information, which is used as pattern data for playing the target light effect. When the ambient light device wants to play the target light effect, it first calls the light effect description data of the target light effect. Its controller 1 needs to determine multiple display control windows on the light strip based on the pattern data corresponding to its lamp body 2, so as to parse the corresponding light effect description data into light control data corresponding to each display control window. The light control data is directly used as the light control data of each light-emitting unit in the display control window, that is, all light-emitting units in the same display control window use unified light control data. Then, the corresponding light control data is sent with the display control window as the batch control unit. The control chip of each light-emitting unit in the light strip controls each light-emitting element therein to emit corresponding color light according to the light control data. Under the coordinated effect of the color light emitted by each light-emitting unit, the entire target light effect is played.

[0041] Based on the above product architecture and working principle of the atmosphere light device, the lighting effect projection and playback method of the atmosphere light device of the present application can be implemented as a computer program product and run in the controller of the atmosphere light device. Accordingly, referring to FIG. 2 , in some embodiments, the lighting effect projection and playback method of the present application includes:

[0042] Step S1100: Acquire a position information stream corresponding to a light-emitting unit in a light strip, wherein the position information stream includes position distribution information corresponding to each light-emitting unit in the light strip;

[0043] The present application can use a terminal device such as a mobile terminal to take a photo of the light strip in the atmosphere light device to obtain an image of the light strip, construct a shape path of the light strip in the light strip image and a light strip model of each light position in the shape path according to the light strip image, and display it in the interface canvas; respond to the light position calibration instruction, determine that the light position specified by the instruction is a valid light position; respond to the layout generation instruction, organize the position coordinates of each valid light position determined in the light strip model with reference to the interface canvas according to the order of each valid light effect along the light strip to form position distribution information. It is not difficult to understand that a valid light position corresponds to a light unit in the light strip of the atmosphere light device. Based on this, the position distribution information of the light strip can be quickly generated, and sent to the controller of the present application by the terminal device in the form of a position information stream, with a small amount of data and fast transmission.

[0044] In a more specific embodiment, the mobile terminal may first send a lighting instruction to the light strip in the ambient light device to control the light strip in the ambient light device to light up and present a preset lighting feature, wherein the lighting instruction includes lighting feature information corresponding to the lighting feature; then, based on the light strip image captured when the light strip is on, the shaping area of ​​the light strip is determined to define the shaping path of the light strip, and the image of the light strip body within the shaping area is extracted; then, the significant lighting features carried by the lighting features in the light strip body image are identified, and the location of each significant lighting feature is determined as the corresponding light position; finally, the shaping path and the various light positions are constructed into a light strip model and displayed in the interface canvas. It can be seen that with the help of the lighting features, the terminal device can more accurately identify the light positions corresponding to the various light-emitting units in the light strip.

[0045] The location distribution information obtained by the terminal device only contains the position coordinates of each light-emitting unit distributed along the light strip. The order of the position coordinates represents the distribution order of each light-emitting unit along the light strip, thus forming a data stream, also known as the location information stream. The terminal device transmits this location information stream to the controller instead of transmitting the entire image displayed by the interface canvas to the controller, which has a more efficient transmission effect.

[0046] After the controller of the present application receives the position information stream sent by the terminal device, it can perform corresponding analysis on it, thereby obtaining the position distribution information in the position information stream, that is, the position coordinates of each light-emitting unit in the light strip of the atmosphere light device. At the same time, since the position coordinates of each light-emitting unit have been sorted according to the order of each light-emitting unit along the light strip in the position distribution information, the corresponding sequence information of each light-emitting unit can also be obtained.

[0047] Step S1200: Expand the position distribution information of each light-emitting unit in a preset coordinate system to obtain a light strip projection image, so as to reconstruct pattern data of the light strip and each light-emitting unit therein in the light strip projection image;

[0048] In order to reproduce the shape of the light strip in the plane space in the controller, the controller pre-sets a coordinate system, and the coordinate system is defined as a two-dimensional rectangular coordinate system corresponding to the interface canvas of the terminal device. Based on this, according to the position distribution information of each unit, specifically according to the position coordinates of each light-emitting unit in the position distribution information, it is calibrated to the coordinate system in the memory of the controller to become the corresponding light position, and a light strip projection map described based on the pattern data can be obtained in the memory. Since the position distribution information of each light-emitting unit also carries the sequence information of each light-emitting unit, the corresponding light positions of the light strip projection map are marked with the sequence information of each light-emitting unit, so as to obtain more complete pattern data, and the light strip projection map can be called according to the pattern data later.

[0049] Expanding the position distribution information of each light-emitting unit into a light strip projection diagram can reproduce the relative position relationship of each light position in the light strip and the plane layout of the light strip in the physical space, thereby realizing accurate recognition of the specific shape of the light strip. On this basis, the mapping of the lighting effect is more accurate and can ensure that the lighting effect played is consistent with the expected effect.

[0050] Step S1300: using a regional tolerance window to divide the light strip in the light strip projection image into a plurality of light unit sets, and correspondingly forming a plurality of display control windows;

[0051] Although the light strips usually have light units arranged at equal intervals, in actual use, the shape of the light strips often has bends and twists. The light strips in the straighter parts appear sparser on the projection surface, while the light units in the more twisted parts are generally denser. In order to make the control of the light strips more regular and uniform on the projection surface, as shown in Figure 3, the present application uses an area tolerance window 88 to divide and set the light units in the light strips, and the multiple light units contained in each area tolerance window are regarded as a light unit set, corresponding to a corresponding display control window, so that the display control window can be used as a batch control unit to control all the light units in the same display control window with unified light control data.

[0052] As shown in Figure 3, the area tolerance window B8 in this application is displayed on the projection surface corresponding to the light strip projection diagram, and generally has basically the same area, or has an area relationship of equal proportion, depending on the specific situation. The multiple light-emitting units covered by the area tolerance window constitute a light-emitting unit set of a display control window corresponding to the position in the light strip projection diagram. When the area tolerance window of the same size appears at different positions in the light strip projection diagram, the number of light-emitting units covered may be different. Accordingly, the number of light-emitting units in different display control windows may also be different, and one light-emitting unit belongs to only one display control window. Usually, the display control window and its light-emitting unit set are usually constructed as mapping relationship data for easy calling.

[0053] After the corresponding display control window is determined according to the regional tolerance window, a mapping relationship can be established between the display control window and each light-emitting unit in the corresponding light-emitting unit set. Subsequently, the light-emitting control data can be generated in batches for each light-emitting unit in the display control window to improve the speed of light-emitting control data generation. It is not difficult to understand that by calibrating the mapping relationship between the light-emitting unit and the display control window in the memory, a mapping relationship between each light-emitting unit in the light strip projection diagram and the display control window to which it belongs is established. Therefore, when it is necessary to generate light-emitting control data for the light-emitting units in each display control window based on the light strip projection diagram, these mapping relationships can be referred to for corresponding data calls.

[0054] Step S1400: Taking each display control window as a batch control unit, generating lighting control data for a lighting unit set of each display control window corresponding to a target lighting effect, and controlling the light strip to play the target lighting effect according to the lighting control data.

[0055] The target lighting effect that needs to be played in the light strip of the atmosphere lighting device can be provided by the terminal device, called from the controller's memory, or downloaded by the controller from the cloud server.

[0056] The target lighting effect is described in the form of lighting effect description data, and the lighting effect description data can be expressed in any form such as an image frame or a message body, so as to realize the definition of the lighting effect motion process of the target lighting effect. According to the lighting effect motion process defined by the lighting effect description data of the target lighting effect, the lighting effect motion process can be parsed into the lighting control data corresponding to each playback frame. Specifically, each display control window in the corresponding light strip of each playback frame determines each light-emitting unit in the light-emitting unit set of the display control window according to the preset mapping relationship data, and uniformly sets the lighting control data for these light-emitting units, thereby actually generating the lighting control data corresponding to each light-emitting unit in the light-emitting unit set. For each display control window, since the display control window corresponds to a light-emitting unit set, each light-emitting unit in which the light-emitting control data is uniformly used as its own corresponding light-emitting control data, in this way, it is not necessary to generate individual control data for each light-emitting unit, which can improve the efficiency of generating the control data of each light-emitting unit corresponding to the playback frame.

[0057] After the controller generates the lighting control data for each display control window corresponding to the playback frame, it can send these lighting control data to the light strip according to certain rules. For example, the lighting control data of the corresponding display control window can be sent in each corresponding playback time slot according to the playback time slot corresponding to each lighting control data; or all the lighting control data corresponding to the entire playback frame can be encoded and packaged and sent to the light strip. In the data packet encapsulating the lighting control data, the lighting control data is usually arranged and set corresponding to the sequence information of each light-emitting unit in the light strip. Thus, each light-emitting unit in the light strip can extract the lighting control data corresponding to its own sequence position from the data packet, and control the light-emitting elements therein to emit corresponding light according to the lighting control data. The light-emitting units in the light strip all work according to the same principle, thereby realizing the coordinated playback of the same playback frame. In the same playback frame, different display control windows are controlled to play their corresponding lighting effects in different time slots, and / or multiple playback frames are played in sequence, etc., which can further present more complex animation effects. The specific animation effect is presented according to the definition of the lighting effect movement process in the target lighting effect.

[0058] According to the above embodiments, it can be known that the present application is adapted to the characteristics of the luminous light strip that it is flexible and can be shaped. In the controller of the atmosphere light device, the position information stream corresponding to each light-emitting unit of the luminous light strip is obtained, and the position distribution information of the light-emitting unit represented by the position information stream is expanded in the preset coordinate system to obtain the light strip projection map. Then, based on the pattern data of the light strip projection map, the preset area tolerance window is applied to divide all the light-emitting units of the luminous light strip into multiple display control windows, so that the plane area occupied by each display control window in the light strip projection map is basically similar, and then the display control window is used as the batch control unit to generate the target lighting effect corresponding to the light emission of each display control window. Control data is used to uniformly apply the light control data to all the light-emitting units in each display control window to control the lighting effect playback of each light-emitting unit therein, effectively reducing the system overhead of the controller generating all the light control data corresponding to all the light-emitting units of the light strip. Since the planar areas occupied by the display control windows are basically similar, when the target lighting effect is played accordingly, the density differences of the light-emitting units in different areas caused by the bending of the light strip can be effectively balanced, which can effectively avoid unnecessary distortion of the played lighting effect relative to the expected effect, and the lighting effect is presented more accurately, which can enhance the user product experience and make such atmosphere lighting equipment easier to promote and popularize.

[0059] Based on any embodiment of the method of the present application, referring to FIG4 , a regional tolerance window is used to divide the light strip in the light strip projection image into a plurality of light-emitting unit sets, which correspondingly constitute a plurality of display control windows, including:

[0060] Step S2100: Obtain the size specifications of the regional tolerance window, and slide the regional tolerance window along one end of the light strip in the light strip projection image toward the other end, starting from the other end.

[0061] In this embodiment, the size of the regional tolerance window can be preset in advance. The regional tolerance window can be set as a rectangular window based on a preset coordinate system and represented by window coordinates. The area of ​​the regional tolerance window can be set as needed.

[0062] Since the pattern data of the light strip in the light strip projection image has the corresponding sequence information of each light-emitting unit marked, the power access end can be determined, which is usually the end where the first light-emitting unit arranged in the position distribution information is located. Then, starting from the power access end, the area tolerance window is applied and moved along the light strip to search for the light-emitting unit.

[0063] Step S2200: During the movement of the regional tolerance window, when the number of light-emitting units falling within the regional tolerance window and not included in other display control windows is determined and reaches the maximum number that can be covered by the regional tolerance window, it is considered that the display control window is detected;

[0064] Since the position coordinates of each light-emitting unit have been calibrated in the projection diagram of the light strip, the connection line between every two adjacent light-emitting units can be determined based on these position coordinates. Then, during the movement of the regional tolerance window, the regional tolerance window is advanced to the light-emitting unit that is first touched in the order, so that the light-emitting unit enters the regional tolerance window and achieves preliminary positioning. Then, it is sequentially determined whether the position coordinates of other subsequent light-emitting units in the connection direction enter the coverage range of the regional tolerance window. If they enter, the corresponding light-emitting unit is deemed to be included in the display control window corresponding to the position of the current regional tolerance window.

[0065] Since the direction of the connecting line is often curved, in some embodiments, based on the preliminary positioning, the area tolerance window can be moved in a direction perpendicular to the direction of the connecting line, and the light-emitting units covered by the area tolerance window are continuously searched. The position with the largest number of light-emitting units is fixed as the position of the display control window, and the range covered by the area tolerance window at this time is used as the corresponding range of the display control window.

[0066] It can be seen that by using the regional tolerance window to search for light-emitting units along the direction of the connecting lines in the light strip projection diagram, as many light-emitting units as possible within a fixed area can be obtained. The position of the regional tolerance window when the maximum number of light-emitting units is obtained is used as the position of the display control window, and the area of ​​the regional tolerance window is used as the area of ​​the display control window. In this way, the display control window and all the light-emitting units included in it are determined.

[0067] Step S2300: When a display control window is detected, mapping relationship data between the display control window and a light-emitting unit set composed of its corresponding light-emitting units is established;

[0068] In the previous step, the window position of the display control window in the preset coordinate system is determined, and its corresponding light-emitting unit set is also determined. Based on this, the correspondence between the display control window and each light-emitting unit in its light-emitting unit set can be constructed as mapping relationship data. This mapping relationship data can be reflected by marking each light-emitting unit in the pattern data in the light strip projection diagram, or by constructing corresponding memory data in the memory, and then making corresponding calls.

[0069] Step S2400: After the construction of the mapping relationship data of a display control window is completed, the area tolerance window is continuously slid to perform the above iterations until the last light-emitting unit is included in the corresponding display control window.

[0070] During motion detection using the regional tolerance window, once a display control window is identified, the light-emitting units already included in that display control window no longer participate in subsequent detection. Therefore, the light-emitting units outside the display control window can be directly located to continue detecting the next display control window, and the above process is then repeated, specifically continuing the iteration from step S2200 to continuously determine new display control windows until the last light-emitting unit in the light strip is included in the corresponding display control window, thus completing the detection of all display control windows of the light strip.

[0071] It can be seen from the above embodiments that this embodiment can fully adapt to the characteristics of the light strip that is bent and folded after shaping, reconstruct the control granularity of the light-emitting units in the light strip, and obtain multiple display control windows, so that each display control window is basically consistent on the projection surface, but may accommodate a different number of light-emitting units. Therefore, when the display control window is used as a batch control unit to generate light control data and control the playback of lighting effects, the control granularity presented on the projection surface of the light strip is relatively uniform, and the area difference on the plane caused by the bending and folding of the light strip will be roughly balanced, which can make the playback of lighting effects more in line with expectations and ensure the presentation effect of lighting effects.

[0072] Based on any embodiment of the method of the present application, refer to FIG5 to obtain the size specifications of the regional tolerance window, including:

[0073] Step S2110: Count the total number of light-emitting units in the projection image of the light strip, and calculate the average of the total number of light-emitting units according to the number of partitions to serve as the average number of light-emitting units;

[0074] In this embodiment, the number of light-emitting units in the projection diagram of the light strip can be counted first to obtain the total number of light-emitting units. In addition, a partition number can be preset to represent the number of display control windows into which the light strip is divided, so as to adjust the control granularity when playing the lighting effect according to this partition number. The number of partitions can be made available to the user by the controller through a graphical user interface and set according to actual needs. On this basis, the total number of light-emitting units is divided by the number of partitions to obtain the average number of light-emitting units, that is, the average number of light-emitting units that can be allocated to each display control window. It should be pointed out that the number of partitions here is not the total number of display control windows finally obtained, because after the light strip is bent and folded, the number of light-emitting units contained in the same display control window may be greater than or less than the average number of light-emitting units, so the total number of display control windows finally obtained may not be equal to the preset number of partitions.

[0075] Step S2120: partition all the light-emitting units in the light strip projection image according to the average number of light-emitting units, and determine a coverage window corresponding to each partition;

[0076] After determining the average light-emitting unit data, all light-emitting units in the light strip are partitioned according to the position coordinates and sequence information of each light-emitting unit defined in the pattern data of the light strip projection diagram. This results in multiple partitions. Each partition preferably contains a number of light-emitting units that matches the average number of light-emitting units. If there are more light-emitting units than the average number of light-emitting units, all the remaining redundant light-emitting units can be defined as a single partition. After each partition is determined, the window coordinates of the corresponding partition are determined using the connection between the position coordinates of the light-emitting units at the beginning and end of each partition as the diagonal line. This completes the definition of each partition and determines the corresponding coverage window for each partition.

[0077] Step S2130: Calculate the average horizontal size and average vertical size of the coverage window of each partition according to the horizontal size and vertical size respectively;

[0078] It is not difficult to understand that according to the window coordinates of each partition, which are usually the position coordinates of the first and last two light-emitting units it covers, the horizontal and vertical dimensions of the corresponding partition can be determined through these two position coordinates. Each partition can obtain its horizontal and vertical dimensions.

[0079] Furthermore, the average horizontal size can be obtained by averaging the horizontal sizes of all partitions, and the average vertical size can be obtained by averaging the vertical sizes of all partitions.

[0080] Step S2140: setting the average horizontal size and the average vertical size as size specifications of the area tolerance window.

[0081] After determining the average horizontal and vertical dimensions, they can be defined as the size specifications corresponding to the regional tolerance window. In some embodiments, based on actual needs, a preset tolerance size can be added to the average horizontal and vertical dimensions to appropriately expand the area of ​​the regional tolerance window.

[0082] According to the above embodiments, it can be known that the present application further opens up the means of adjusting the control granularity to the users of the atmosphere lighting equipment. The user can scale the size of the display control window by presetting the number of partitions, thereby adjusting the control granularity of the lighting effect presentation. The convenience of operating the atmosphere lighting equipment can be improved and the user experience of the product can be improved. The control mechanism implemented in this way facilitates users to adapt to the linear characteristics of the light strip and define and present streamlined lighting effects.

[0083] Based on any embodiment of the method of the present application, referring to FIG6 , a regional tolerance window is used to divide the light strip in the light strip projection image into a plurality of light-emitting unit sets, which correspondingly constitute a plurality of display control windows, including:

[0084] Step S3100: Obtain a coordinate reference point and a preset incremental size of the coordinate system, search for a light-emitting unit closest to the coordinate reference point based on the light strip projection image, and define an area with the coordinate reference point as the center and the distance from the coordinate reference point to the light-emitting unit as the radius as a vacant area;

[0085] As previously disclosed, the controller of this application is pre-set with a coordinate system corresponding to the projection of the light strip, from which the coordinate reference point of the coordinate system can be determined. Furthermore, to facilitate the implementation of circular control granularity in this embodiment, the controller can also obtain an incremental size. These incremental sizes can be pre-set and, similarly, can be set by the user through a graphical user interface provided by the controller. The coordinate reference point can default to the coordinate origin or be pre-set by the user in the coordinate system.

[0086] For each light-emitting unit in the light strip projection, the distance from the coordinate reference point can be calculated based on its position coordinates. This allows the distances of each light-emitting unit to the coordinate reference point to be compared, with the minimum distance determined as the radius of the vacant area. The area formed by drawing a circle with the coordinate reference point as the center and the minimum distance as the radius is the vacant area. A vacant area is defined as an area without any light-emitting units. Even light-emitting units corresponding to the minimum distance will be included in the corresponding area tolerance window.

[0087] Step S3200: superimpose the incremental size on the radius as a new radius, determine a circular area between the two radii, and use the circular area as a regional tolerance window;

[0088] After obtaining the radius corresponding to the previous circle, use this radius as the old radius and superimpose the preset incremental size to obtain a new radius. Then, still using the coordinate reference point as the center of the circle, draw a circle with the new radius and subtract it from the previous circle to obtain a circular area. This circular area is the area tolerance window.

[0089] Step S3300: When there are light-emitting units in the area tolerance window, the area tolerance window is used as a display control window, and all the light-emitting units in the area tolerance window are used as a light-emitting unit set corresponding to the display control window. A mapping relationship data between the display control window and the light-emitting unit set is established, and the previous step is iterated until the corresponding area tolerance window no longer contains light-emitting units.

[0090] When the area tolerance window is covered with light-emitting units, that is, the number of light-emitting units is not 0, the area tolerance window can constitute a display control window. Correspondingly, each light-emitting unit entering the display control window constitutes a light-emitting unit set corresponding to the display control window. As disclosed above, the mapping relationship data between the display control window and its light-emitting unit set can be established for subsequent calls.

[0091] After the construction of the mapping relationship data of a display control window is completed, the current corresponding radius can be used as the old radius to return to step S3200 for further iteration, thereby continuously looping and iterating until the number of light-emitting units contained in the corresponding area tolerance window is 0.

[0092] According to the above embodiments, it can be seen that the present application can change the definition form of the control granularity, determine the display control window in the form of a circular area, and allow users to adjust the thickness of the circular area, thereby making it convenient for users to define radial lighting effects based on the light strip for effective presentation.

[0093] Based on any embodiment of the method of the present application, please refer to FIG. 7 , with each display control window as a batch control unit, generating lighting control data for a lighting unit set of each display control window corresponding to a target lighting effect, including:

[0094] Step S4100: calling lighting effect description data of a target lighting effect, where the lighting effect description data includes motion information and lighting effect color data;

[0095] As previously disclosed, the target lighting effect to be played is represented by lighting effect description data. Based on this, the lighting effect description data for the target lighting effect can be retrieved and parsed to obtain the motion information and lighting effect color data. For example, the motion information in the lighting effect description data can define a streamlined motion pattern, indicating that the lighting effect in each display control window flows along the direction of the light strip. Similarly, the lighting effect color data in the lighting effect description data is used to define the color that each display control window needs to illuminate, such as a random color.

[0096] Step S4200: determining a play time slot of each display control window according to the motion information;

[0097] Taking the motion information limited to streamlined motion as an example, the motion information can include the total duration for the target lighting effect to be displayed, such as 2 seconds, and the number of display control windows in the light strip is already determined. Therefore, the total duration is divided by the number of display control windows to obtain the corresponding playback duration of each display control window, and based on this, the corresponding playback time slot of each display control window can be determined.

[0098] Step S4300: determining color data of each display control window according to the lighting effect color data;

[0099] According to the lighting effect color data, taking the color value of each display control window defined as a random color in the lighting effect description data as an example, a color value can be randomly generated for each display control window as its corresponding color data.

[0100] Step S4400: according to the play time slot and color data of each display control window, set the light control data corresponding to the display control window as the light control data of each light unit in the light unit set of the display control window.

[0101] After determining the playback time slot and color data corresponding to each display control window, the controller can adapt to the protocol between it and the control chip of the light-emitting unit to encapsulate the lighting control data corresponding to each display control window, so that the lighting control data includes the corresponding color data and is associated with the corresponding playback time slot. It should be noted that since the lighting control data corresponding to the display control window is also the lighting control data corresponding to each light-emitting unit in the display control window, the lighting control data of each corresponding light-emitting unit can be directly assigned based on the lighting control data of the display control window.

[0102] According to the above embodiments, it can be seen that since all the light-emitting units in the display control window use the same light-emitting control data, there is no need to construct the light-emitting control data individually, which can effectively reduce the amount of calculation corresponding to the controller generating the light-emitting control data, reduce the system overhead of the controller, and improve the robustness of the controller during operation.

[0103] Based on any embodiment of the method of the present application, controlling the light strip to play the target light effect according to the light control data includes:

[0104] Step S5100: In a playback time slot corresponding to each display control window, transmitting the light control data corresponding to the display control window as the light control data of each light unit corresponding to the display control window to the light strip;

[0105] As disclosed above, the luminous control data of each display window contains corresponding color data and is associated with the corresponding playback time slot. Accordingly, in the playback time slot corresponding to each display control window, the luminous control data corresponding to the display control window can be assigned to the luminous control data of each luminous unit corresponding to the display control window, and these luminous control data can be encapsulated into data packets according to a predetermined protocol format and sent to the luminous light strip.

[0106] Step S5200: each light-emitting unit in the light strip corresponding to the display control window plays a corresponding light effect according to the light-emitting control data.

[0107] After receiving the data packet, each light-emitting unit in the light strip extracts its own lighting control data according to a preset protocol. Then, based on the color data in the lighting control data, it controls its own light-emitting element to emit light of the corresponding color. Because the same lighting control data is used in the same display control window, all light-emitting units in the entire display control window will emit the same color lighting effect.

[0108] It is not difficult to understand that when each display control window is controlled to emit corresponding light in succession, the entire target lighting effect can be played and presented.

[0109] According to the above embodiments, it can be known that using the display control window as a batch control unit and uniformly controlling all the light-emitting units in the display control window actually redefines the control granularity of the light strip. Since the display control windows are basically similar in area, the effect of light control on the projection surface of the light strip of the atmosphere light device must be more uniform and harmonious, and the lighting effect presented can better create the expected immersive feeling.

[0110] The controller 1 in the light-emitting device can receive a lighting effect configuration from an external terminal device. The controller 1 in the light-emitting device obtains one or more graffiti light positions and graffiti light colors contained in the graffiti light position information according to the graffiti light position information and the lighting effect lighting information contained in the lighting effect configuration, determines the target lamp beads corresponding to each of the graffiti light positions in the light-emitting light strip 21, and generates the lighting effect light color corresponding to each target lamp bead 2 according to the graffiti light color, obtains the relative position of the starting point of the lighting effect lighting information, the lighting effect lighting coverage area and the rotation speed, determines the special effect starting point relative to the light-emitting light strip 21 according to the relative position of the starting point, controls the lighting effect lighting coverage area to rotate around the special effect starting point at the rotation speed, monitors the rotation process of the lighting effect lighting coverage area, determines the target lamp beads that the lighting effect lighting coverage area in the light-emitting light strip 21 currently rotates through, and controls these target lamp beads to emit their corresponding lighting effect light colors.

[0111] Based on the product architecture and operating principle of the above-mentioned light-emitting device, the method for editing the lighting effect luminous area of ​​the light-emitting device of the present application can be implemented as a computer program product and run on a user terminal connected to the light-emitting device. Accordingly, referring to FIG8 , in some embodiments, the method for editing the lighting effect luminous area of ​​the light-emitting device of the present application includes:

[0112] Step S11, determining a shape path of the light strip and a plurality of light positions in the shape path based on the light strip image, so as to construct a corresponding light strip model and display it on the interface canvas;

[0113] The present application can determine the shaping path formed by the user after shaping the light strip based on the image analysis of the light strip image obtained by shooting the light strip used by the lamp body in the light-emitting device. At the same time, the various lamp positions distributed on the shaping path can also be determined during the image analysis process. The light position referred to here is a light-emitting unit obtained by image analysis of the light strip image to indicate the shaping path. This light-emitting unit can be set to correspond to the light unit in the light strip, or to a plurality of light-emitting units of a standard number or standard length range in the light strip. Therefore, at the computer program level, the light position can be represented as a segment in the shaping path, and each segment can correspond to one or several light-emitting units; or it can be represented as a node in the shaping path, and each node represents only one light-emitting unit in the shaping path. In actual implementation, it can be determined according to needs to make the zoning management of the light strip more flexible. For ease of understanding, each light position mentioned in the following embodiments of the present application may be regarded as a light-emitting unit in the corresponding light strip, and each light-emitting unit is equivalent to each lamp bead in the light strip.

[0114] The user terminal can obtain the light strip image by using its own shooting unit, such as the camera of the user terminal, to shoot the luminous light strip and generate an image of the luminous light strip as the light strip image, or the shooting unit can be a camera device connected to the light-emitting device to shoot the luminous light strip and generate a corresponding light strip image, and push the light strip image to the user terminal connected to the light-emitting device, so that the user terminal can obtain the light strip image and construct a corresponding light strip model.

[0115] There are many ways to determine the shape of the light strip based on the light strip image. You can choose any of the following methods:

[0116] In one embodiment, the user terminal can perform image segmentation based on the light strip image to obtain an image mask corresponding to the light strip in the light strip image. The image mask actually describes the area where the light strip is shaped in the light strip image, that is, the styling area. Since the styling area of ​​the light strip is necessarily linear, the styling path of the light strip is also defined by the styling area. In this embodiment, the light strip image can be an image of the light strip before or after it is turned on. Determining the styling path end-to-end in this way is more accurate.

[0117] In another embodiment, the light strip image can be binarized, and edge detection can be performed on the resulting binary image using various known edge detection algorithms to determine the shape region and define the shape path of the light strip. Similarly, in this embodiment, the light strip image can be an image of the light strip before or after it is illuminated. Determining the shape path in this manner reduces computational effort, facilitates rapid identification, and is cost-effective.

[0118] In the two aforementioned embodiments for determining the path of a light strip, to improve the accuracy of path detection, a terminal device can also be used to send a lighting command to the light strip before capturing a single light strip image. This command causes the light strip to illuminate first, and then the camera unit is activated to capture the light strip image. Since the light strip is illuminated at this point, the resulting light strip image is brighter. Whether performing image segmentation or edge detection, the highlight feature can more accurately determine the shape of the light strip within the light strip image.

[0119] In another embodiment of determining the shaping path of a light strip based on a light strip image, after turning on the terminal device's camera unit for preview, two frames of light strip images, one before and one after the light strip is illuminated, are obtained. The two light strip images are aligned and frame difference information is calculated. The pixels at the corresponding positions of the light strip in the frame difference information will obtain significant values. The set of pixels with significant values ​​constitutes the shaping area of ​​the light strip, thereby defining the corresponding shaping path. This method also has the advantages of low computational complexity, speed, and efficiency.

[0120] After determining the shape path of the light strip, you can further detect the various lamp positions distributed on the shape path. There are also many ways to determine the lamp positions on the shape path. You can choose any of the following methods:

[0121] In one embodiment, a user terminal calculates the actual size of the light strip image in physical space based on the focal length of the light strip image. Then, based on the shape areas in the light strip image, the length of the shape path is calculated as the actual size of the light strip. Finally, the shape path is segmented according to preset partitioning parameters, with each segment forming a corresponding light position. The partitioning parameter can be the distance between two adjacent lamps in the light strip or the total number of lamps in the light strip. By evenly dividing the actual size based on the distance or total number, the segments and, thus, the light positions can be determined. The partitioning parameter can also be a standard number of lamps that constitute a light position, with each group of lamps of each standard number being considered a light position. According to this embodiment, with the pre-set partitioning parameters, the light positions in the light strip image can be automatically determined, regardless of whether the light strip is illuminated. The algorithm for determining the light positions is based on the physical focal length of the image, which is more accurate, requires no manual intervention, and is more efficient. The partitioning parameters can be pre-set by the user or set using the factory defaults provided by the application.

[0122] In another embodiment, the light-emitting device first controls the individual lamp beads of the light strip to operate at a specific color distribution, highlighting the brightness of each lamp. This allows adjacent lamp beads to display different colors. In the light strip image, the light strip's path is divided into multiple segments based on the different characteristics of the light emitted by adjacent lamp beads. Each segment constitutes a corresponding lamp position. Determining each lamp position in this manner eliminates the need to rely on partition occupancy parameters and provides greater flexibility. This means that the individual lamp positions can be effectively identified regardless of the length of the light strip or the spacing between the lamp beads. The specific lighting command used here can also be combined with the previously described embodiment of determining the path using an image of the light strip after lighting. Specifically, the specific lighting command is used to control the lighting of the light strip, generating an image of the light strip after lighting. This image can be used to determine both the path and the lamp positions in this embodiment. This embodiment offers the efficiency advantage of combining the previously described embodiment of determining the path using an image after lighting.

[0123] Please refer to Figures 1 and 10. After determining the modeling path and each light position of the light strip in the light strip image, an interface canvas is set in the graphical user interface of the user terminal, thereby defining a reference coordinate system. Then, the modeling path is constructed as a light strip model, positioned and displayed in the interface canvas, and displayed in the center relative to the whole to achieve a better visual effect. At the same time, when constructing the light strip model, the various light positions distributed along the modeling path are also marked at the corresponding positions, that is, the visual identification of each light position in the modeling path represented by the light strip model is displayed. Therefore, the user at the user terminal can graffiti the light positions of the light strip model in the interface canvas through the interface canvas, and drag the starting point in the interface canvas to customize the special effect starting point of the lighting effect to light up the coverage area. The lighting effect lighting coverage area is used to control the lighting effect lighting sequence of different graffiti light positions. For details, please refer to the subsequent relevant embodiments. As shown in the graphical user interface of Figure 9, the interface canvas 301 shown in the graphical user interface shows the light strip model 302 corresponding to the luminous light strip. It can be seen that the light strip model 302 shows the modeling path and various light positions of the luminous light strip 21 shown in Figure 1. The user can graffiti the graffiti light positions in the interface canvas 301 to graffiti the graffiti light positions of the light strip model 302. The graffiti light positions correspond to the lamp beads in the luminous light strip 21. The user can customize the special effect starting point of the lighting effect lighting coverage area that acts on the lighting effect lighting sequence of the lamp beads corresponding to the graffiti light positions in the luminous light strip 21 by dragging the starting point of the interface canvas 301.

[0124] Step S12, responding to the light position graffiti event, determining the light position with graffiti in the light strip model as the graffiti light position, and generating corresponding graffiti light position information;

[0125] After the light strip model corresponding to the luminous light strip is output to the interface canvas for display, the user can perform a graffiti light position graffiti operation in the interface canvas to trigger the user terminal to respond to the light position graffiti event and determine the light position where the light strip model is graffitied in the interface canvas as the graffiti light position.

[0126] When the user graffiti the light position in the interface canvas, he will select the corresponding graffiti light color and use the graffiti brush of the selected graffiti light color to graffiti in the interface canvas. By graffitiing the light strip model in the interface canvas, the user can click on the touch interface canvas to graffiti. By graffiti, the light position in the light strip model will be graffitied with the graffiti light color. The graffitied light position will serve as the graffiti light position that emits the marquee light effect, and the light color emitted by the graffiti light position corresponds to the graffiti light color corresponding to the graffiti brush.

[0127] Please refer to Figures 9 and 10. The graffiti light color selection control 303 shown in Figure 9 is used to select the graffiti light color. If the graffiti light color selected by the graffiti light color selection control 303 is red, the graffiti brush used by the user when performing the graffiti operation in the interface brush 301 will be a red graffiti brush. When the user uses the red graffiti brush to graffiti the light strip area 304 in the light strip model 302, the light strip model 302 shown in Figure 9 will change to the light strip model 401 shown in Figure 10. The light strip area 402 of the light strip model 401 corresponds to the light strip area 304 of the light strip model 302. The color of each lamp position in the light strip area 402 is graffitied red by the red graffiti brush. These lamp positions will serve as graffiti lamp positions. In the luminous light strip corresponding to the light strip model 401, the lamp beads corresponding to these lamp positions will emit light effects of red light color.

[0128] Please refer to Figure 11. Of course, the user can use graffiti brushes with different graffiti light colors to perform graffiti operations. After completing the graffiti operation with a graffiti light color, the user can select another graffiti light color to use the graffiti brush with another graffiti light color to perform graffiti operations, so as to graffiti each light position in the light strip model in the interface canvas with a graffiti light position with a different graffiti light color, so that the user can design light effects with different lighting effects and colors to meet the user's personalized needs. In the interface canvas shown in Figure 11, the light strip model shown has graffiti light positions with three graffiti light colors: red, blue and green.

[0129] Regarding how the user terminal determines the graffiti light position in the light strip model that has been graffitied, specifically, the user terminal generates a corresponding graffiti brush for the user to perform graffiti operations based on the graffiti light color selected by the user, and the user terminal detects the graffiti path of the graffiti brush in the interface canvas, that is, when the user uses the graffiti brush to draw graffiti by clicking on the touch interface canvas, the click touch position in the interface canvas is detected as the graffiti path. When the graffiti path passes through the light strip model in the interface canvas, the light position in the light strip model where the graffiti path passes is determined as the graffiti light position, and the color of the graffiti light position is set. Changing to graffiti light color. It is understandable that users can use the graffiti brush to doodle freely in the interface canvas, but the graffiti brush doodle path will not be fully displayed in the interface canvas. Only the graffiti path passing through the light strip model will be displayed. The graffiti path is displayed by changing the light positions passed by the graffiti path in the light strip model to graffiti light positions with the graffiti light color so that they can be noticed by the user. The graffiti brush doodle path is not fully displayed in the interface canvas. This can prevent the graffiti path that does not pass through the light strip model from interfering with the user's observation of the light strip model, thereby ensuring the user's graffiti operation experience.

[0130] After the user terminal detects the graffiti light positions in the light strip model and modifies the light position colors, it will also generate corresponding graffiti light position information to record the graffiti light positions and their graffiti light colors in the light strip model. This will facilitate the subsequent pushing of the graffiti light position information to the light-emitting device. The light-emitting device can use the graffiti light position information to determine the lamp beads corresponding to the graffiti light positions in the light strip, as well as the light colors used by these lamp beads when emitting the marquee light effect.

[0131] Step S13, in response to the starting point positioning event, determining the position of the starting point in the interface canvas as the relative position of the starting point, and generating corresponding lighting effect lighting information, wherein the starting point is used to locate the special effect starting point of the lighting effect lighting coverage area, and the lighting effect lighting coverage area is used to light up the lighting effect of the graffiti light position;

[0132] In addition to customizing the graffiti light positions in the graffiti light strip model that need to emit lighting effects through graffiti operations, users can also customize the position of the special effect starting point of the lighting effect coverage area that controls the lighting order of each graffiti light position.

[0133] The lighting effect of the present application is formed by moving the lighting effect lighting coverage area based on the special effect starting point to control the lighting order of the lamp beads that emit the lighting effect in the luminous light strip, for example, a rotating marquee lighting effect is formed by the lighting effect lighting coverage area that rotates around the special effect starting point, a diffuse lighting lighting effect is formed by the lighting effect lighting coverage area that diffuses the lamp beads based on the special effect starting point, a contracted lighting lighting effect is formed by the lighting effect lighting coverage area that contracts the lamp beads based on the special effect starting point, and a translational lighting lighting effect is formed by the lighting effect lighting coverage area that translates the lamp beads based on the special effect starting point. Of course, those skilled in the art can also flexibly design other lighting effects formed by the lighting effect lighting coverage area that moves based on the special effect starting point, which will not be elaborated on here.

[0134] Taking the rotating marquee light effect as an example, please refer to Figure 12. The light effect lighting coverage area is used to trigger the lamp beads corresponding to the graffiti light positions in the light strip to emit light effects, that is, the lamp beads corresponding to the graffiti light positions in the light strip that are in the light effect lighting coverage area will emit light effects, and the light effect lighting coverage area will rotate around the special effect starting point. By rotating the light effect lighting coverage area, the light effect lighting order of the lamp beads corresponding to different graffiti light positions in the light strip can be controlled. In the schematic diagram shown in Figure 12, the area 601 shown in A in Figure 12 is the light effect lighting coverage area, and the center 603 shown is the special effect starting point. All the lamp beads in the light strip 602 shown are the lamp beads corresponding to the graffiti light positions where the user graffiti. It can be seen from A, B and C in Figure 12 that the light effect lighting coverage area rotates around the special effect starting point. 12 , the lamp beads in the light effect lighting coverage area 605 emit light effects, and the lamp beads outside the light effect lighting coverage area 605 stop emitting light effects. It can be seen that, for the lamp beads corresponding to the graffiti light positions in the light strip, only the lamp beads in the light effect lighting coverage area will emit light effects, while the lamp beads outside the light effect lighting coverage area will not emit the marquee light effects, and then rotate around the center through the light effect lighting coverage area, continuously lighting up and turning off the light effects of the lamp beads corresponding to the graffiti light positions in the light strip, to form a rotating marquee light effect of the light strip.

[0135] Taking the rotating marquee light effect as an example, please refer to Figure 9. As mentioned above, the rotational movement of the lighting effect lighting coverage area is carried out around the special effect starting point. The user can modify the position of the starting point in the interface canvas by dragging or touching the starting point corresponding to the special effect starting point in the interface canvas, and the position of the starting point in the interface canvas will be determined as the starting point relative position. The starting point relative position refers to the position of the special effect starting point relative to the luminous light strip. By modifying the starting point position in the interface canvas, the user can modify the position of the special effect starting point around which the lighting effect lighting coverage area rotates relative to the luminous light strip. The starting point is shown in Figure 9 in the interface canvas. The starting point 305 shown in the interface canvas shown in Figure 9 can be dragged by the user at will to modify the position of the starting point 305 in the interface canvas, and then modify the position of the special effect starting point corresponding to the starting point 305 relative to the luminous light strip.

[0136] Taking the rotating marquee lighting effect as an example, please refer to Figures 12 and 13. From the lighting effect lighting coverage area 601 shown in A in Figure 12, it can be seen that the lighting effect lighting coverage area is generally a fan-shaped area. When the angle of the fan-shaped area remains unchanged, changing the position of the special effect starting point will cause the number of lamp beads that can be lit in the lighting effect lighting coverage area at the same time to change. The closer the special effect starting point is to the light strip, the fewer lamp beads can be lit in the lighting effect lighting coverage area at the same time. The farther the special effect starting point is from the light strip, The more lamp beads that can be lit at the same time in the lighting effect lighting coverage area, the more lamp beads that can be lit at the same time. As shown in Figure 13, the lighting effect lighting coverage area 702 and the lighting effect lighting coverage area 704 shown in Figure 13, the angles of the area angles 705 and 706 of the two lighting effect lighting coverage areas shown are the same, and the special effect starting point 701 rotated around by the lighting effect lighting coverage area 702 is compared with the special effect starting point 703 rotated around by the lighting effect lighting coverage area 704. The special effect starting point 701 is closer to the light strip, that is, the relative position of the starting point of the special effect starting point 701 is closer to the light strip than the special effect starting point 703, and by comparing the light effect lighting coverage area 702 and the light effect lighting coverage area 704, it can be seen that the light effect lighting coverage area 702 is smaller than the light effect lighting coverage area 704, and it can be seen from C and D in Figure 13 that the light effect lighting coverage area 707 shown in C in Figure 13 is smaller than the light effect lighting coverage area 704. 2, the lighting effect lighting coverage area 708 shown in D in Figure 13 corresponds to the lighting effect lighting coverage area 704. Compared with the lighting effect lighting coverage area 708, the lighting effect lighting coverage area 707 can simultaneously light up fewer lamp beads that emit light effects. Therefore, the user can modify the position of the user starting point by dragging in the interface canvas to modify the relative position of the special effect starting point, and modify the number of lamp beads that can be lit in the lighting effect lighting coverage area to meet the user's personalized design needs for the marathon lighting effect.

[0137] The starting point that the user touches or drags on the interface canvas can control the starting point of special lighting effects, such as the rotating marquee lighting effect, as well as the diffusion lighting effect, contraction lighting effect, and translation lighting effect. In short, the starting point in the interface canvas controls the starting point of the movement of the lighting effect coverage area, that is, the starting point of the special lighting effect when the lighting effect coverage area executes the lighting effect. In other words, the starting point in the interface canvas that can be customized by the user can control the starting point of the special lighting effect when the lighting effect coverage area executes the lighting effect.

[0138] In addition to being able to modify the relative position of the special effect starting point around the lighting effect coverage area, users can also customize and edit other information about the lighting effect coverage area. Taking the rotating marquee lighting effect as an example, the area angle, the rotation speed of the lighting effect coverage area when rotating, and the direction of the lighting effect coverage area when rotating, to further meet the user's personalized design needs. In addition, personalized design requirements for lighting effects such as diffuse lighting effects, contraction lighting effects, and translation lighting effects can be customized and edited. Of course, those skilled in the art can design flexibly, so I will not go into details.

[0139] The lighting effect lighting information records the relative position of the starting point determined by the user by dragging the starting point, and records other information of the lighting effect lighting coverage area customized by the user. Taking the rotating marquee light effect as an example, the regional angle of the lighting effect lighting coverage area customized by the user, and the rotation speed of the lighting effect lighting coverage area customized by the user when rotating, so as to facilitate the subsequent pushing of the lighting effect lighting information to the light-emitting device, driving the light-emitting device to determine the position of the special effect starting point relative to the light strip according to the lighting effect lighting information, determine the regional angle of the lighting effect lighting coverage area, and control the speed of the lighting effect lighting coverage area when rotating around the special effect starting point.

[0140] Step S14 , in response to the lighting effect application event, generating a lighting effect configuration having the graffiti light position information and the lighting effect lighting information, and pushing the lighting effect configuration to the lighting device of the light strip.

[0141] When the user completes the graffiti light position determined in the graffiti light strip model in the interface canvas, and completes the relative position determined by dragging the starting point in the interface canvas, and applies the corresponding graffiti light position information and lighting effect lighting information to the luminous light strip to trigger the luminous light strip to display the corresponding marathon light effect, the user terminal will generate a lighting effect configuration with the graffiti light position information and lighting effect lighting information, and push the lighting effect configuration to the lighting device belonging to the luminous light strip corresponding to the light strip model.

[0142] After the light-emitting device receives the lighting effect configuration pushed by the user terminal, the controller of the light-emitting device will control the lighting effect lighting coverage area to move based on the special effect starting point according to the lighting effect configuration, so as to light up the lamp beads corresponding to the graffiti lamp positions in the light-emitting light strip to emit lighting effects, thereby forming the corresponding lighting effects. Specifically, taking the lighting effect configuration of the rotating marquee lighting effect as an example, the light-emitting device receives the lighting effect configuration pushed by the user terminal, and the controller of the light-emitting device will obtain the graffiti lamp position information and lighting effect lighting information of the lighting effect configuration, and then obtain one or more graffiti lamp positions and graffiti light colors of the graffiti lamp position information, so as to determine the target lamp corresponding to each of the graffiti lamp positions in the light-emitting light strip. Beads, and generate the lighting effect light color corresponding to each of the target lamp beads according to the graffiti light color, and obtain the relative position of the starting point of the lighting effect lighting information, the regional angle and the rotation speed, and then determine the special effect starting point relative to the luminous light strip according to the relative position of the starting point, and control the lighting effect lighting coverage area with the regional angle to rotate around the special effect starting point at the rotation speed. After that, the controller monitors the rotation process of the lighting effect lighting coverage area in real time, and determines the target lamp beads that the lighting effect lighting coverage area in the luminous light strip currently rotates through, so as to control these target lamp beads to emit their corresponding lighting effect light colors.

[0143] Please refer to Figure 14. In addition, users can design lighting effect configurations corresponding to various marathon lighting effects to control the light strip to produce different marathon lighting effects. Different lighting effect configurations have different lighting effect levels. The lighting effect lighting coverage area of ​​the lighting effect configuration with a higher lighting effect level will cover the lighting effect lighting coverage area of ​​the lighting effect configuration with a lower lighting effect level. As shown in Figure 14, taking the rotating marathon lighting effect as an example, the marathon lighting coverage area 801 shown in A in Figure 14 has a lighting effect level that is higher than the lighting effect level of the marathon lighting coverage area 802 shown in B in Figure 14. Therefore, as shown in C in Figure 14, when the marathon lighting coverage area 801 and the marathon lighting coverage area 802 are in the same position, the lamp beads corresponding to the graffiti lamp positions in the marathon lighting coverage area 801 and the marathon lighting coverage area 702 will emit the lighting effect light color of the lamp beads corresponding to the marathon lighting coverage area 801.

[0144] Based on any embodiment of the method of the present application, referring to FIG. 15 , determining a shape path of the light strip and a plurality of light positions in the shape path based on the light strip image to construct a corresponding light strip model and display it on the interface canvas includes:

[0145] Step S111, obtaining a light strip image generated by a camera unit capturing the light strip in a lit state, determining a shape region of the light strip in the light strip image to define a shape path of the light strip, and extracting an image of the light strip body within the shape region;

[0146] When the user terminal uses its own camera unit to capture images of the light strip, it automatically sends a lighting command to the light device in the background. After receiving the lighting command, the controller of the light device controls the light strip to light up and operate. The lighting command may include lighting characteristic information such as instructing each light strip's light units to display different colors when adjacent to each other. The controller converts this lighting characteristic information into control data for each light unit, forming lighting effect control data and sending it to each light strip's light units. This ensures that the colors of light emitted by two adjacent light units are different, for example, making the light strip illuminate in the order of red, green, blue, red, green, blue, etc.

[0147] After the user terminal issues the light-on command, it activates its own camera unit to collect image data, obtains preview images in the background, and then performs target recognition or command feature detection on each preview image. When one of the preview images contains a light strip, the user can be prompted to capture the light strip image. When performing target recognition, it can be implemented with the help of a target detection model; when performing command feature detection, it can detect whether the light strip image contains a luminous feature corresponding to the luminous feature information set in the light-on command. When the light strip image contains a luminous feature corresponding to the luminous feature information, the user can be prompted to capture the light strip image.

[0148] In some other embodiments, the user can control the light-emitting device to light up its light strip, and then manually capture the light strip image using the terminal device. In some other embodiments, the terminal device can provide a light-on command to the user, and the user can trigger it on demand using a trigger such as a key in the graphical user interface.

[0149] For the light strip image obtained in the lit state, since the light strip is in the lit state, the light strip area in the light strip image is relatively bright and easier to identify. In this case, as disclosed in the various embodiments above, the light strip image can be detected using edge detection or image segmentation technology to determine the image content area of ​​the light strip in the light strip image, that is, the styling area corresponding to its shape. The styling area can be represented as an image mask. In the image mask, in the corresponding light strip image, the pixels covered by the image of the light strip are represented as 1, and the pixels not covered by the image of the light strip are represented as 0. Thus, the area composed of a set of pixels with a value of 1 is the styling area. Since the light strip is linear as a whole, the styling area must also be linear, which actually defines the styling path of the entire light strip.

[0150] In addition, in order to facilitate the centralized identification of the lamp positions, all pixels in the modeling area can be further extracted from the light strip image based on the modeling area, such as the image mask, to form the light strip body image. This is equivalent to removing all background images other than the luminous light strip on the basis of the light strip image to obtain a pure light strip body image.

[0151] Step S112, identifying prominent features of the lights in the image of the light strip body, and determining the position of each prominent feature of the lights as the corresponding light position;

[0152] When the light strip is emitting light, if the light from each of its light-emitting units is not softened, the position corresponding to each light-emitting unit in the image of the light strip body should be the highest light position, constituting a prominent feature of the lighting. Even if the light from each light-emitting unit in the light strip is softened by the light path structure of the light strip, the position corresponding to each light-emitting unit can still be determined by using the prominent feature of the lighting represented by the light-emitting characteristic information set in the lighting instruction. This shows that as long as the prominent feature of the lighting that needs to be identified is determined according to the actual situation and each prominent feature of the lighting is identified in the light strip, the position of each prominent feature of the lighting can be set as the corresponding light-emitting unit, and each light-emitting unit can be regarded as a corresponding light position.

[0153] Taking the alternating red, green and blue luminous characteristics as an example, the color values ​​of red, green and blue are obviously different. Therefore, the standard values ​​of red, green and blue are directly used as a reference to identify the positions of the maximum values ​​of the red, green and blue segments on the shape path of the luminous light strip in the image of the light strip body as the significant features of the lighting. These positions are the locations of the light-emitting units, which constitute the corresponding light positions.

[0154] In other examples, even if the light strip is monochromatic, the highlight areas in each area in the shaping path can be detected. Since the highlight areas are usually the areas where the light-emitting units are located, the highlight areas can also be used as prominent features of the lighting and set as corresponding light positions.

[0155] Step S113, converting the modeling path into a vector curve, and adding a visual marker corresponding to each lamp position at a corresponding position of the vector curve corresponding to the position of each lamp position on the modeling path;

[0156] When the light strip needs to be represented in the interface canvas, since the shape path of the light strip has been determined in advance, it is represented by the shape area. Accordingly, the shape path can be converted into a vector curve according to the shape area.

[0157] Specifically, the shaping area of ​​the light strip actually defines a strip path of substantially equal width and length. Based on this, along the longitudinal direction of the shaping area, the intermediate pixel points on both sides of the path in the width direction of the shaping area are obtained, and the lines connecting these intermediate pixel points can be used to define and describe the shaping path. This shaping path can further be smoothed to form a curve with a natural transition. In order to facilitate computer processing, the curve can also be converted into a vector curve and described by an approximate curve function. Similarly, any long side in the shaping area can be used to define the shaping path to obtain the corresponding vector curve. Those skilled in the art can refer to the above-disclosed method for flexible implementation, and will not elaborate on it.

[0158] The individual light positions detected based on the light strip image or the image of the light strip itself are of course also distributed along its shaping path. In this case, the vector curve corresponding to the shaping path can also be used as a basis, and the detected light positions are marked at the corresponding positions on the vector curve corresponding to each light position in the shaping path. For easy identification, each light position can be represented as a dot, short line segment, or any other visual form to form a visual mark that can be displayed on the interface canvas along with the vector curve.

[0159] Step S114 , drawing the vector curve and the visual marker into an interface canvas to form a light strip model, and then rendering and displaying the model.

[0160] After completing the construction of the graphic description data of the light strip model from the vector curves and the visual signs of each light position, the image rendering interface of the system's graphics open library can be called. Based on the graphic description data, the GPU is used for image drawing, and the vector curves and visual signs are drawn into the interface canvas for rendering and display.

[0161] According to the above embodiments, the user terminal can generate a light strip model corresponding to the light strip in the interface canvas based on the light strip image captured, so that the user can intuitively graffiti the light strip model and confirm the relative position of the starting point in the interface canvas, providing users with convenient human-computer interaction and improving the efficiency of users in editing lighting effects.

[0162] Based on any embodiment of the method of the present application, referring to FIG. 9 to FIG. 11 and FIG. 9 , in response to a light position graffiti event, determining the light position in the light strip model that has been graffitied as a graffiti light position, and generating corresponding graffiti light position information includes:

[0163] Step S121, obtaining the graffiti light color edited by the user, and generating a graffiti brush corresponding to the graffiti light color;

[0164] The graffiti light color is customized, edited, and selected by the user through the controls provided by the graphical user interface of the user terminal. In the graphical user interface shown in FIG9 , the user can edit and select the corresponding graffiti light color through the graffiti light color selection control 303. When the user selects the corresponding graffiti light color through the graffiti light color selection control 303, the user terminal will generate a graffiti brush corresponding to the graffiti light color. As shown in FIG9 , if the graffiti light color selected in the graffiti light color selection control 303 is red, the user terminal will generate a red graffiti brush.

[0165] Step S122, responding to the graffiti drawing event, determining a graffiti path of the graffiti brush in the interface canvas;

[0166] After the user terminal generates a graffiti brush corresponding to the graffiti light color customized by the user, the user can use the graffiti brush to perform graffiti operations on the interface canvas by clicking and touching or clicking and dragging on the interface canvas. The location where the graffiti brush is clicked, touched or clicked and dragged on the interface canvas will serve as the graffiti path of the graffiti brush in the interface brush, and the graffiti path passing through the light strip model in the interface canvas will be displayed.

[0167] Step S123, taking one or more lamp positions that the graffiti path passes through in the light strip model as graffiti lamp positions, and changing the lamp position color of each graffiti lamp position to the graffiti light color;

[0168] Please refer to Figure 9 and Figure 4. The user selects the red crow light color through the graffiti light color selection control 303 shown in Figure 9, and uses the red graffiti brush to perform graffiti operations in the interface canvas 301. After the graffiti path of the graffiti brush passes through the light strip area 304 in the light strip model 302, the light strip model 302 shown in Figure 9 will change to the light strip model 401 shown in Figure 4. The light strip area 402 of the light strip model 401 corresponds to the light strip area 304 of the light strip model 302. The color of each lamp position in the light strip area 402 is graffitied red by the red graffiti brush. These lamp positions will serve as graffiti lamp positions. In the luminous light strip corresponding to the light strip model 401, the lamp beads corresponding to these lamp positions will emit light effects of red light color.

[0169] Step S124: Generate graffiti light position information including each of the graffiti light positions and the graffiti light colors.

[0170] The user terminal monitors the graffiti brush's graffiti path in the interface canvas in real time, and after determining one or more light positions that the graffiti path passes through in the light strip model as graffiti light positions, it will generate corresponding graffiti light position information to record these graffiti light positions and their modified graffiti light colors.

[0171] According to the above embodiments, the user can doodle in the interface canvas of the light strip model with a light strip, so as to determine the lamp beads that need to emit light effects in the light strip by graffiti, and the light color of the light effects emitted by the lamp beads. The intuitive and convenient human-computer interaction method can not only improve the user's efficiency in determining the light effect lamp beads, but the graffiti method can also increase the fun of editing and enhance the user's motivation to design light effects.

[0172] Based on any embodiment of the method of the present application, please refer to Figures 9 and 17. In response to a starting point positioning event, the position of the starting point in the interface canvas is determined as the relative position of the starting point, and corresponding lighting effect lighting information is generated. The starting point is used to locate the special effect starting point of the lighting effect lighting coverage area. The lighting effect lighting coverage area is used to light up the lighting effect of the graffiti light position, including:

[0173] Step S131, adjusting the angle of the lighting effect coverage area according to the lighting effect coverage angle edited by the user;

[0174] Users can customize the edited area angle of the lighting effect coverage area to modify the number of lamp beads that light up simultaneously in the lighting effect coverage area to emit the marquee lighting effect. The setting range of the lighting effect lighting coverage angle is generally 1 to 360 degrees. When the user completes editing the lighting effect lighting coverage angle, the user terminal will adjust the area angle of the lighting effect lighting coverage area according to the lighting effect lighting coverage angle. For example, when the lighting effect lighting coverage angle is 45 degrees, the area angle of the lighting effect lighting coverage area will be adjusted to 45 degrees accordingly.

[0175] Step S132, adjusting the rotation speed of the lighting effect illuminated coverage area when rotating according to the rotation speed edited by the user;

[0176] Users can customize and edit the rotation speed of the lighting effect coverage area when it rotates around the special effect starting point. Users can adjust the rotation speed of the lighting effect lighting coverage area by editing the corresponding rotation speed, and the rotation speed can be edited in sections. For example, the rotation speed settings for the first 180 degrees and the last 180 degrees of the rotation of the lighting effect lighting coverage area can be set separately.

[0177] In addition, users can also customize the rotation direction of the lighting effect coverage area when it rotates around the special effect starting point. Users can generally choose one of the clockwise and counterclockwise directions. The selected direction will be used as the rotation direction of the lighting effect coverage area when it rotates around the special effect starting point.

[0178] Step S133, responding to the starting point drag event, determining the position of the starting point being dragged in the interface canvas as the relative position of the starting point;

[0179] Please refer to Figure 9. As shown in Figure 9, the starting point 305 shown in the interface canvas shown in Figure 9 can be dragged by the user at will to modify the position of the starting point 305 shown in the interface canvas shown, and then modify the relative position of the special effect starting point corresponding to the starting point 305 shown relative to the starting point of the luminous light strip.

[0180] Step S134 , generating lighting effect lighting information including the area angle of the lighting effect lighting coverage area, the rotation speed, and the relative position of the starting point.

[0181] By generating lighting effect lighting information, the area angle, rotation speed and relative position of the starting point adjusted according to the user's custom editing operation are recorded, so that the lighting effect lighting information can be pushed to the light-emitting device later, and the light-emitting device is driven to determine the position of the special effect starting point relative to the light strip according to the lighting effect lighting information, determine the area angle of the lighting effect lighting coverage area, and control the speed of the lighting effect lighting coverage area when it rotates around the special effect starting point.

[0182] According to the above embodiments, users can customize and edit the relevant information of the lighting effect coverage area, including the area angle and rotation speed of the lighting effect coverage area, and the relative position of the special effect starting point around which the lighting effect coverage area rotates, thereby improving the degree of customization of the rotating marathon lighting effect, allowing users to customize and adjust the rotating marathon lighting effect to meet their own personal needs.

[0183] Based on any embodiment of the method of the present application, referring to FIG. 18 , pushing the lighting effect configuration to the light-emitting device of the light strip includes:

[0184] Step S141: receiving a lighting effect configuration pushed by a user terminal, and obtaining graffiti light position information and lighting effect lighting information of the lighting effect configuration;

[0185] After the light-emitting device receives the lighting effect configuration upgraded by the user terminal, the controller of the light-emitting device will obtain the graffiti light position information and lighting effect lighting information contained in the lighting effect configuration.

[0186] Step S142, obtaining one or more graffiti light positions and graffiti light colors included in the graffiti light position information, determining target lamp beads corresponding to each of the graffiti light positions in the light strip, and generating lighting effect light colors corresponding to each of the target lamp beads according to the graffiti light colors;

[0187] After the controller obtains the graffiti light position information in the lighting effect configuration, it will obtain the graffiti light position and its graffiti light color contained in the graffiti light position information. Then, according to the sorting position of the graffiti light position in the light strip model, it will correspond to the lamp bead corresponding to the sorting position in the luminous light strip, and use the lamp bead as the target lamp bead corresponding to the graffiti light position.

[0188] After determining the target lamp bead corresponding to the graffiti light position, the lighting effect light color acting on the target lamp bead is generated according to the graffiti light color corresponding to the graffiti light position. For example, if the graffiti corresponding to the graffiti light position is red, the lighting effect light color of the target lamp bead corresponding to the graffiti light position is also red.

[0189] Step S143, obtaining the relative position of the starting point, the regional angle, and the rotation speed of the lighting effect lighting information, determining the special effect starting point relative to the light strip based on the relative position of the starting point, controlling the lighting effect lighting coverage area to be the regional angle, and rotating around the special effect starting point at the rotation speed;

[0190] When determining the target lamp beads corresponding to the graffiti light positions in the light strip and generating the corresponding lighting effect light colors, the controller will also determine the special effect starting point and the lighting effect lighting coverage area based on the lighting effect lighting information to control the lighting effect lighting coverage area to rotate around the special effect starting point.

[0191] After the controller obtains the relative position of the starting point of the lighting effect information, it will use a preset positioning method to determine the starting point of the special effect relative to the light strip. The specific methods can be selected as follows:

[0192] In one embodiment, the controller uses a camera unit connected to it to shoot the luminous light strip, obtains an image with the luminous light strip, and then identifies the planar position of the luminous light strip in the image, and constructs a corresponding plane coordinate system in the image. The plane coordinate system corresponds to the plane coordinate system of the starting point in the interface canvas. For example, the origin of the plane coordinate system of the starting point in the interface canvas is in the lower left corner of the interface canvas, and the distance between the origin and the light strip model is determined and pushed to the controller. The controller will then generate a corresponding origin in the image based on the distance, construct a plane coordinate system with the origin, and then determine the corresponding position in the plane coordinate system of the image based on the plane coordinate represented by the relative position of the starting point, and generate a special effect starting point at this position.

[0193] In another embodiment, the plane coordinate system used by the user terminal to locate the relative position of the starting point corresponding to the starting point in the interface canvas is pushed to the user terminal in advance by the light-emitting device. After the relative position of the starting point of the light-emitting device, the plane coordinate system pushed to the user terminal in advance is used to determine the plane coordinate represented by the relative position of the starting point, and the corresponding position in the plane coordinate system, and then the special effect starting point is generated at this position.

[0194] After the controller determines the corresponding special effect starting point based on the relative position of the starting point of the lighting effect lighting information, it will generate a lighting effect lighting coverage area with the regional angle angle at the special effect starting point based on the regional angle angle relative to the starting point, and control the lighting effect lighting coverage area to rotate around the special effect starting point based on the rotation speed of the lighting effect lighting information.

[0195] Step S144, monitoring the rotation process of the lighting effect lighting coverage area, determining the target lamp beads that the lighting effect lighting coverage area in the light strip currently rotates through, and controlling these target lamp beads to emit their corresponding lighting effect light colors.

[0196] The controller monitors the rotation of the lighting effect coverage area around the special effect starting point in real time. When it detects that the lighting effect coverage area passes through the target lamp beads corresponding to the running position in the luminous light strip, it will control these target lamp beads to emit their corresponding lighting effect light colors.

[0197] According to the above embodiments, the light-emitting device determines the lamp beads and lighting effect light colors corresponding to the graffiti lamp positions determined by the graffiti according to the lighting effect configuration generated by the user graffiti and dragging the starting point through the interface canvas, locates the special effect starting point corresponding to the starting point located by the user, generates a lighting effect lighting coverage area corresponding to the area angle edited by the user, rotates around the special effect starting point, and then controls the lamp beads in the light-emitting lamp beads that are rotated through the lighting effect lighting coverage area to emit lighting effect light colors, so as to form a rotating marquee light effect corresponding to the user's custom editing, so that the emitted rotating marquee light effect can meet the personalized needs of the user when using the light-emitting device, and enhance the user experience of using the light-emitting device.

[0198] Based on any embodiment of the method of the present application, referring to FIG. 19 and FIG. 20 , pushing the lighting effect configuration to the light-emitting device of the light strip includes:

[0199] Step S141', receiving multiple lighting effect configurations and lighting effect levels pushed by the user terminal, and obtaining graffiti light position information and lighting effect lighting information of each lighting effect configuration;

[0200] Users can design a variety of lighting effect configurations and set the lighting effect level of each lighting effect configuration to control the lighting priority of different lighting effect configurations. That is, the lighting effect lighting coverage area of ​​the lighting effect configuration with a higher lighting effect level has a higher priority for lighting the lamp beads corresponding to the running position in the luminous light strip than the lighting effect lighting coverage area of ​​the lighting effect configuration with a lower lighting effect level. After the user terminal generates multiple lighting effect configurations and the lighting effect level set by the user for each lighting effect configuration, each lighting effect configuration and its lighting effect level are pushed to the light-emitting device.

[0201] After the light-emitting device receives multiple lighting effect configurations and lighting effect levels, the controller of the light-emitting device will obtain the graffiti light position information and lighting effect lighting information of each lighting effect configuration to determine the target lamp beads corresponding to each lighting effect configuration, so as to generate the lighting effect lighting coverage area of ​​each lighting effect configuration for rotational movement.

[0202] Step S142', determining the target lamp bead corresponding to each graffiti lamp position in the graffiti lamp position information in the light strip, and generating a lighting effect light color corresponding to the graffiti light color in the graffiti lamp position information for each target lamp bead;

[0203] After the controller obtains the graffiti light position information of multiple lighting effect configurations, it will determine the target lamp bead corresponding to each graffiti light position in the luminous light strip in the graffiti light position information, and generate a lighting effect light color corresponding to the graffiti light color in the graffiti light position information for each target lamp bead. Generally, the same lamp bead in the luminous lamp bead will be determined as a target lamp bead by multiple graffiti light positions. At this time, the target lamp bead will have multiple lighting effect light colors.

[0204] Step S143', obtaining the relative position of the starting point of each lighting effect lighting information, determining the relative position of each starting point relative to the special effect starting point of the light strip, controlling the lighting effect lighting coverage area corresponding to each lighting effect lighting information, and executing the lighting effect based on the special effect starting point;

[0205] Taking the rotating marquee lighting effect as an example, after the controller obtains the lighting effect lighting information of each lighting effect configuration, it will determine the special effect starting point corresponding to each lighting effect configuration based on the relative position of the starting point of each lighting effect lighting information, and then generate the lighting effect lighting coverage area corresponding to each special effect starting point based on the regional angle of each lighting effect lighting information, and then control the lighting coverage area of ​​each horse to rotate around its corresponding special effect starting point according to the rotation speed of each lighting effect lighting information.

[0206] Step S144', monitoring the special effect execution process of each lighting effect coverage area, determining the target lamp beads in the light strip currently passed by the lighting effect coverage area of ​​the higher lighting effect level, and controlling these target lamp beads to emit their corresponding lighting effect light colors.

[0207] Taking the rotating marquee lighting effect as an example, please refer to Figure 19. As shown in Figure 19, the lighting effect configuration of the lighting effect lighting coverage area 1302, and the graffiti light position information of each graffiti light position acts on all the lamp beads in the light strip 1301, and the corresponding lighting effect light color is red. The lighting effect configuration of the lighting effect lighting coverage area 1303, and the graffiti light position information of each graffiti light position also acts on all the lamp beads in the light strip 1301, and the corresponding lighting effect light color is blue, and the lighting effect lighting coverage area 1302 corresponding The lighting effect level is higher than the shown lighting effect lighting coverage area 1303. At this time, the rotation angle of the shown lighting effect lighting coverage area 1302 is the same as that of the shown lighting effect lighting coverage area 1303, but the lamp beads in the luminous light strip 1301 that are covered by the shown lighting effect lighting coverage area 1302 and the shown lighting effect lighting coverage area 1303 only emit red lighting effect light color, while the luminous light strip 1301 is covered by the shown lighting effect lighting coverage area 1303 and the shown lighting effect lighting coverage area 1302 covers the lamp beads, emitting blue lighting effect light color.

[0208] According to the above embodiments, users can design multiple groups of different lighting effect configurations and set the lighting effect level of each lighting effect configuration to control the light-emitting device to produce different lighting effects by combining various lighting effect configurations, so that users can design different lighting effect configurations to enrich the lighting effects of the light strips and meet the personalized needs of users.

[0209] Based on any of the embodiments of the present application, please refer to Figure 21. Another embodiment of the present application further provides a computer device that can function as a controller in an ambient light device. Figure 21 shows a schematic diagram of the internal structure of the computer device. The computer device includes a processor, a computer-readable storage medium, a memory, and a network interface, connected via a system bus. The computer-readable storage medium of the computer device stores an operating system, a database, and a computer program encapsulating computer-readable instructions. The database may store a sequence of control information. When executed by the processor, the computer-readable instructions enable the processor to implement a method for projecting and playing light effects. The processor of the computer device provides computing and control capabilities, supporting the operation of the entire computer device. The memory of the computer device may store computer-readable instructions. When executed by the processor, the computer-readable instructions enable the processor to perform the method for projecting and playing light effects of the present application. The network interface of the computer device is used to connect and communicate with a terminal. Those skilled in the art will understand that the structure shown in Figure 21 is merely a block diagram of a portion of the structure related to the present invention and does not constitute a limitation on the computer device to which the present invention is applied. Specific computer devices may include more or fewer components than shown in the figure, combine certain components, or have a different component arrangement.

[0210] In this embodiment, the processor is used to execute the specific functions of each of the aforementioned modules and their submodules, and the memory stores the program code and various data required to execute the aforementioned modules and submodules. The network interface is used to transmit data between user terminals and servers. The memory in this embodiment stores the program code and data required to execute all modules and submodules in the lighting effect projection playback device of this application. The server can call upon the server's program code and data to execute the functions of all submodules.

[0211] The present application also provides a non-volatile computer-readable storage medium storing computer-readable instructions, which, when executed by one or more processors, enables the one or more processors to perform the steps of the method described in any embodiment of the present application.

[0212] The present application also provides a computer program product, comprising a computer program / instruction, which implements the steps of the method described in any embodiment of the present application when executed by one or more processors.

[0213] In summary, since the plane areas occupied by the determined display control windows are basically similar, when the target lighting effect is played accordingly, the differences in light unit density in different areas caused by the bending of the light strip can be effectively balanced, which can effectively avoid unnecessary distortion of the played lighting effect relative to the expected effect. The lighting effect presentation is more accurate, which can enhance the user's product experience and make this type of atmosphere lighting equipment easier to promote and popularize. In addition, the marquee lighting effect editing function provided by this application not only provides users with convenient operation and intuitive and clear human-computer interaction logic to improve the user's lighting effect editing efficiency, but also allows users to highly customize the lighting effects that can be produced by the lighting equipment, so that users can customize and adjust the lighting effects that meet their own individual needs to meet the personalized needs of users when using lighting equipment.

Claims

1. A lighting effect projection playback method, characterized in that: include: Obtaining a position information stream corresponding to a light-emitting unit in a light-emitting light strip, wherein the position information stream includes position distribution information corresponding to each light-emitting unit in the light-emitting light strip; According to the position distribution information of each light-emitting unit, unfolding the light strip projection image in a preset coordinate system to reconstruct the pattern data of the light strip and each light-emitting unit therein in the light strip projection image; Using a regional tolerance window to divide the light strip in the light strip projection image into a plurality of light unit sets, and correspondingly forming a plurality of display control windows; Each display control window is used as a batch control unit to generate lighting control data for a lighting unit set of each display control window corresponding to a target lighting effect, and the lighting strip is controlled to play the target lighting effect according to the lighting control data.

2. The lighting effect projection playback method according to claim 1, characterized in that: The light strip in the light strip projection image is divided into a plurality of light unit sets using a regional tolerance window, and a plurality of display control windows are correspondingly formed, including: Obtaining the size specifications of the regional tolerance window, starting from one end of the light strip in the light strip projection image, and sliding the regional tolerance window along the light strip toward the other end; During the movement of the area tolerance window, when the number of light-emitting units falling into the area tolerance window and not included in other display control windows is determined and reaches the maximum number that can be covered by the area tolerance window, it is considered that the display control window is detected; When a display control window is detected, mapping relationship data between the display control window and a light emitting unit set composed of its corresponding light emitting units is established; After the construction of the mapping relationship data of a display control window is completed, the area tolerance window is continuously slid to perform the above iterations until the last light-emitting unit is included in the corresponding display control window.

3. The lighting effect projection playback method according to claim 2, characterized in that: Get the size specifications of the area tolerance window, including: Counting the total number of light-emitting units in the projection image of the light strip, and averaging the total number of light-emitting units according to the number of partitions to obtain the average number of light-emitting units; Partitioning all the light-emitting units in the light strip projection image according to the average number of light-emitting units, and determining a coverage window corresponding to each partition; Calculate the average horizontal size and average vertical size of the coverage window of each partition according to the horizontal size and vertical size respectively; The average horizontal size and the average vertical size are set as size specifications of the area tolerance window.

4. The lighting effect projection playback method according to claim 1, wherein: The light strip in the light strip projection image is divided into a plurality of light unit sets using a regional tolerance window, and a plurality of display control windows are correspondingly formed, including: Obtaining a coordinate reference point and a preset incremental size of the coordinate system, searching for a light-emitting unit closest to the coordinate reference point based on the light strip projection image, and setting an area with the coordinate reference point as the center and the distance from the coordinate reference point to the light-emitting unit as the radius as a vacant area; The incremental size is superimposed on the radius as a new radius, and a circular area between the two radii is determined, and the circular area is used as the area tolerance window; When there are light-emitting units in the area tolerance window, the area tolerance window is used as a display control window, all the light-emitting units in the area tolerance window are used as a light-emitting unit set corresponding to the display control window, and mapping relationship data between the display control window and the light-emitting unit set is established. The previous step is iterated until the corresponding area tolerance window no longer contains light-emitting units.

5. The lighting effect projection playback method according to any one of claims 1 to 4, characterized in that: Taking each display control window as a batch control unit, generate lighting control data for the lighting unit set of each display control window corresponding to the target lighting effect, including: Calling lighting effect description data of a target lighting effect, wherein the lighting effect description data includes motion information and lighting effect color data; determining a play time slot of each of the display control windows according to the motion information; Determine color data of each display control window according to the lighting effect color data; According to the play time slot and color data of each display control window, the light control data corresponding to the display control window is set as the light control data of each light unit in the light unit set of the display control window.

6. The lighting effect projection playback method according to claim 5, characterized in that: Controlling the light strip to play the target light effect according to the light control data includes: In a playback time slot corresponding to each display control window, transmitting the light control data corresponding to the display control window as the light control data of each light unit corresponding to the display control window to the light strip; Each light-emitting unit in the light-emitting light strip corresponding to the display control window plays a corresponding light effect according to the light-emitting control data.

7. A method for editing a lighting effect luminous area, characterized in that: include: Determine the shape path of the light strip and multiple light positions in the shape path based on the light strip image, so as to construct a corresponding light strip model and display it on the interface canvas; In response to a light position graffiti event, determining the light position in the light strip model that has been graffitied as a graffiti light position, and generating corresponding graffiti light position information; In response to a starting point positioning event, determining the position of the starting point in the interface canvas as a relative position of the starting point, and generating corresponding lighting effect lighting information, wherein the starting point is used to locate a special effect starting point of a lighting effect lighting coverage area, and the lighting effect lighting coverage area is used to light up the lighting effect of the graffiti light position; In response to the lighting effect application event, a lighting effect configuration having the graffiti light position information and the lighting effect lighting information is generated, and the lighting effect configuration is pushed to the lighting device of the light strip.

8. The method for editing a lighting effect luminous area according to claim 7, wherein: Determine the shape path of the light strip and multiple light positions in the shape path based on the light strip image to build a corresponding light strip model and display it on the interface canvas, including: Acquire an image of the light strip generated by a camera unit when the light strip is in an illuminated state, determine a shape area of ​​the light strip in the light strip image to define a shape path of the light strip, and extract an image of the light strip body within the shape area; Identify prominent features of the light in the image of the light strip body, and determine the position of each prominent feature of the light as the corresponding light position; Converting the modeling path into a vector curve, and adding a visual marker corresponding to each lamp position at a corresponding position of the vector curve corresponding to the position of each lamp position on the modeling path; The vector curve and the visual mark are drawn into the interface canvas to form a light strip model and then rendered for display.

9. The method for editing a lighting effect luminous area according to claim 8, wherein: In response to a light position graffiti event, determining the light position in the light strip model that has been graffitied as a graffiti light position, and generating corresponding graffiti light position information, including: Obtain the graffiti light color edited by the user and generate a graffiti brush corresponding to the graffiti light color; In response to a graffiti drawing event, determining a graffiti path of the graffiti brush in the interface canvas; One or more lamp positions that the graffiti path passes through in the light strip model are used as graffiti lamp positions, and the lamp position color of each graffiti lamp position is modified to the graffiti light color; Graffiti light position information including each of the graffiti light positions and the graffiti light colors is generated.

10. The method for editing a lighting effect luminous area according to claim 8, wherein: In response to a starting point positioning event, determining the position of the starting point in the interface canvas as the relative position of the starting point, and generating corresponding lighting effect lighting information, wherein the starting point is used to locate a special effect starting point of a lighting effect lighting coverage area, and the lighting effect lighting coverage area is used to light up the lighting effect of the graffiti light position, including: Adjust the angle of the lighting effect coverage area according to the lighting effect coverage angle edited by the user; Adjust the rotation speed of the lighting effect illuminated coverage area according to the rotation speed edited by the user; In response to the starting point drag event, determine the position of the starting point being dragged in the interface canvas as the relative position of the starting point; Lighting effect lighting information including the area angle of the lighting effect lighting coverage area, the rotation speed, and the relative position of the starting point is generated.

11. The method for editing a lighting effect luminous area according to claim 8, wherein: Pushing the lighting effect configuration to the light-emitting device of the light strip includes: Receive the lighting effect configuration pushed by the user terminal, and obtain the graffiti light position information and lighting effect lighting information of the lighting effect configuration; Obtaining one or more graffiti light positions and graffiti light colors included in the graffiti light position information, determining target lamp beads corresponding to each of the graffiti light positions in the light strip, and generating lighting effect light colors corresponding to each of the target lamp beads according to the graffiti light colors; Obtaining the relative position of the starting point, the regional angle, and the rotation speed of the lighting effect lighting information, determining the special effect starting point relative to the light strip based on the relative position of the starting point, controlling the lighting effect lighting coverage area to be the regional angle, and rotating around the special effect starting point at the rotation speed; The rotation process of the lighting effect lighting coverage area is monitored to determine the target lamp beads that the lighting effect lighting coverage area in the light strip currently rotates through, and control these target lamp beads to emit their corresponding lighting effect light colors.

12. The method for editing a lighting effect luminous area according to claim 8, wherein: Pushing the lighting effect configuration to the light-emitting device of the light strip includes: Receive multiple lighting effect configurations and lighting effect levels pushed by the user terminal, and obtain graffiti light position information and lighting effect lighting information of each lighting effect configuration; Determine the target lamp bead corresponding to each graffiti lamp position in the graffiti lamp position information in the light strip, and generate a lighting effect light color corresponding to the graffiti light color in the graffiti lamp position information for each target lamp bead; Obtaining the relative position of the starting point of each lighting effect lighting information, determining the relative position of each starting point relative to the special effect starting point of the light strip, controlling the lighting effect lighting coverage area corresponding to each lighting effect lighting information, and executing the lighting effect based on the special effect starting point; Monitor the special effect execution process of each lighting effect coverage area, determine the target lamp beads in the light strip that are currently passed by the lighting effect coverage area of ​​the higher lighting effect level, and control these target lamp beads to emit their corresponding lighting effect light colors.

13. An atmosphere lighting device, characterized in that: The method comprises a controller and at least one light strip, wherein the controller is used to execute the steps of the method according to any one of claims 1 to 12.

14. A non-volatile computer-readable storage medium, characterized in that: It stores a computer program implemented according to the method described in any one of claims 1 to 12 in the form of computer-readable instructions, and when the computer program is called and executed by a computer, the steps included in the corresponding method are executed.

15. A computer program product, characterized in that The method comprises a computer program / instruction, which, when executed by a processor, performs the steps of the method according to any one of claims 1 to 12.

Citation Information

Patent Citations

  • Method for controlling display of lamp strip, lamp strip controller and readable storage medium

    CN114916106A

  • Multi-lamp-strip display control method and device based on wireless connection and storage medium

    CN117279141A

  • Atmosphere lamp equipment, light-emitting partition layout generation method and device and computer equipment

    CN117528873A

  • Atmosphere lamp equipment, lamp effect projection playing method and device, medium and product

    CN117794021A

  • Light-emitting equipment, lamp effect light-emitting area editing method and device, medium and product

    CN117794029A

Cited By

  • Equipment control method and device, electronic equipment and storage medium

    CN121711839A

  • A control method and device of an atmosphere lamp and a vehicle

    CN122458284A