Light chain physical layout generation method and device as well as equipment and product

Through the physical layout generation method of light chain based on time-domain color rendering sequence, the problem of insufficient accuracy and low efficiency of light chain identification and control in traditional technology is solved, efficient and accurate lamp bead identification and layout construction are achieved, and user experience is improved. Experience and system adaptability, supporting complex and dynamic lighting effects.

CN118470284BActive Publication Date: 2024-10-25SHENZHEN INTELLIROCKS TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410937044.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-10-25
Estimated Expiration
2044-07-12

AI Technical Summary

Technical Problem

Traditional smart lighting technology has problems such as insufficient accuracy, low efficiency, poor adaptability and poor user experience in the identification and control of the physical layout of light chains. It is especially difficult to achieve fast and accurate identification and dynamic updates in large-scale or complex layouts.

Method used

Through time-domain color sequence recognition based on multiple on-site images, the physical layout of the lamp chain is constructed, and the image analysis module, layout creation module, confidence recognition module and inference recognition module are used to determine the serial position identification and spatial position information of the lamp beads. Achieve fast and accurate lamp bead identification and layout construction.

Benefits of technology

It improves the accuracy and efficiency of lamp bead identification, enhances the adaptability and robustness of the system, simplifies user operations, realizes efficient and intuitive lighting layout generation, adapts to lamp chains of different lengths and shapes, and supports personalization and Dynamic lighting effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118470284B_ABST
    Figure CN118470284B_ABST
Patent Text Reader

Abstract

The present application relates to a method and device for generating a physical layout of a light chain, as well as equipment and products. The method includes: based on multiple on-site images of the light chain, identifying the time-domain color display sequence of each lamp bead and its spatial position information in the layout space; creating a physical layout of the light chain to describe the serial position identifiers of each lamp bead in the light chain and its corresponding spatial position information in the layout space; for lamp beads whose time-domain color display sequence indicates a color change, determining its unique corresponding serial position identifier according to the time-domain color display sequence of the lamp bead, and correspondingly associating the spatial position information of the lamp bead in the physical layout of the light chain; determining the serial position identifier and its spatial position information corresponding to the lamp bead to be identified according to the serial position relationship and spatial position relationship between the lamp bead to be identified and the identified lamp bead. The present application realizes fast, accurate, and user-friendly generation of the physical layout of the light chain.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of lighting control, and in particular to a method and device for generating a physical layout of a light chain, as well as equipment and products. Background Art

[0002] With the continuous advancement of intelligent lighting technology, modern light chain systems have broken through the limitations of traditional lighting and are rapidly developing in the direction of personalization, dynamism and intelligence. Users can now freely arrange light chains according to their preferences and needs to create a variety of unique lighting effects.

[0003] In order to accurately control these light chains that are freely arranged by users, we try to provide a physical layout of the light chain that matches the shape of the light chain. The physical layout of the light chain describes the serial position of each lamp bead in the serial direction of the light chain, and describes the spatial position of each lamp bead in the physical space. In this way, users can edit the lighting effect by aligning the spatial position of the lamp bead, and then use the mapping relationship of the physical layout of the light chain to accurately control the corresponding lamp bead to emit light. It can be seen that the physical layout of the light chain is the key to achieving complex lighting effects and dynamic displays.

[0004] There are some methods in traditional technology that can intelligently analyze and generate the physical layout of light chains, but these technologies are often simple and crude. They often lack sufficient accuracy and intelligence and are difficult to meet users' needs for complex and dynamic lighting effects.

[0005] First, in order to accurately identify the individual beads of the light chain, traditional technology usually requires users to arrange and install them in a certain shape, and sometimes requires special configuration. The process is usually quite complicated and requires professionals to wire and edit. This not only increases the installation cost, but also limits the popularity of these systems among ordinary consumers.

[0006] Secondly, the number of lamp beads in a light chain is sometimes as many as hundreds or thousands, which is huge in scale, and their placement shapes are usually more varied. When dealing with large-scale or complex layouts of lamp beads, the recognition and control of traditional technologies are often unsatisfactory in terms of efficiency and accuracy. When there are a large number of lamp beads and the shape of the light chain is complex, it becomes a challenge to quickly and accurately identify each lamp bead to obtain the physical layout of the light chain, which directly affects the editing and real-time adjustment of lighting effects.

[0007] Furthermore, the inefficiency and immaturity of traditional technologies in lamp bead recognition naturally limits their adaptability. In scenes with dynamic changes or irregular layouts, traditional technologies with weak lamp bead recognition capabilities are difficult to adapt to the re-layout of the light chain and cannot quickly update the physical layout of the light chain, which limits the flexibility of the smart lighting system in terms of creative expression and application scope.

[0008] Finally, traditional technologies lack recognition accuracy and robustness when dealing with occlusion, dense arrangement or rapidly changing light patterns. This is particularly evident in scenes such as stage lighting design and holiday decorations, which require accurate recognition and control of each lamp bead even when vision is obstructed or ambient light is complex.

[0009] It can be seen that although traditional technology has made certain progress in the field of intelligent lighting, it still has significant shortcomings and room for improvement in achieving efficient, accurate and flexible lamp bead identification and layout control. Summary of the invention

[0010] The purpose of this application is to provide a method and device for generating a physical layout of a light chain, as well as equipment and products.

[0011] According to one aspect of the present application, a method for generating a physical layout of a light chain is provided, comprising:

[0012] Based on multiple on-site images of the light chain, identifying the time domain color sequence of each lamp bead in the light chain image and the spatial position information in the layout space constructed according to the on-site images;

[0013] Creating a physical layout of a light chain, which is used to describe the serial position identifiers of each lamp bead of the light chain in the light chain and the corresponding spatial position information in the layout space;

[0014] For a lamp bead whose color has changed according to the time domain color display sequence, determine its unique corresponding serial position identifier according to the time domain color display sequence of the lamp bead, and associate the spatial position information of the lamp bead in the physical layout of the light chain accordingly, so that the lamp bead becomes an identified lamp bead;

[0015] According to the serial position relationship and spatial position relationship between the lamp beads to be identified and the identified lamp beads in the physical layout of the light chain, in the physical layout of the light chain, the serial position identifier and spatial position information corresponding to the lamp bead to be identified are determined to make the lamp bead to be identified become the identified lamp bead.

[0016] According to another aspect of the present application, a device for generating a physical layout of a light chain is provided, comprising:

[0017] An image analysis module is configured to identify the time domain color sequence of each lamp bead in the lamp chain image based on a plurality of on-site images of the lamp chain, and the spatial position information in the layout space constructed according to the on-site images;

[0018] A layout creation module, configured to create a physical layout of a light chain, for describing the serial position identifiers of each lamp bead of the light chain in the light chain and the corresponding spatial position information thereof in the layout space;

[0019] A confidence identification module is configured to indicate a lamp bead with a color change according to the time domain color display sequence, determine its unique corresponding serial position identifier according to the time domain color display sequence of the lamp bead, and associate the spatial position information of the lamp bead in the physical layout of the lamp chain to make the lamp bead an identified lamp bead;

[0020] The inference recognition module is configured to determine the serial position identifier and spatial position information corresponding to the lamp bead to be identified in the physical layout of the light chain based on the serial position relationship and spatial position relationship between the lamp bead to be identified and the identified lamp bead in the physical layout of the light chain, so that the lamp bead to be identified becomes an identified lamp bead.

[0021] 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 used to call and run a computer program stored in the memory to execute the steps of the light chain physical layout generation method.

[0022] According to another aspect of the present application, a computer program product is provided, including a computer program or computer instructions, and when the computer program or computer instructions are called and executed by a central processing unit, the steps of the light chain physical layout generation method are executed.

[0023] Compared with the traditional technology, this application has many beneficial effects, including but not limited to:

[0024] First of all, this application uses advanced image recognition technology to achieve rapid and accurate construction of the light chain layout. Compared with the prior art, this application is no longer limited by the requirement that users must arrange the light chain in a specific shape, nor does it require complicated wiring and editing processes. By using the time-domain color display sequence with color changes extracted from the on-site image of the lamp beads as an identification feature, it is possible to quickly capture key information from the light chain freely arranged by the user, confidently determine the correlation between the serial position identification and spatial position information of a part of the lamp beads, and then intelligently infer the serial position identification and spatial position information of other lamp beads to be identified based on these identified relationships. This rapid identification capability greatly shortens the cumbersome configuration and debugging time in traditional methods, and provides users with an efficient and intuitive means of generating lighting layouts.

[0025] Secondly, the intelligent inference mechanism of the present application significantly improves the accuracy of lamp bead recognition. Even when there are a large number of lamp beads, the placement shapes are complex or they are partially blocked, the present application can accurately deduce the positions of other lamp beads to be identified by analyzing the serial position relationship and spatial position relationship between the lamp beads to be identified and the identified lamp beads. This method of inferring unknown information based on known information not only optimizes the data processing process, but also enhances the system's adaptability and robustness to complex environments, and effectively solves the shortcomings of traditional technologies in large-scale or complex layout recognition.

[0026] Furthermore, the present application is highly flexible and extensible. It does not rely on specific hardware configurations, can adapt to light chains of different lengths and shapes, and provides a wide range of application possibilities for various lighting scenarios. At the same time, the intelligent processing capabilities of the present application provide strong technical support for the realization of personalized and dynamic lighting effects, greatly enriching the expressiveness and creativity of the intelligent lighting system, and meeting the needs of users for complex and dynamic lighting effects.

[0027] Finally, this application greatly improves the user experience through a simplified identification and layout construction process. Users do not need to perform complex operations or learn professional programming skills. They can easily achieve personalized settings and control of light chain lighting by taking a single shot with the terminal. This user-friendly design concept makes smart lighting technology closer to life and easier to be accepted and used by consumers, promoting the popularization and development of smart lighting technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0029] Figure 1 This is a schematic diagram of the electrical structure of an exemplary ambient light device of the present application;

[0030] Figure 2 It is a flowchart of a method for generating a physical layout of a light chain in an embodiment of the present application;

[0031] Figure 3 It is a structural schematic diagram of a light chain physical layout generating device in an embodiment of the present application;

[0032] Figure 4 It is a schematic diagram of the structure of the computer device in the embodiment of the present application. DETAILED DESCRIPTION

[0033] The method for generating the physical layout of the light chain of the present application can be implemented as a computer program product, which is installed and run in a computer device. The computer device can be in various forms, including but not limited to various types of mobile terminals, desktop computers, and devices with other functions such as atmosphere light devices. The computer device carries a camera unit for obtaining a preview video so as to shoot the light chain to form a live image required for constructing the physical layout of the light chain. The mobile terminal mentioned here can be a personal device such as a smart phone or a tablet computer.

[0034] See also Figure 1As can be seen from the structural schematic diagram of an atmosphere light device provided in an embodiment of the present application, the atmosphere light device includes a controller 1, a light chain 2, and an image acquisition interface. The light chain 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 the lighting effect playback.

[0035] 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 required.

[0036] The power adapter is mainly used to convert AC power into DC power to power the entire atmosphere light device. The control chip can be implemented using various embedded chips, such as Bluetooth SoC (System on Chip), WiFi SoC, MCU (Micro Controller Unit), DSP (Digital Signal Processing) and other types of chips. The control chip usually includes a central processing unit and a memory, which are used to store and execute program instructions respectively to achieve the corresponding functions. The above types of control chips can have their own communication components, or they can be configured with additional communication components as needed.

[0037] The communication component can be used to communicate with external devices, for example, it can communicate with mobile terminals such as personal computers or various smart phones, so that after the user issues various configuration instructions through his mobile terminal, the control chip of the controller 1 can receive the configuration instructions through the communication component and complete the basic configuration to control the light chain. In addition, the controller 1 can also obtain the interface image of the terminal device or the real-time preview image captured by the camera unit 3 through the communication component.

[0038] The bus connector is mainly used to connect the power supply to the light chain 2 connected to the bus and provide the lighting effect playing instruction, so the corresponding pins of the power bus and the signal bus are provided. Therefore, when the light chain 2 needs to be connected to the controller 1, it can be connected to the bus connector through the corresponding connector of the light chain 2. The control panel usually provides one or more buttons for implementing the on-off control of the controller 1, selecting various preset lighting effect control modes, etc.

[0039] The display screen can be used to display various control information so as to cooperate with the buttons in the control panel to support the realization of human-computer interaction functions. In some embodiments, the control panel and the display screen can be integrated into the same touch display screen.

[0040] The light chain 2 in the atmosphere light device can be a light strip or a light string, which is flexible and can be molded into any shape of display layout. Each light chain 2 includes a plurality of lamp beads 20 connected in series, each lamp bead 20 serves as a light-emitting unit, and the number of lamp beads 20 in each light chain 2 can be the same and arranged at equal intervals. The lamp beads 20 in the same light chain 2 transmit the working current through the same set of cables connected to the bus, and the lamp beads 20 in the same light chain 2 can be connected in parallel in terms of electrical connection.

[0041] The image acquisition interface can be either a hardware interface or a software interface implemented in the controller 1. When it is a hardware interface, the image acquisition interface can be implemented as a camera unit 3, and the controller 1 loads a corresponding driver to drive the camera unit 3 to work. In one application, the camera unit 3 can be used to shoot a light chain to obtain a live image required to determine the physical layout of the light chain. The camera unit 3 can be used to capture the interface image required to generate lighting effect control data.

[0042] When the camera unit 3 is aimed at the target screen, such as the display desktop of the terminal device, or the camera unit 3 is aimed at the physical space environment, the image is captured at a certain frame rate, and the interface image can be captured. When it is a software interface, the image acquisition interface can be an image acquisition program implemented on the controller 1 side with the help of the graphics infrastructure technology provided by the operating system of the terminal device. The controller 1 is connected to the terminal device through various cables such as HDMI and Type-C cables, and the interface image of the terminal device can be continuously obtained with the support of the graphics infrastructure technology; of course, if the controller 1 and the terminal device pre-establish a wireless screen projection protocol, the controller 1 can also obtain the interface image of the terminal device through wireless communication. The graphics infrastructure technology of the operating system varies depending on the type of operating system. For example, the Windows operating system provides a corresponding technology, namely: Microsoft DirectX Graphics Infrastructure, referred to as DXGI, which can achieve this function.

[0043] It can be seen that when the image acquisition interface is responsible for collecting environmental reference images, the specific environment for collecting images can be flexibly set by the user. For example, when the image acquisition interface is a camera unit 3, the user can aim the camera unit 3 at the graphical user interface of the computer to shoot to collect the corresponding interface image as the target image for playing the lighting effect, so that the light chain 2 can generate corresponding lighting effect description data based on the interface image; the user can also aim the camera unit 3 at a physical space environment such as an outdoor environment, and record the real scene image as an environmental reference image, so that the light chain 2 can generate lighting effect description data corresponding to the real scene.

[0044] When the atmosphere lighting device wants to play the lighting effect according to the lighting effect description data, its controller 1 needs to provide the serial position identification and spatial position information of each light-emitting unit in its light chain 2 with the help of the physical layout of the light chain, and parse the corresponding lighting effect description data into the control data of each light-emitting unit according to the spatial position represented by the spatial position information of each light-emitting unit, and encapsulate the control data of each light-emitting unit into lighting effect control data according to the serial position order, and then send the lighting effect control data to the corresponding light chain, and the control chip of each light-emitting unit in the light chain extracts its own corresponding control data, and controls each light-emitting element therein to emit corresponding color light according to the control data, so that the whole lighting effect can be played under the synergistic effect of the color light emitted by each light-emitting unit.

[0045] It is not difficult to understand that the computer device of the present application is equipped with a camera unit and a graphical user interface, wherein the camera unit 3 can be used to record live images, and generate a physical layout of the light chain based on this. The physical layout of the light chain describes the mapping relationship between the serial positions of the lamp beads corresponding to each serial position identifier in the light chain and the spatial position information in the layout space corresponding to the physical space of the light chain. Based on this, the computer device can also generate a corresponding light chain model based on the spatial position information of each lamp bead in the physical layout of the light chain and display it in the graphical user interface, so that the user can edit the control data of each lamp bead in the light chain model to construct the corresponding lighting effect. Then, the computer device can convert the lamp beads in the light chain model into the corresponding relationship between their spatial position information and the serial position identifier according to the information provided by the physical layout of the light chain, and the light effect control data that can be parsed by the control chip of each lamp bead in the light chain, so as to control the light chain to play the corresponding lighting effect.

[0046] See also Figure 2 In some embodiments, the physical layout generation method of the light chain of the present application is described by taking the computer device used as a mobile terminal as an example for easy understanding. The method includes:

[0047] Step S5100: Based on a plurality of on-site images of the light chain, identifying the time domain color sequence of each lamp bead in the light chain image and the spatial position information in the layout space constructed according to the on-site images;

[0048] Live images refer to images of light chains captured directly from actual scenes. They contain images of light chains and are the basis for constructing the physical layout of light chains. These images are usually captured by the camera unit of the terminal device at specific time intervals to ensure that the color changes of the lamp beads at different time points can be recorded. Since the focus of this application is to identify lamp beads through time domain color sequence, the acquisition of these images mainly focuses on changes in the time dimension.

[0049] The correlation between multiple live images is that they jointly record the display status of the light chain in a continuous time series. These images are arranged in chronological order to form a time series data set, which makes it possible to track the color change process of each lamp bead. This continuous image capture method is crucial for analyzing the dynamic color rendering characteristics of the lamp beads and obtaining the corresponding time domain color rendering sequence, because it provides a complete record of the color changes of the lamp beads, which helps to identify and distinguish each lamp bead.

[0050] The method of obtaining these live images is relatively simple and direct. The terminal device only needs to capture images of the light chain at predetermined time intervals. This process can be achieved through automated scripts or preset camera preview modes to ensure image consistency and continuity. It can be seen that multiple live images can be composed of multiple image frames in the preview video within the same period.

[0051] The time domain color sequence is used to identify the identity of the lamp bead and determine its position in the lamp chain. It refers to the color change sequence displayed by the lamp bead at different time points. These sequences are unfolded on the time axis to form a unique color change history of the lamp bead. There are two types of time domain color sequences: one is a sequence in which the color changes over time. This change is unique and can be used as a basis for identifying the identity of the lamp bead; the other is a sequence in which the color remains unchanged at different time points. Although it is not unique in itself, its position identification can be indirectly inferred through the relative position relationship with the lamp bead with color changes.

[0052] For example, the odd-numbered lamp beads in the light chain can provide a time-domain color display sequence with color changes, while the even-numbered lamp beads can provide a time-domain color display sequence without color changes. Therefore, when the odd-numbered lamp beads determine the serial position identifier, the serial position identifier of the adjacent even-numbered lamp beads can be determined using the parity relationship.

[0053] In actual applications, by sending specific color display instructions to the light chain, the lamp beads can be controlled to emit light according to a predetermined time domain color display sequence. The construction of these instructions is based on the known total number of lamp beads and serial position coding rules to ensure that each lamp bead can display color according to its corresponding time domain color display sequence. The sending of color display instructions and the response of the lamp beads together realize the dynamic color display effect of the light chain.

[0054] In some embodiments, the light chain can be arranged into groups of several to arrange the time-domain color display sequence of each lamp bead. For example, in a group of four, the first lamp bead in the group uses a unique time-domain color display sequence to emit light, and the second, third, and fourth lamp beads can use a time-domain color display sequence without color change to emit light, but the colors emitted by these three lamp beads are different, so that when inferring the serial position identification of these lamp beads, this color distribution pattern can be combined for efficient identification.

[0055] The lamp beads in the live images, whether they change color or remain constant, will appear as significant bright spots, which provides a basis for identification for image analysis technology. Image analysis technology identifies the time domain color sequence of the lamp beads by capturing these bright spots and analyzing their color change patterns in continuous image frames.

[0056] The recognition of the time domain color sequence can be achieved through image analysis technology, and two main embodiments are provided. One is a method based on a deep learning model, and the other is to use the frame difference information between consecutive image frames.

[0057] The first embodiment uses a deep learning model to process and analyze live images. This model is trained to identify the bright spots of the lamp beads in the image and analyze the changes in their color over time. The deep learning model can process complex image features and identify unique temporal color change patterns, thereby accurately obtaining the corresponding time domain color sequence. By learning a large amount of image data, the model has mastered the laws of lamp bead color changes, can automatically distinguish the color sequences of different lamp beads, and can maintain a high recognition accuracy even under unsatisfactory image conditions.

[0058] The second embodiment relies on analyzing the frame difference information between consecutive image frames. This method first requires preprocessing of the continuously captured image frames to reduce the impact of noise and lighting changes. Then, by calculating the differences between consecutive frames, the areas where the color changes, that is, the positions of the lamp beads, can be highlighted. For lamp beads whose color remains unchanged, their position identification can be inferred by analyzing their relative position with the color-changing lamp beads. The frame difference method has an advantage in processing speed and is suitable for real-time monitoring and analysis of the color changes of lamp beads.

[0059] The layout space is used to represent the relative position and form of the light chain and its lamp beads in the physical space. This space is created based on the on-site image and corresponds to the physical space where the lamp beads are located in order to represent the lamp bead position information extracted from the on-site image. It provides a reference frame for each lamp bead so that its position can be determined and represented in an ordered space.

[0060] If the scene image is captured based on a single angle, a two-dimensional layout space can be directly created based on the two-dimensional characteristics of the scene image. Based on this, the position of the lamp beads in the image can be mapped to a two-dimensional coordinate system corresponding to the two-dimensional layout space, where the position of each lamp bead is represented by a (x, y) coordinate pair. The two-dimensional layout space is more suitable for light chains with flat or simple curve layouts, which can be implemented quickly and with less calculation.

[0061] When the on-site images are captured from multiple angles to reflect the three-dimensional form of the light chain, 3D modeling technology can be used to create a three-dimensional layout space. 3D modeling integrates information from multiple perspectives to construct a three-dimensional space model, in which the position of each lamp bead is represented by an (x, y, z) coordinate system. This three-dimensional layout space can more accurately reflect the layout of the light chain in the actual physical space, especially for light chains with complex shapes or multi-dimensional layouts.

[0062] After the layout space is created, it can be used to represent the position information of the lamp beads identified from the live image. The lamp bead position information can be realized in the live image through image processing techniques such as edge detection, threshold segmentation or pattern recognition. Once the position of the lamp bead is determined in the live image, this position information can be transformed into the layout space through mapping. In the two-dimensional layout space, this mapping is a direct coordinate transformation; in the three-dimensional layout space, depth information and perspective information also need to be considered to ensure that the spatial position information of the lamp bead is accurate.

[0063] Finally, the layout space provides a clear spatial position information corresponding to the physical space for each lamp bead in the light chain. This spatial position information is the basis for constructing the physical layout of the light chain. Through the layout space, the spatial position relationship between the lamp beads can be further analyzed, and important data support can be provided for the construction of the physical layout of the light chain.

[0064] It should be pointed out that in some embodiments, a clustering algorithm can also be applied to analyze the various spatial position information obtained in the layout space to determine the outliers and exclude them from the layout space. This can avoid misidentifying some false light points caused by reflection, scattering, interference, etc. as the light points where the lamp beads are located.

[0065] Step S5200: Create a physical layout of a light chain, which is used to describe the serial position identifiers of each lamp bead of the light chain in the light chain and the corresponding spatial position information in the layout space;

[0066] Creating a physical layout of a light chain is a process of systematizing the information extracted from the on-site image. This process can be likened to filling out a table, where the two columns of the table correspond to the serial position identification and spatial position information of the lamp beads. The serial position identification is determined according to the encoding rules of the light chain and the order of the lamp beads, and it represents the position of the lamp beads in the serial direction of the light chain. The spatial position information represents the specific coordinates of the lamp beads in the layout space, which will be determined in subsequent steps.

[0067] In this step, you first need to define the data structure of the physical layout of the light chain. This can be achieved by creating a data structure or table that contains two main fields: serial position identifier and spatial position information. The serial position identifier is assigned according to the preset encoding rules of the light chain corresponding to the total number of lamp beads. For example, if the light chain has 100 lamp beads, each lamp bead will be assigned a serial position identifier from 1 to 100 according to its position on the light chain. The serial position identifier can be written into the physical layout of the light chain first, thereby playing the role of indexing the lamp beads.

[0068] For the spatial position information corresponding to the serial position identification of each lamp bead, the spatial position information has not yet been determined because they need to be obtained through further processing and analysis. In the two-dimensional layout space, the spatial position information will include the (x, y) coordinates of each lamp bead; in the three-dimensional layout space, it will also include the z coordinate.

[0069] The physical layout of the light chain created in this step will gradually improve the relative spatial position information of each lamp bead in the subsequent steps. The serial position identification and spatial position information of each lamp bead can be integrated into the physical layout of the light chain to form a complete mapping, which includes not only the serial sequence information of the lamp beads on the light chain, but also their exact positions in the physical space. This physical layout is the basis for achieving precise control and dynamic display of the lighting effects of the light chain, and provides the necessary data support for the intelligent lighting system.

[0070] Step S5300: for a lamp bead whose color has changed according to the time domain color display sequence, determine its unique corresponding serial position identifier according to the time domain color display sequence of the lamp bead, and associate the spatial position information of the lamp bead in the physical layout of the light chain to make the lamp bead an identified lamp bead;

[0071] During the creation of the physical layout of the light chain, the serial position identifiers of each lamp bead have been pre-defined and filled into the layout. These serial position identifiers correspond to the time domain color sequence of the lamp bead. This correspondence has been determined when the color display instruction is sent and can be stored in a table for query.

[0072] When the terminal recognizes that the time domain color sequence of a lamp bead has color changes, it indicates that the sequence is unique and can be used as a basis for identifying the lamp bead. Since the correspondence between the time sequence color sequence and the serial position identifier is known, the terminal can directly find the serial position identifier of the lamp bead by querying the predefined table.

[0073] Next, the terminal will associate and fill in the spatial position information of the lamp bead in the layout space at the corresponding serial position mark in the physical layout. This spatial position information is obtained based on the on-site image through image processing technology, which corresponds to the exact position of the lamp bead in the physical space.

[0074] Specifically, if the time domain color display sequence of a lamp bead is "red-green-blue", and this sequence corresponds to the 50th serial position identifier in the predefined table, the terminal will fill in the spatial position information of the lamp bead at the 50th position of the physical layout, such as its (x, y) coordinates in the two-dimensional layout space, or (x, y, z) coordinates in the three-dimensional layout space.

[0075] After the above process, the records of some lamp beads are complete in the physical layout of the light chain. Since the time domain color sequence of the lamp beads processed in this step is unique, the spatial position information of the corresponding identified lamp beads is also credible, and it can be regarded or marked as an identified lamp bead. Correspondingly, other lamp beads become lamp beads to be identified. This means that the terminal not only knows the color change characteristics of the lamp bead, but also knows its exact position in the light chain and physical space.

[0076] Step S5400, according to the serial position relationship and spatial position relationship between the lamp bead to be identified and the identified lamp bead in the physical layout of the light chain, determine the serial position identifier and spatial position information corresponding to the lamp bead to be identified in the physical layout of the light chain, so that the lamp bead to be identified becomes an identified lamp bead.

[0077] In the construction of the physical layout of the light chain, the spatial position relationship and the serial position relationship are the basis for identifying the lamp beads to be identified. The spatial position relationship refers to the relative position between the lamp beads, based on their coordinates in three-dimensional or two-dimensional space. For example, if the spatial positions of two lamp beads are (x1, y1, z1) and (x2, y2, z2), their spatial relationship can be determined by the distance and direction between them. The serial position relationship is based on the order of the lamp beads on the light chain. Each lamp bead is assigned a unique serial position identifier according to its position. These identifiers reflect the linear arrangement of the lamp beads along the light chain.

[0078] For the lamp beads to be identified in the physical layout of the light chain, the serial position identifiers and spatial position information of some identified lamp beads are used to determine the serial position relationship and spatial position relationship between the lamp beads to be identified and these identified lamp beads. By comparing the arrangement rules of the lamp beads to be identified and these identified lamp beads in the light chain, relevant geometric operations can be performed to determine the serial position identifiers corresponding to the lamp beads to be identified and to infer the spatial position information corresponding to the lamp beads to be identified.

[0079] Specifically, when identifying the lamp bead to be identified, the serial position identifiers in the physical layout of the light chain can be traversed to find the lamp bead whose serial position identifier is not associated with the spatial position information, thereby determining that the lamp bead is the lamp bead to be identified. This lamp bead to be identified must have adjacent identified lamp beads before and after the serial direction of the light chain, and these adjacent identified lamp beads also have their corresponding serial position identifiers, and the serial position relationship with the lamp bead to be identified is thus determined. According to their serial position relationship, combined with the geometric characteristic of the lamp bead spacing of the light chain, the spatial position relationship between the lamp bead to be identified and these identified lamp beads can also be determined. According to this spatial position relationship and the spatial position information of the identified lamp beads, the spatial position information of the time domain color display sequence showing a constant color can be searched in the layout space as the spatial position information of the lamp bead to be identified, or the geometric characteristics corresponding to the arrangement of the lamp beads in the light chain can be used in the layout space to infer that the lamp bead to be identified is located at a certain position, thereby determining its spatial position information. After completing these inferences, the serial position identifiers and spatial position information of the lamp beads to be identified will be filled into the physical layout, so that these lamp beads are transformed into identified lamp beads.

[0080] In the process of inferring the lamp beads to be identified, the lamp beads to be identified can be determined by traversing the physical layout of the lamp chain to find the serial position identifiers that are not associated with the spatial position information. Each serial position identifier in the physical layout of the lamp chain thus plays its indexing role. On this basis, the spatial position information of the lamp beads to be identified can be inferred in a variety of specific embodiments, such as:

[0081] In one embodiment, spatial position information has been obtained based on the time-domain color display sequence of the lamp bead to be identified, and its time-domain color display sequence displays a specific color. When encoding the color display playback instruction, the relationship between the color change sequence of the lamp bead to be identified and its adjacent identified lamp bead is known. In this case, taking the adjacent identified lamp beads of the lamp bead to be identified as the starting point, inference is made according to the geometric characteristics of the light chain, such as the distance between the lamp beads. If the spatial position information corresponding to this specific color can be searched within the associated range of the adjacent identified lamp beads, then it can be inferred that this spatial position information is the spatial position information of the lamp bead to be identified. This spatial position information is associated with the serial position identifier of the lamp bead to be identified, thereby realizing the conversion of the lamp bead to be identified into an identified lamp bead.

[0082] In another embodiment, since some of the lamp beads to be identified are not visible in the on-site image, or because they are not identified by the image analysis technology, it may be impossible to infer the spatial position information of the lamp beads to be identified in the manner of the previous embodiment. In this case, the present embodiment has the advantage of not relying on whether the lamp beads are visible in the on-site image, or whether the lamp beads are luminous, or whether they emit specific colors. Instead, it directly determines the spatial positions of two adjacent identified lamp beads that are missing the spatial position information of the lamp beads to be identified according to the number of lamp beads according to the geometric characteristics of the arrangement of the lamp beads in the light chain, such as the lamp bead spacing. Or, when a lamp bead is missing at the beginning or end of the light chain, the segment where the missing lamp bead is located is extended by a corresponding length based on a number of identified lamp beads connected to the missing lamp bead and the lamp bead spacing, and then it is divided to determine the spatial positions, and the corresponding spatial position information is associated with the corresponding serial position identifier of the physical layout of the light chain. This can also realize the inference of the spatial position information and serial position identifier of these identifiers to be identified.

[0083] In addition, in some embodiments, during the process of generating the physical layout of the light chain, a clustering algorithm can be called as needed to perform cluster analysis on the identified lamp beads in the physical layout of the light chain, determine the outliers of the identified lamp beads, delete their spatial position information in the physical layout of the light chain, so that the identified lamp beads become lamp beads to be identified again, and then traverse the physical layout of the light chain again to perform inference of the above process, so as to redetermine the spatial position information of the lamp beads to be identified through inference, so that they become identified lamp beads again.

[0084] The clustering algorithms referred to in this application include but are not limited to any known algorithms such as K-means, DBSCAN, hierarchical clustering, spectral clustering, etc., which can be selected.

[0085] It is not difficult to understand from the above embodiments that, compared with the conventional technology, the present application has many beneficial effects, including but not limited to:

[0086] First of all, this application uses advanced image recognition technology to achieve rapid and accurate construction of the light chain layout. Compared with the prior art, this application is no longer limited by the requirement that users must arrange the light chain in a specific shape, nor does it require complicated wiring and editing processes. By using the time-domain color display sequence with color changes extracted from the on-site image of the lamp beads as an identification feature, it is possible to quickly capture key information from the light chain freely arranged by the user, confidently determine the correlation between the serial position identification and spatial position information of a part of the lamp beads, and then intelligently infer the serial position identification and spatial position information of other lamp beads to be identified based on these identified relationships. This rapid identification capability greatly shortens the cumbersome configuration and debugging time in traditional methods, and provides users with an efficient and intuitive means of generating lighting layouts.

[0087] Secondly, the intelligent inference mechanism of the present application significantly improves the accuracy of lamp bead recognition. Even when there are a large number of lamp beads, the placement shapes are complex or they are partially blocked, the present application can accurately deduce the positions of other lamp beads to be identified by analyzing the serial position relationship and spatial position relationship between the lamp beads to be identified and the identified lamp beads. This method of inferring unknown information based on known information not only optimizes the data processing process, but also enhances the system's adaptability and robustness to complex environments, and effectively solves the shortcomings of traditional technologies in large-scale or complex layout recognition.

[0088] Furthermore, the present application is highly flexible and extensible. It does not rely on specific hardware configurations, can adapt to light chains of different lengths and shapes, and provides a wide range of application possibilities for various lighting scenarios. At the same time, the intelligent processing capabilities of the present application provide strong technical support for the realization of personalized and dynamic lighting effects, greatly enriching the expressiveness and creativity of the intelligent lighting system, and meeting the needs of users for complex and dynamic lighting effects.

[0089] Finally, this application greatly improves the user experience through a simplified identification and layout construction process. Users do not need to perform complex operations or learn professional programming skills. They can easily achieve personalized settings and control of light chain lighting by taking a single shot with the terminal. This user-friendly design concept makes smart lighting technology closer to life and easier to be accepted and used by consumers, promoting the popularization and development of smart lighting technology.

[0090] On the basis of any embodiment of the method of the present application, based on multiple on-site images of the light chain, identifying the time domain color sequence of each lamp bead in the light chain image, and before the spatial position information in the layout space constructed according to the on-site images is obtained, the method includes:

[0091] Step S4100, constructing a plurality of color display play instructions corresponding to a plurality of time sequences in the time domain color display sequence according to the serial position identifier of each lamp bead in the serial structure information of the lamp chain and the corresponding time domain color display sequence;

[0092] The serial structure information is the preset data of the position and characteristics of each lamp bead in the light chain, which determines the serial position identification of each lamp bead based on the total number of lamp beads and the coding rules. This information can be known in advance, and when the number of lamp beads and the coding rules are known, the exact position of each lamp bead in the light chain can be pre-calculated and determined. For example, if the light chain consists of 100 lamp beads, each lamp bead can be assigned a unique identifier from 1 to 100, which follows the preset coding rules.

[0093] The temporal color sequence of each lamp bead is a set of predefined color change instructions that determine the color displayed by the lamp bead at different points in time. These sequences provide a unique color change pattern for each lamp bead, allowing the system to distinguish and identify each lamp bead. For example, the first lamp bead may have a temporal color sequence that starts with red, then changes to green, and finally changes to blue, while the second lamp bead may have a completely different sequence, such as starting with yellow, changing to purple, and finally changing to white.

[0094] In the present application, the colors of each time sequence in the time domain color display sequence of a part of the lamp beads are constant, while the colors of each time sequence in the time domain color display sequence of another part of the lamp beads are transformed. For the latter, a unique time domain color display sequence can be provided by distinguishing different lamp beads, so that the time domain color display sequence becomes the luminous coding information for identifying the identity of these lamp beads, and the corresponding lamp beads can be determined subsequently based on this luminous coding information.

[0095] Mapping the serial position identifiers of the lamp beads with their time domain color sequence helps to quickly identify the identity of each lamp bead. This mapping relationship allows the system to quickly query and send the correct color playback instructions to a specific lamp bead. For example, the system can create a database or lookup table that associates the serial position identifier of each lamp bead with its corresponding time domain color sequence, so that this information can be quickly retrieved and used when needed.

[0096] When constructing color display playback instructions, a set of instructions can be generated based on the pre-established mapping relationship, and each color display playback instruction corresponds to each time sequence in the time domain color display sequence of the lamp beads. Therefore, at each time sequence in the time domain color display sequence, the corresponding display color of all lamp beads is included in a corresponding color display playback instruction, which actually describes a frame of luminous image of the light chain.

[0097] Step S4200: sending the plurality of color display instructions to the light chain in accordance with the plurality of time sequences, so as to control each lamp bead in the light chain to display lights of corresponding colors in accordance with its corresponding time domain color display sequence;

[0098] Each color display instruction is sent to the light chain in sequence to control each lamp bead to display color according to the predetermined time domain color display sequence. Once the light chain receives the instruction, the control chip inside it will parse these instructions and control the corresponding lamp bead to change color according to the instruction. From the perspective of the entire light chain, a frame of luminous image will be presented for each sequence. The display color of some lamp beads at different sequences will change due to the definition of their time domain color display sequence, while the display color of some lamp beads at different sequences will remain the same.

[0099] In one embodiment, in order to ensure that the terminal has enough time to identify each lamp bead, the color display instruction can be sent to the light chain in multiple rounds. This means that the lamp beads on the light chain will cycle their color changes, thereby providing a dynamic and continuous color display effect, while also making the image acquisition and lamp bead identification process easier.

[0100] In another embodiment, in order to improve recognition efficiency, the time domain color display sequences of different lamp beads are equal in the number of time sequences. This means that all lamp beads will show the same number of color changes in a single round of light emission, thereby ensuring the regularity and consistency of the lamp bead color display sequence, which is convenient for the terminal to perform fast and accurate recognition.

[0101] In this way, not only can the color change of the light chain be precisely controlled, but it can also ensure that each lamp bead can emit light according to the predetermined time domain color sequence, providing dynamic and intuitive on-site image information for creating the physical layout of the light chain. This image information is the basis for identifying lamp beads and constructing layout space in subsequent steps, ensuring the accuracy and reliability of the entire light chain physical layout generation method.

[0102] Step S4300: obtaining a preview video of the light chain through a camera unit, and extracting a plurality of image frames in the preview video corresponding to the plurality of time sequences as a live image of the light chain.

[0103] As part of the terminal device, the camera unit has the function of video capture. It records the lighting status of the light chain in real time at a certain frame rate and generates a preview video. These video contents not only reflect the color changes of the lamp beads, but also record the luminous images of the light chain in a specific time sequence. For example, if the camera unit captures video at a rate of 30 frames per second, and the time slot of each sequence in the time domain color sequence is also 1 second, then after each color playback instruction is issued, the camera unit will capture 30 frames of images within 1 second, where each frame of the image corresponds to a momentary lighting state of the light chain.

[0104] While obtaining the preview video, the terminal can extract key image frames from the preview video as live images according to the timing of each color display playback instruction. These image frames are used as live images to record the specific lighting status of the light chain at different time points. For example, if there are 4 color display playback instructions corresponding to 4 timings, 4 frames of images are extracted from the preview video corresponding to the 4 timings. Considering that there may be a delay in sending the instruction to the light chain, the terminal can adapt to the corresponding delay time value to slightly delay the analysis and determine the live image.

[0105] In one embodiment, the process of determining the scene image can be implemented by image processing software, which can identify and separate each image frame in the video. For each image frame in each time sequence, the one with the most complete and clear luminous highlights can be selected as the scene image. These image frames can then be used for further analysis and processing, such as identification of lamp beads and determination of spatial position.

[0106] In some embodiments, in order to ensure the accuracy and integrity of the image frame, a specific algorithm can be used to enhance the image quality, such as by using image sharpening, noise reduction and other techniques to improve the clarity and recognizability of the image frame, and determine the scene image on this basis.

[0107] Through the above embodiments, the present application demonstrates significant technical advantages. First, by accurately constructing color display playback instructions corresponding to different time sequences and sending them to the light chain, it is ensured that the lamp beads can perform stable and continuous color changes according to the preset time domain color display sequence, which provides a dynamic and continuous color display effect for image acquisition and greatly facilitates the lamp bead recognition process. Secondly, by ensuring the consistency of the time domain color display sequence of different lamp beads in the number of time sequences, the regularity of the color display sequence is strengthened, thereby improving the efficiency and accuracy of the terminal recognition of the lamp beads. In addition, the preview video captured by the camera unit is used to extract key frames as the scene image, combined with the preferential selection mechanism of the image processing software, to further ensure the integrity and clarity of the image, and provide high-quality visual data for subsequent lamp bead recognition and spatial position determination. Finally, through image quality enhancement algorithms, such as image sharpening and noise reduction technology, the image recognizability is further improved, ensuring that each lamp bead can be accurately identified and located even under complex or undesirable lighting conditions. The combination of these technologies not only optimizes the data processing process, but also enhances the system's adaptability and robustness to complex environments, effectively improving the performance and reliability of the entire light chain physical layout generation method.

[0108] On the basis of any embodiment of the method of the present application, based on multiple on-site images of the light chain, identifying the time domain color sequence of each lamp bead in the light chain image and the spatial position information in the layout space constructed according to the on-site images, including:

[0109] Step S5110: constructing a layout space corresponding to the physical space where the light chain is located based on the multiple on-site images;

[0110] The layout space is a virtual space corresponding to the physical space where the light chain is located. As mentioned above, it can be two-dimensional or three-dimensional according to actual needs, depending on the information provided by the on-site image and the complexity of the light chain layout.

[0111] The construction of the layout space starts with the analysis of multiple live images. These images are captured by the camera unit of the terminal device and reflect the state of the light chain at different points in time. In the simplest case, if all live images only provide a two-dimensional view, then the constructed layout space is more suitable for two-dimensional space. In the two-dimensional layout space, the position of each lamp bead can be determined by a (x, y) coordinate pair, which reflects the position of the lamp bead on the plane.

[0112] If the live image includes depth information, or the depth information can be obtained from the preview video with the help of an existing deep learning model, or even the three-dimensional space can be automatically modeled, then the layout space can also be constructed as a three-dimensional space. In the three-dimensional layout space, the position of each lamp bead is determined by the (x, y, z) coordinate system, which not only reflects the position of the lamp bead on the plane, but also includes its depth information in the depth direction.

[0113] The process of constructing the layout space can adopt a variety of technical means. For example, computer vision algorithms can be used to analyze the shape of the light chain and the distribution of the lamp beads in the image to determine their relative positions in the layout space. If the on-site image provides depth information, the three-dimensional layout space can be directly constructed through the deep learning model, and the spatial position information of each lamp bead in the image in the three-dimensional layout space can be identified. In addition, three-dimensional modeling technology can be used to create geometric models based on the image of the light chain carrier, and these models can also be mapped to the layout space.

[0114] The layout space corresponds to the physical space and is used to map the spatial position information and time domain color sequence of the lamp beads to the physical space. This space not only provides a clear position identification for each lamp bead, but also provides the necessary structural information, so that the system can accurately track and control the color changes of each lamp bead to achieve complex lighting effects.

[0115] Step S5120, mapping each lamp bead identified from the light chain image to the layout space to determine its corresponding spatial position information;

[0116] As mentioned above, the type of layout space depends on the information dimension provided by the on-site image. If the on-site image only provides a two-dimensional view, the layout space is constructed as a two-dimensional space. In the two-dimensional layout space, the spatial position information of each lamp bead is determined by the (x, y) coordinate pair in the plane rectangular coordinate system.

[0117] If the live image includes depth information or can be extracted from the video through a deep learning model, the layout space is constructed as a three-dimensional space. In the three-dimensional layout space, the spatial position information of each lamp bead is determined by the (x, y, z) coordinates in the three-dimensional coordinate system, which reflects the actual position of the lamp bead in the three-dimensional space, including its depth in the depth direction.

[0118] It can be seen that this step actually converts and maps the spatial position information of each lamp bead in the physical space into the layout space, so as to subsequently implement various operations based on the layout space, achieve various purposes, and obtain computing efficiency advantages.

[0119] Step S5130: According to the light chain images in the multiple on-site images, determine the display colors corresponding to the lamp beads at each position along the time domain, and sequentially construct the display color of each lamp bead into a corresponding time domain color display sequence.

[0120] After the spatial position information of the lamp beads is successfully constructed and mapped in the layout space, the displayed colors of the lamp beads can be analyzed and recorded in the time domain, so as to capture and serialize the colors displayed by each lamp bead at different time points, forming a unique time domain color display sequence for each lamp bead.

[0121] The recognition of the time-domain color sequence is based on the color information extracted from the live image. By analyzing the luminous state of each lamp bead in the layout space at different time points corresponding to the live image, their color changes can be determined and the corresponding display colors can be obtained. For example, if a lamp bead first appears red in the first live image of the preview video, and then changes to green and blue in the next second and third live images, then the time-domain color sequence of this lamp bead can be expressed as "red-green-blue". The display colors of each lamp bead at different time sequences are spliced ​​in order to obtain the corresponding time-domain color sequence.

[0122] Once the time-domain color sequence of each lamp bead is determined, these time-domain color sequences can be associated with the spatial position information of the lamp bead in the layout space for ready use, providing complete data support for the intelligent control and dynamic effect editing of the light chain. This data that combines spatial and temporal dimensions can not only be used to adjust the display effect of the lamp bead in real time, but also can be used to create complex dynamic lighting scenes to meet users' needs for personalized lighting effects.

[0123] The key advantage of the above embodiment is its efficient processing capability for on-site images. By selecting a small number of on-site images, the time-domain color sequence of each lamp bead can be quickly identified with a low amount of computation. This recognition process not only reduces the demand for computing resources, but also improves the processing speed, allowing the system to respond quickly and accurately represent the color changes of the lamp beads in the layout space. This fast and accurate mapping not only makes real-time control possible, but also lays the foundation for the realization of dynamic lighting effects, greatly improving the practicality and flexibility of the intelligent lighting system. In this way, even in scenes with a large number of lamp beads or complex layouts, it is possible to quickly and accurately locate some lamp beads.

[0124] On the basis of any embodiment of the method of the present application, constructing a layout space corresponding to the physical space where the light chain is located based on the multiple on-site images includes:

[0125] Step S5111: constructing a three-dimensional layout space according to the depth information and plane information provided by the multiple on-site images, so as to correspond to the physical space where the light chain is located;

[0126] The construction of a 3D layout space is a technique that converts an actual physical space into an accurate digital model. By using the depth information captured by the camera unit, combined with the plane information, a 3D representation of the space where the light chain is located can be created. This representation includes not only the length, width and height of the space, but also the spatial distribution and form of the light chain.

[0127] When constructing a three-dimensional layout space, a variety of technical means can be used. For example, stereo vision technology can be used to calculate depth information by analyzing images captured by the camera unit from different angles, while plane information is directly provided by each scene image.

[0128] Once the depth information and plane information are obtained, the layout space can be constructed using 3D modeling software or algorithms in computer graphics. These software or algorithms can generate a 3D point cloud based on the input depth data, and then construct a grid model to accurately represent the physical space where the light chain is located, and obtain the corresponding 3D layout space.

[0129] The construction of a three-dimensional layout space enables accurate mapping and positioning of the lamp beads in this space. This spatial model enables the terminal to simulate the physical layout of the light chain and even the light chain carrier in a virtual environment, providing a basis for achieving precise lamp bead control and dynamic lighting effects.

[0130] Step S5112: Create a geometric model of the light chain carrier according to the image of the light chain carrier in the multiple on-site images, and map the geometric model to the layout space.

[0131] After successfully constructing the three-dimensional layout space, the next step is to create a geometric model of the light chain carrier and map the model into the layout space.

[0132] First, images of the light chain carrier are extracted from multiple on-site images. These images provide information such as the shape, size, and relative position of the light chain carrier in physical space. Then, these images and computer graphics technology are used to construct a geometric model of the light chain carrier. The light chain carrier can be a variety of physical objects, such as Christmas trees, walls, computer screens, etc., on which the light chain shape is placed.

[0133] In the process of building geometric models, you can use parametric modeling, surface modeling or solid modeling techniques. Parametric modeling allows you to control the shape of the model by defining a set of parameters; surface modeling focuses on creating smooth surfaces; while solid modeling focuses on generating three-dimensional objects with well-defined volumes.

[0134] Once the geometric model is created, it can be mapped to the constructed 3D layout space. The mapping process includes determining the position and orientation of the model in the layout space, ensuring that the position of the model is consistent with the position of the light chain carrier in the actual physical space. In addition, the position parameters of the model, such as translation and rotation, can be adjusted as needed to match the spatial information extracted from the on-site image.

[0135] After mapping the geometric model to the layout space, the spatial position information and time domain color sequence of each lamp bead can be associated with this geometric model. In this way, different usage advantages can be reflected at different stages. Specifically, in the stage of identifying lamp beads, users may compare the differences in the positions of lamp beads in this three-dimensional layout space and physical space to decide whether to make some necessary adjustments and re-identification. After the lamp bead recognition has been completed and the user customizes the lighting effect, the terminal can present a virtual environment in which the geometric model and the light chain model are displayed. Thus, the physical arrangement of each lamp bead in the light chain can be accurately simulated in the virtual environment. The user can achieve precise control of the lamp beads in the light chain based on this information and create the lighting effect played by the light chain. For example, if the user needs to adjust the color or brightness of a specific lamp bead during the process of defining a new lighting effect, he only needs to rotate the corresponding geometric model, expose the corresponding lamp bead in the graphical user interface, and select the lamp bead to make the corresponding settings. In addition, the mapping of geometric models also makes it possible to achieve complex lighting effects. For example, when designing lighting effects, the color changes of the lamp beads can be arranged according to the geometric shape of the lamp chain carrier and the spatial distribution of the lamp beads to create a rich variety of lighting effects.

[0136] The above embodiments bring significant convenience to users when displaying and operating the shape of light chain decoration. Using the three-dimensional layout space, the physical form and spatial distribution of the light chain are intuitively digitally presented, allowing users to clearly observe the three-dimensional form and layout of the light chain in a virtual environment. This three-dimensional representation not only enhances the visual effect, but also improves the user interaction experience, because users can directly rotate, scale and position the geometric model of the light chain carrier in the virtual space to achieve precise adjustment and control of the light chain shape. In the process of identifying lamp beads, users can more intuitively compare with the physical space to analyze anomalies and determine whether re-identification is needed. In addition, the precise mapping capability of the three-dimensional layout space enables each lamp bead of the light chain to be personalized according to its exact position in the physical space, thereby creating a rich variety of lighting effects. This intuitive and interactive operation method greatly simplifies the light chain lighting design process, enables users to quickly realize their creative ideas, and improves design efficiency and user satisfaction.

[0137] On the basis of any embodiment of the method of the present application, according to the serial position relationship and spatial position relationship between the lamp bead to be identified and the identified lamp bead in the physical layout of the lamp chain, in the physical layout of the lamp chain, the serial position identifier and spatial position information corresponding to the lamp bead to be identified are determined, including:

[0138] Step S6100, traversing the physical layout of the light chain in a serial direction to the current lamp bead to be identified, and determining at least two adjacent identified lamp beads that are adjacent to the current lamp bead to be identified in the serial direction;

[0139] In the process of constructing the physical layout of the light chain, a key link is to identify and determine the serial position identification and spatial position information of the lamp bead to be identified. Based on the fact that the serial position identification of each lamp bead has been pre-written into the physical layout of the light chain, this process starts with an orderly traversal of the physical layout of the light chain, with the goal of finding at least two identified lamp beads that have a neighboring relationship with each lamp bead to be identified in the serial direction.

[0140] Specifically, the lamp beads in the physical layout of the light chain can be checked sequentially in the serial direction. During the inspection process, once a lamp bead to be identified is encountered, the direct neighbors of the lamp bead to be identified can be automatically searched and identified, that is, those lamp beads that have been identified and whose spatial position information has been determined. These identified lamp beads provide key spatial position information, and they form a neighboring relationship with the lamp bead to be identified in the serial direction. For example, if there is a lamp bead to be identified in the physical layout of the light chain, and the lamp beads on its left and right have been identified, then these two identified lamp beads constitute the direct neighbors of the lamp bead to be identified. Similarly, if there is no identified lamp bead on the right side of a lamp bead to be identified, the two or three closest identified lamp beads on its left side can also be regarded as its corresponding neighbors, as the basis for identifying the lamp bead to be identified.

[0141] Step S6200, determining the spatial addressing range of the lamp bead to be identified currently according to the spatial position information of the at least two adjacent identified lamp beads and the average distance between the lamp beads of the lamp chain in the layout space;

[0142] When at least two adjacent identified lamp beads of the lamp bead to be identified are determined, it is necessary to first determine the spatial addressing range of the lamp bead to be identified in the layout space.

[0143] First, using the spatial position information of the identified lamp beads stored in the physical layout of the light chain, the average spacing between the lamp beads in the layout space can be calculated. This calculation can be done by measuring and calculating the distance between multiple pairs of identified lamp beads. Specifically, multiple pairs of adjacent adjacent identified lamp beads are randomly selected from the layout space, or the distances between them are measured using the full amount of adjacent identified lamp bead pairs. The lamp bead spacing is calculated based on the number of lamp beads contained between each pair of identified lamp beads, and then the average of all these lamp bead spacings is taken as the average lamp bead spacing. The average lamp bead spacing is a quantitative representation of the regularity of the lamp bead arrangement in the light chain layout, reflecting the geometric arrangement characteristics between adjacent lamp beads, and plays an important role in predicting the positions of the lamp beads to be identified.

[0144] Next, based on the spatial position information of the identified lamp beads and the average spacing between the lamp beads, the spatial addressing range of the lamp beads to be identified can be determined. This range is determined based on the serial position relationship and spatial position relationship of the lamp beads.

[0145] In one embodiment, if there are identified lamp beads on both sides of the lamp bead to be identified, then the possible positions of the lamp bead to be identified can be estimated by the positions of the two identified lamp beads in the layout space, combined with the average spacing between the lamp beads. For example, if the positions of two adjacent identified lamp beads are known, and the distance between them is equal to twice the average spacing between the lamp beads, then it can be inferred that there is a lamp bead to be identified that needs to be determined between the two lamp beads, and its spatial position is roughly located at the midpoint of the line connecting the two lamp beads. Taking into account that the light chain is usually not arranged in a straight line, the error needs to be properly considered, so a corresponding spatial addressing range can be set with this midpoint as the center. It is not difficult to understand that the distance from any point in this spatial addressing range to this midpoint does not need to exceed half of the average spacing between the lamp beads.

[0146] In some embodiments, if the lamp bead to be identified has an identified lamp bead on only one side, or is at the edge of the lamp chain, the determination of the spatial addressing range will be adjusted based on the known lamp beads on this side and the average distance between the lamp beads. For example, if the lamp bead to be identified has three identified lamp beads on only the left side, then the spatial addressing range of the lamp bead to be identified can be determined based on the positions of these known lamp beads in the layout space and the average distance between the lamp beads, and the direction of the three identified lamp beads in the layout space, and continue to extend to the right side of the serial direction.

[0147] In addition, for multiple lamp beads to be identified that are arranged continuously in the lamp chain, the area where they are located can be segmented according to their positional relationship in the serial direction and the average spacing of the lamp beads determined only based on the identified lamp beads on both sides of them, and the possible spatial addressing range can be determined at the division point between each two segments. This can not only improve the search efficiency, but also ensure the continuity and integrity of the layout.

[0148] It can be seen that based on the spatial position information of the identified lamp beads and the average spacing between the lamp beads, and according to the spatial position relationship and serial position relationship between the lamp bead to be identified and its surrounding adjacent identified lamp beads implied in the inherent geometric characteristics of the lamp bead arrangement in the light chain, the spatial addressing range corresponding to the search for each lamp bead to be identified is determined.

[0149] Step S6300, determining the spatial position information in which the time-domain color display sequence and the time-domain color display sequence of the adjacent identified lamp beads satisfy a preset arrangement relationship within the spatial addressing range;

[0150] The lamp beads to be identified in this step have a constant display color in the time domain color sequence, that is, the color does not change in the time sequence. In the process of presetting the time domain color sequence before constructing the color display playback instruction, how each lamp bead displays color has formed a preset arrangement relationship. According to this preset arrangement relationship, this step analyzes whether each possible lamp bead to be identified is the lamp bead to be identified corresponding to the serial position identifier to be set in the physical layout of the light chain within the spatial addressing range. That is, there may be multiple spatial position information corresponding to constant colors within the spatial addressing range, and each spatial position information may correspond to a lamp bead to be identified, but only the spatial position information whose display color meets the preset arrangement relationship with the time domain color sequence of the adjacent identified lamp bead is the spatial position information corresponding to this serial position identifier. If the display color of the lamp bead to be identified is compared with the display color of the adjacent identified lamp bead in a single time sequence, it is easy to make mistakes. Therefore, the constant display color of the lamp bead to be identified can be compared with the entire time domain color sequence of the adjacent identified lamp bead to determine whether they meet the preset arrangement relationship.

[0151] It should be emphasized that the time domain color sequence of the lamp beads to be identified is constant, that is, at different time points, the colors displayed by these lamp beads will not change. At the same time, the time domain color sequence of the identified lamp beads is known, and when constructing the color display instruction, the color display mode of each lamp bead has been set according to the preset arrangement relationship.

[0152] In specific implementation, the system will analyze the time domain color sequence for each possible spatial position information within the determined spatial addressing range. Specifically, its constant display color can be compared with the color change of the adjacent identified lamp beads in the entire time domain. For example, if a lamp bead to be identified is always displayed as blue, and its adjacent identified lamp beads are displayed as red, green and yellow in a preset sequence at different time points, the terminal will check whether this blue meets the requirements of the specific order or pattern of these colors in the preset arrangement relationship.

[0153] Step S6400: Set the spatial position information as the spatial position information associated with the serial position identifier of the lamp bead currently to be identified in the physical layout of the light chain, so that the lamp bead currently to be identified becomes an identified lamp bead.

[0154] Through the above steps, the spatial position information of the lamp bead to be identified represented by the currently traversed serial position identifier can be inferred, and this spatial position information is associated with the serial position identifier and written into the physical layout of the light chain, which actually determines the lamp bead to be identified as an identified lamp bead.

[0155] The above embodiments further demonstrate the technical advantages embodied in the process of constructing the physical layout of the light chain, including:

[0156] First, the physical layout of the light chain is traversed to complete the identification of the lamp beads to be identified. The efficiency of this method is reflected in the ability to systematically and orderly process each lamp bead to be identified, ensuring the comprehensiveness and continuity of the identification process. Through this traversal mechanism, the lamp beads to be identified can be quickly located, and the known information of the identified lamp beads can be effectively used, thereby significantly improving the identification efficiency.

[0157] Secondly, the mathematical analysis and calculation based on spatial position relationship and serial position relationship not only reduces the reliance on complex image processing technology, but also reduces the complexity of calculation. This method can quickly identify the position of the lamp beads by directly comparing and calculating the relative position between the identified lamp beads and the lamp beads to be identified. This analysis method based on geometric characteristics simplifies the recognition process, improves the recognition speed, and also ensures the accuracy of the recognition results.

[0158] Furthermore, within the spatial addressing range, this method gives priority to time-domain color display sequences that can identify constant colors. Since the display colors of these lamp beads to be identified are constant in the time series, they provide a reliable reference point for comparison with the time-domain color display sequences of adjacent identified lamp beads. By checking whether these constant-color lamp beads meet the preset arrangement relationship, this method can efficiently and accurately determine their spatial positions in the layout. The advantage of this method is that it utilizes the constancy of the lamp bead color, reduces the complexity caused by color changes, and thus improves the accuracy and efficiency of recognition.

[0159] Finally, by associating the identified spatial position information with the corresponding serial position identifier, this method not only achieves fast and accurate identification of the lamp beads to be identified, but also provides a solid foundation for the improvement of the physical layout of the light chain. The implementation of this method not only improves the accuracy of lamp bead identification, but also optimizes the data processing process and enhances the adaptability and robustness of the system to complex environments.

[0160] On the basis of any embodiment of the method of the present application, the spatial addressing range of the current lamp bead to be identified is determined according to the spatial position information of the at least two adjacent identified lamp beads and the average lamp bead spacing between the identified lamp beads, including: step S6211, determining the spacing between two adjacent lamp beads according to the spatial distance between each two adjacent identified lamp beads in the layout space and the number of lamp beads regularly arranged within the spatial distance, and determining the average lamp bead spacing according to the distance between each two lamp beads; step S6212, determining the midpoint of the line distance between the two adjacent identified lamp beads in the layout space according to the spatial position information of the two adjacent identified lamp beads; step S6213, drawing a circle with the midpoint of the line distance as the center and the average lamp bead spacing as the diameter, and determining the spatial addressing range corresponding to the unique lamp bead to be identified currently between the two adjacent identified lamp beads.

[0161] This embodiment establishes an efficient and accurate method to determine the spatial addressing range of the lamp beads to be identified by accurately measuring the spatial distance between the identified lamp beads and calculating the average spacing. Through step S6211, the system can calculate the standard spacing between adjacent lamp beads based on the known arrangement rules of the lamp beads, thereby providing a quantitative reference basis for the regular arrangement of the lamp beads in the layout space. Step S6212 further refines the search area. By determining the midpoint between two adjacent identified lamp beads, the search focus can be narrowed to the area where the lamp beads to be identified are most likely to exist. Finally, in step S6213, using the midpoint as the center of the circle and the average spacing of the lamp beads as the diameter to draw a circular area, a specific search range can be clearly defined, which greatly improves the efficiency and accuracy of identifying the lamp beads to be identified. Overall, the advantage of this method is that it systematically utilizes the serial position relationship and spatial position relationship represented by the arrangement rules of the lamp beads. Through mathematical and geometric principles, it optimizes the search and positioning process of the lamp beads to be identified, reduces the consumption of computing resources, and speeds up the recognition speed, thereby improving the accuracy and reliability of the entire light chain physical layout generation process.

[0162] On the basis of any embodiment of the method of the present application, the spatial addressing range of the current lamp bead to be identified is determined according to the spatial position information of the at least two adjacent identified lamp beads and the average lamp bead spacing between the identified lamp beads, including: step S6231, determining the spacing between two adjacent lamp beads according to the spatial distance between each two adjacent identified lamp beads in the layout space and the number of lamp beads regularly arranged within the spatial distance, and determining the average lamp bead spacing according to the distance between each two lamp beads; step S6232, according to the slope corresponding to the connecting line between each three adjacent identified lamp beads in the layout space, taking the edge identified lamp beads among the three identified lamp beads as the base point, and determining the extension point by drawing a line according to the slope and the average lamp bead spacing; step S6233, taking the extension point as the center and the average lamp bead spacing as the diameter to draw a circle, and determining the spatial addressing range corresponding to the current lamp bead to be identified in the lateral direction of the edge identified lamp bead.

[0163] This embodiment demonstrates the technical advantages in determining the spatial addressing range of the lamp beads to be identified. First, by measuring the actual spatial distance between adjacent identified lamp beads, and combining the preset number of lamp beads, the average spacing between the lamp beads is accurately calculated, providing an accurate reference benchmark for subsequent positioning. Next, the extension point is determined by using the slope of the line between the three adjacent identified lamp beads, combined with the average spacing. This innovative method not only takes into account the linear arrangement characteristics of the lamp beads, but also cleverly uses spatial geometric relationships to assist in positioning. Finally, a circular area is drawn with the extension point as the center and the average spacing as the diameter, which effectively defines the possible positions of the lamp beads to be identified. This method significantly improves the accuracy of positioning and search efficiency. Overall, this embodiment optimizes the search and positioning process of the lamp beads to be identified by combining the arrangement rules and spatial geometric characteristics of the lamp beads, reduces the consumption of computing resources, speeds up the recognition speed, and improves the accuracy and reliability of the physical layout generation of the entire light chain.

[0164] On the basis of any embodiment of the method of the present application, according to the serial position relationship and spatial position relationship between the lamp bead to be identified and the identified lamp bead in the physical layout of the lamp chain, in the physical layout of the lamp chain, the serial position identifier and spatial position information corresponding to the lamp bead to be identified are determined, so that the lamp bead to be identified becomes an identified lamp bead, including:

[0165] Step S7100: construct a feature vector of all identified lamp beads as a sample, wherein the feature vector includes the serial position identifier and spatial position information of the identified lamp beads in the physical layout of the lamp chain;

[0166] In the process of constructing the physical layout of the light chain, due to the limitations of image analysis technology, light points that do not actually belong to the lamp beads may appear, forming corresponding spatial position information in the layout space, and this spatial position information may also be mistakenly identified as data corresponding to a serial position identifier, resulting in incorrectly identified lamp beads in the physical layout of the light chain. In this case, clustering algorithms can be used to troubleshoot these misidentified lamp beads.

[0167] In order to give full play to the role of clustering algorithms, corresponding feature vectors can be constructed for all the identified lamp beads in the physical layout of the light chain. These feature vectors exhaustively record the serial position identification and spatial position information of each identified lamp bead in the physical layout of the light chain, providing a unique mathematical representation for each identified lamp bead.

[0168] The construction of the feature vector is achieved by encoding the serial position identification and spatial position information of the identified lamp beads. For example, if the light chain consists of a series of sequentially arranged lamp beads, the serial position identification of each lamp bead can be simply represented by its position number in the light chain. At the same time, the spatial position information of each lamp bead can be determined by its coordinates in three-dimensional space, such as using the (x, y, z) coordinate system.

[0169] Step S7200: cluster all the samples using a clustering algorithm to determine outlier samples, and delete the spatial position information of the identified lamp beads corresponding to the outlier samples from the physical layout of the light chain.

[0170] After obtaining each feature vector, each feature vector can be used as a sample for cluster analysis, and a clustering algorithm can be applied to analyze these feature vectors to identify and process those lamp beads that may be misidentified due to image analysis errors or other reasons.

[0171] A clustering algorithm is an unsupervised learning method that can group samples in a data set based on feature similarity without the need for pre-labeled tags. In this embodiment, a clustering algorithm is used to analyze a sample set of feature vectors of identified lamp beads in order to discover and identify outlier samples that are significantly different from the majority of samples.

[0172] In practice, the clustering algorithm calculates the similarity or distance between each feature vector and divides them into clusters based on these similarities. Each cluster represents a group of identified lamp beads that are close to each other in the feature space. Outlier samples are those whose distance from any cluster exceeds a preset threshold, and they may represent misidentified lamp beads.

[0173] Once these outlier samples are identified, the spatial location information corresponding to these outlier samples can be deleted from the physical layout of the light chain to remove possible erroneous data, and then the corresponding spatial location information in the layout space can be deleted to clear the corresponding points. In this way, the physical layout of the light chain and the layout space data can be purified to ensure the accuracy and reliability of the layout. Then, the lamp beads whose spatial location information has been deleted in the physical layout of the light chain will return to the state to be identified, and the identification and positioning process can be repeated.

[0174] This embodiment demonstrates significant technical advantages in the process of constructing the physical layout of the light chain through the application of clustering algorithms. First, as an unsupervised learning method, clustering algorithms can effectively process large amounts of data, automatically identify and distinguish normal lamp beads from misidentified light points, thereby improving the data accuracy of the physical layout of the light chain. Secondly, through clustering analysis, outlier samples can be quickly identified, which are significantly different from other samples in the feature space and are likely to be misidentified due to image analysis errors or environmental interference. By deleting the spatial position information corresponding to these outlier samples, the system not only clears potential erroneous data, but also enhances the robustness to abnormal situations. In addition, the application of clustering algorithms also improves the efficiency of data processing because it allows the system to automatically identify and correct errors without manual intervention. Finally, this method ensures the continuous update and optimization of the physical layout of the light chain by re-identifying and locating the lamp beads whose spatial position information has been deleted. It can be seen that through the application of clustering algorithms, potential recognition errors can be automatically detected and corrected, ensuring the high quality and reliability of the physical layout of the light chain, and providing users with an accurate and reliable lighting control system.

[0175] Based on any embodiment of the method of the present application, clustering all the samples using a clustering algorithm to determine outlier samples, and deleting the spatial position information of the identified lamp beads corresponding to the outlier samples from the physical layout of the lamp chain, including:

[0176] Step S8100, traversing the physical layout of the lamp chain in serial order, determining that at least one to-be-identified lamp bead with a continuous serial position identifier constitutes a missing lamp bead set, and determining the number of segments corresponding to the number of missing lamp beads in the missing lamp bead set;

[0177] After deleting the spatial location information corresponding to the outlier samples through the clustering algorithm, the missing lamp beads set in the physical layout of the light chain can be further processed. The missing lamp beads in this missing lamp bead set mainly include the lamp beads to be identified whose spatial location information cannot be effectively determined by other means. These missing lamp beads may be unable to be accurately identified by the image analysis algorithm, or they may be blocked lamp beads that cannot be displayed by multiple on-site images.

[0178] Specifically, based on the physical layout of the light chain, the physical layout of the light chain is still traversed in the serial direction to identify at least one lamp bead to be identified with a continuous serial position identifier. These continuous lamp beads to be identified constitute a missing lamp bead set. For example, if a series of continuous lamp beads to be identified that are not assigned spatial position information are found in the physical layout of the light chain, these lamp beads constitute a missing lamp bead set. The number of missing lamp beads in this set is counted, and this number of lamp beads will be directly related to the number of segments to be processed later.

[0179] After the missing lamp bead set is identified, the number of segments of the set is further determined, and this number of segments is determined based on the number of missing lamp beads. For example, if the missing lamp bead set contains N unidentified lamp beads, the corresponding number of segments is N+1. If N is 4, the corresponding number of segments is 5. This means that the missing segments between the two adjacent identified lamp beads on both sides of the missing lamp bead set need to be evenly divided into 5 segments, and then the segmentation points between the segments are regarded as the locations of the corresponding lamp beads to be identified, so as to determine the corresponding spatial position information.

[0180] Step S8200, determining a missing lamp bead segment in the layout space according to the spatial position information of the identified lamp beads on both sides of the missing lamp bead in the serial direction;

[0181] According to the corresponding identified lamp beads on both sides of the missing lamp bead set, the spatial position information of the two identified lamp beads is used to determine the missing lamp bead segment. The two identified lamp beads are used as reference points, and the line between them in the layout space is the missing lamp bead segment. It is not difficult to understand that the missing lamp bead segment can be determined specifically by the spatial position information of the two identified lamp beads, and the missing lamp bead segment can be approximately determined by the straight-line distance between the two identified lamp beads in the layout space.

[0182] Step S8300, dividing the missing segments of the lamp beads equally according to the number of segments, and determining the spatial position information corresponding to each segmentation point;

[0183] After the missing segment is determined, the missing segment is divided equally according to the number of segments determined previously. Equal division means dividing the missing segment of the lamp bead into several equal parts, and the division point between each two parts represents the potential position of a missing lamp bead. For example, if the missing lamp bead set has four unidentified lamp beads, the system will divide the missing segment of the lamp bead into five equal parts, and the division point between each two equal parts corresponds to the position of a missing lamp bead. The spatial position information of this position in the layout space is the spatial position information of the missing lamp bead.

[0184] Step S8400: Associating the spatial position information of each segmentation point with the serial position identifier of each missing lamp bead in the physical layout of the light chain.

[0185] After determining the spatial position information of each missing lamp bead, its spatial position information can be associated with the serial position identifier of the corresponding order of the missing lamp bead and written into the physical layout of the light chain, which actually determines the missing lamp bead as an identified lamp bead.

[0186] After applying the clustering algorithm, this embodiment further combines the processing strategy of the missing lamp bead set to achieve efficient and accurate construction of the physical layout of the light chain. The clustering algorithm effectively eliminates outlier samples and purifies the data, while the systematic processing of the missing lamp bead set allows the spatial location information of the missing lamp beads to be inferred through the known identified lamp bead information in the absence of direct visual information. This method not only improves the accuracy and robustness of lamp bead recognition, but also optimizes the data processing process and speeds up the layout construction speed, thereby completing the complete construction of the physical layout of the light chain, and maintaining the continuity and integrity of the layout even when some lamp beads are invisible or cannot be analyzed. This demonstrates the technical advantages of the present application in the generation of the physical layout of the light chain, and provides a fast, accurate and user-friendly solution.

[0187] See also Figure 3 Another embodiment of the present application further provides a device for generating a physical layout of a light chain, which includes an image analysis module 5100, a layout creation module 5200, a confidence recognition module 5300, and an inference recognition module 5400, wherein the image analysis module 5100 is configured to identify the time domain color display sequence of each lamp bead in the light chain image based on multiple on-site images of the light chain, and the spatial position information in the layout space constructed according to the on-site image; the layout creation module 5200 is configured to create a physical layout of the light chain, which is used to describe the serial position identification of each lamp bead in the light chain and its relative position in the layout space. Corresponding spatial position information; the confidence recognition module 5300 is configured to indicate a lamp bead with a color change according to the time-domain color display sequence, determine its unique corresponding serial position identifier according to the time-domain color display sequence of the lamp bead, and associate the spatial position information of the lamp bead with the corresponding one in the physical layout of the light chain, so that the lamp bead becomes an identified lamp bead; the inference recognition module 5400 is configured to determine the serial position identifier and its spatial position information corresponding to the lamp bead to be identified in the physical layout of the light chain according to the serial position relationship and spatial position relationship between the lamp bead to be identified and the identified lamp bead in the physical layout of the light chain, so that the lamp bead to be identified becomes an identified lamp bead.

[0188] On the basis of any embodiment of the device of the present application, the physical layout generation device of the light chain of the present application further includes: an instruction construction module, configured to construct a plurality of color display playback instructions corresponding to a plurality of time sequences in the time domain color display sequence according to the serial position identification of each lamp bead in the serial structure information of the light chain and the corresponding time domain color display sequence; a color display playback module, configured to send the plurality of color display playback instructions to the light chain in accordance with the plurality of time sequences, so as to control each lamp bead in the light chain to display lights of corresponding colors in accordance with its corresponding time domain color display sequence; an image preview module, configured to obtain a preview video of the light chain through a camera unit, and extract a plurality of image frames in the preview video corresponding to the plurality of time sequences as a live image of the light chain.

[0189] Based on any embodiment of the device of the present application, the image analysis module 5100 includes: a space construction module, which is configured to construct a layout space corresponding to the physical space where the light chain is located based on the multiple on-site images; a position determination module, which is configured to map each lamp bead identified from the light chain image to the layout space to determine its corresponding spatial position information; a time domain analysis module, which is configured to determine the display colors corresponding to the lamp bead at each position along the time domain according to the light chain image in the multiple on-site images, and construct the display color of each lamp bead into a corresponding time domain color display sequence in sequence.

[0190] Based on any embodiment of the device of the present application, the space construction module includes: a space mapping module, which is configured to construct a three-dimensional layout space according to the depth information and plane information provided by the multiple on-site images, corresponding to the physical space where the light chain is located; a model projection module, which is configured to create a geometric model of the light chain carrier according to the image of the light chain carrier in the multiple on-site images, and map the geometric model to the layout space.

[0191] Based on any embodiment of the device of the present application, the inference identification module 5400 includes: a current determination module, which is configured to traverse the physical layout of the light chain in a serial direction to the current lamp bead to be identified, and determine at least two adjacent identified lamp beads that have a neighboring relationship with the current lamp bead to be identified in the serial direction; a range determination module, which is configured to determine the spatial addressing range of the current lamp bead to be identified based on the spatial position information of the at least two adjacent identified lamp beads and the average distance between the lamp beads of the light chain in the layout space; a color addressing module, which is configured to determine the spatial position information within the spatial addressing range in which the time domain color display sequence and the time domain color display sequence of the adjacent identified lamp beads satisfy a preset arrangement relationship; a current identification module, which is configured to set the spatial position information as the spatial position information associated with the serial position identifier of the current lamp bead to be identified in the physical layout of the light chain, so that the current lamp bead to be identified becomes an identified lamp bead.

[0192] Based on any embodiment of the device of the present application, the inference identification module 5400 includes: a spacing determination module, which is configured to determine the spacing between two adjacent lamp beads according to the spatial distance between each two adjacent identified lamp beads in the layout space and the number of lamp beads regularly arranged within the spatial distance, and determine the average spacing of the lamp beads according to the distance between each two lamp beads; a midpoint determination module, which is configured to determine the midpoint of the connecting line distance between the two adjacent identified lamp beads in the layout space according to the spatial position information of the two adjacent identified lamp beads; a circle drawing determination module, which is configured to draw a circle with the midpoint of the connecting line distance as the center and the average spacing of the lamp beads as the diameter, and determine the spatial addressing range corresponding to the only lamp bead to be identified between the two adjacent identified lamp beads.

[0193] Based on any embodiment of the device of the present application, the inference identification module 5400 includes: a spacing determination module, which is configured to determine the spacing between two adjacent lamp beads according to the spatial distance between each two adjacent identified lamp beads in the layout space and the number of lamp beads regularly arranged within the spatial distance, and determine the average spacing of the lamp beads according to the distance between each two lamp beads; a fixed-point processing module, which is configured to determine the extension point according to the slope corresponding to the connecting line between each three adjacent identified lamp beads in the layout space, with the edge identified lamp beads among the three identified lamp beads as the base point, and draw a line according to the slope and the average spacing of the lamp beads; a line drawing determination module, which is configured to draw a circle with the extension point as the center and the average spacing of the lamp beads as the diameter, to determine the spatial addressing range corresponding to the current lamp bead to be identified in the lateral direction of the edge identified lamp bead.

[0194] Based on any embodiment of the device of the present application, the inference identification module 5400 includes: a sample construction module, configured to construct a feature vector of all identified lamp beads as samples, the feature vector including the serial position identifier and spatial position information of the identified lamp beads in the physical layout of the light chain; a clustering investigation module, configured to cluster all the samples using a clustering algorithm, determine outlier samples, and delete the spatial position information of the identified lamp beads corresponding to the outlier samples from the physical layout of the light chain.

[0195] Based on any embodiment of the device of the present application, the inference identification module 5400 includes: a missing search module, which is configured to traverse the physical layout of the light chain in a serial direction, determine that at least one lamp bead to be identified with a continuous serial position identifier constitutes a missing lamp bead set, and determine the number of segments corresponding to the number of missing lamp beads in the missing lamp bead set; a segment determination module, which is configured to determine the missing lamp bead segment in the layout space based on the spatial position information of the identified lamp beads on both sides of the missing lamp bead in the serial direction; a segmentation and positioning module, which is configured to equally divide the lamp bead missing segment according to the number of segments, and determine the spatial position information corresponding to each segmentation point; a missing completion module, which is configured to associate the spatial position information of each segmentation point with the serial position identifier of each missing lamp bead in the physical layout of the light chain.

[0196] Based on any embodiment of this application, please refer to Figure 4 Another embodiment of the present application further provides a computer device, which can be used as a controller in an atmosphere light device, such as Figure 4 As shown, a schematic diagram of the internal structure of a computer device. The computer device includes a processor, a computer-readable storage medium, a memory, and a network interface connected via a system bus. Among them, the computer-readable storage medium of the computer device stores an operating system, a database, and a computer program that encapsulates computer-readable instructions. The database may store a control information sequence. When the computer-readable instructions are executed by the processor, the processor may implement a method for generating a physical layout of a light chain. The processor of the computer device is used to provide computing and control capabilities to support the operation of the entire computer device. The memory of the computer device may store computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor may execute the method for generating a physical layout of a light chain 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 Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0197] In this embodiment, the processor is used to execute Figure 3 The memory stores the program code and various data required to execute the above modules or submodules. The network interface is used to transmit data between user terminals or servers. The memory in this embodiment stores the program code and data required to execute all modules / submodules in the light chain physical layout generation device of this application, and the server can call the program code and data of the server to execute the functions of all submodules.

[0198] The present application also provides a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the method for generating the physical layout of the light chain described in any embodiment of the present application.

[0199] The present application also provides a computer program product, including a computer program / instruction, which, when executed by one or more processors, implements the steps of the method for generating a physical layout of a light chain described in any embodiment of the present application.

[0200] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments of the present application can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a computer-readable storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0201] The above description is only a partial implementation method of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

[0202] To sum up, the technical solution of the present application, through its innovative technical features and organic combination, not only solves the problems of insufficient precision, low efficiency, poor adaptability and poor user experience in traditional technologies, but also provides users with a more efficient, accurate, flexible and easy-to-use method for generating the physical layout of light chains, demonstrating significant technical advantages and broad application prospects.

Claims

1. A method for generating the physical layout of a light chain, It is characterized in that include: Based on multiple on-site images of the light chain, identifying the time domain color sequence of each lamp bead in the light chain image and the spatial position information in the layout space constructed according to the on-site images; Creating a physical layout of a light chain, which is used to describe the serial position identifiers of each lamp bead of the light chain in the light chain and the corresponding spatial position information in the layout space; For a lamp bead whose color has changed according to the time domain color display sequence, determine its unique corresponding serial position identifier according to the time domain color display sequence of the lamp bead, and associate the spatial position information of the lamp bead in the physical layout of the light chain accordingly, so that the lamp bead becomes an identified lamp bead; According to the serial position relationship and spatial position relationship between the lamp bead to be identified and the identified lamp bead in the physical layout of the lamp chain, in the physical layout of the lamp chain, the serial position identifier and spatial position information corresponding to the lamp bead to be identified are determined, so that the lamp bead to be identified becomes an identified lamp bead, including: Traversing the physical layout of the lamp chain in a serial direction to the current lamp bead to be identified, and determining at least two adjacent identified lamp beads that are adjacent to the current lamp bead to be identified in the serial direction; Determine the spatial addressing range of the lamp bead to be currently identified according to the spatial position information of the at least two adjacent identified lamp beads and the average lamp bead spacing between the lamp beads of the lamp chain in the layout space; Determine the spatial position information in which the time-domain color display sequence and the time-domain color display sequence of the adjacent identified lamp beads satisfy a preset arrangement relationship within the spatial addressing range; The spatial position information is set as the spatial position information associated with the serial position identifier of the lamp bead currently to be identified in the physical layout of the lamp chain, so that the lamp bead currently to be identified becomes an identified lamp bead.

2. The method for generating a physical layout of a light chain according to claim 1, It is characterized in that Based on multiple on-site images of the light chain, identifying the time domain color sequence of each lamp bead in the light chain image, and before the spatial position information in the layout space constructed according to the on-site images, including: According to the serial position identifier of each lamp bead in the serial structure information of the lamp chain and the corresponding time domain color display sequence, construct a plurality of color display playback instructions corresponding to a plurality of time sequences in the time domain color display sequence; Sending the plurality of color display instructions to the light chain in accordance with the plurality of time sequences to control each lamp bead in the light chain to display lights of corresponding colors in accordance with its corresponding time domain color display sequence; A preview video of the light chain is obtained through a camera unit, and multiple image frames in the preview video are extracted corresponding to the multiple time sequences as live images of the light chain.

3. The method for generating a physical layout of a light chain according to claim 1, It is characterized in that Based on multiple on-site images of the light chain, the time domain color sequence of each lamp bead in the light chain image and the spatial position information in the layout space constructed according to the on-site images are identified, including: Constructing a layout space corresponding to the physical space where the light chain is located based on the multiple on-site images; Mapping each lamp bead identified from the lamp chain image to the layout space to determine its corresponding spatial position information; According to the light chain images in the multiple on-site images, the display colors corresponding to the lamp beads at each position are determined along the time domain, and the display color of each lamp bead is sequentially constructed into a corresponding time domain color display sequence.

4. The method for generating a physical layout of a light chain according to claim 3, It is characterized in that Constructing a layout space corresponding to the physical space where the light chain is located based on the multiple on-site images, including: Constructing a three-dimensional layout space according to the depth information and plane information provided by the multiple scene images, so as to correspond to the physical space where the light chain is located; A geometric model of the light chain carrier is created according to the images of the light chain carrier in the multiple on-site images, and the geometric model is mapped to the layout space.

5. The method for generating a physical layout of a light chain according to claim 1, It is characterized in that Determining the spatial addressing range of the current lamp bead to be identified according to the spatial position information of the at least two adjacent identified lamp beads and the average lamp bead spacing between the identified lamp beads includes: Determine the spacing between two adjacent lamp beads according to the spatial distance between each two adjacent identified lamp beads in the layout space and the number of lamp beads regularly arranged within the spatial distance, and determine the average spacing between the lamp beads according to the distance between each two lamp beads; Determine the midpoint of the distance between the two adjacent identified lamp beads in the layout space according to the spatial position information of the two adjacent identified lamp beads; A circle is drawn with the midpoint of the connecting line distance as the center and the average spacing between the lamp beads as the diameter to determine the spatial addressing range corresponding to the only lamp bead currently to be identified between the two adjacent identified lamp beads.

6. The method for generating a physical layout of a light chain according to claim 1, It is characterized in that Determining the spatial addressing range of the current lamp bead to be identified according to the spatial position information of the at least two adjacent identified lamp beads and the average lamp bead spacing between the identified lamp beads includes: Determine the spacing between two adjacent lamp beads according to the spatial distance between each two adjacent identified lamp beads in the layout space and the number of lamp beads regularly arranged within the spatial distance, and determine the average spacing between the lamp beads according to the distance between each two lamp beads; According to the slope corresponding to the line connecting every three adjacent identified lamp beads in the layout space, the edge identified lamp beads among the three identified lamp beads are used as base points, and a line is drawn according to the slope and the average spacing between the lamp beads to determine the extension point; A circle is drawn with the extension point as the center and the average spacing between the lamp beads as the diameter to determine the spatial addressing range corresponding to the lamp beads to be identified currently in the lateral direction of the edge-identified lamp beads.

7. The method for generating a physical layout of a light chain according to any one of claims 1 to 6, It is characterized in that According to the serial position relationship and spatial position relationship between the lamp bead to be identified and the identified lamp bead in the physical layout of the lamp chain, in the physical layout of the lamp chain, the serial position identifier and spatial position information corresponding to the lamp bead to be identified are determined, so that the lamp bead to be identified becomes an identified lamp bead, including: Constructing feature vectors of all identified lamp beads as samples, wherein the feature vectors include serial position identifiers and spatial position information of the identified lamp beads in the physical layout of the lamp chain; A clustering algorithm is used to cluster all the samples, outlier samples are determined, and the spatial position information of the identified lamp beads corresponding to the outlier samples is deleted from the physical layout of the lamp chain.

8. The method for generating a physical layout of a light chain according to claim 7, It is characterized in that Clustering all the samples using a clustering algorithm to determine outlier samples, and deleting the spatial position information of the identified lamp beads corresponding to the outlier samples from the physical layout of the light chain, including: Traversing the physical layout of the lamp chain in a serial direction order, determining that at least one to-be-identified lamp bead with a continuous serial position identifier constitutes a missing lamp bead set, and determining the number of segments corresponding to the number of missing lamp beads in the missing lamp bead set; Determine the missing lamp bead segment in the layout space according to the spatial position information of the identified lamp beads on both sides of the missing lamp bead in the serial direction; Divide the missing segments of the lamp beads equally according to the number of segments, and determine the spatial position information corresponding to each segmentation point; The spatial position information of each segmentation point is associated with the serial position identifier of each missing lamp bead in the physical layout of the lamp chain.

9. A device for generating a physical layout of a light chain, It is characterized in that include: An image analysis module is configured to identify the time domain color sequence of each lamp bead in the lamp chain image based on a plurality of on-site images of the lamp chain, and the spatial position information in the layout space constructed according to the on-site images; A layout creation module, configured to create a physical layout of a light chain, for describing the serial position identifiers of each lamp bead of the light chain in the light chain and the corresponding spatial position information thereof in the layout space; A confidence identification module is configured to indicate a lamp bead with a color change according to the time domain color display sequence, determine its unique corresponding serial position identifier according to the time domain color display sequence of the lamp bead, and associate the spatial position information of the lamp bead in the physical layout of the lamp chain to make the lamp bead an identified lamp bead; An inference recognition module is configured to determine the serial position identifier and spatial position information corresponding to the lamp bead to be recognized in the physical layout of the lamp chain according to the serial position relationship and spatial position relationship between the lamp bead to be recognized and the recognized lamp bead in the physical layout of the lamp chain, so that the lamp bead to be recognized becomes the recognized lamp bead; The inference and identification module comprises: A current determination module is configured to traverse the physical layout of the lamp chain to the current lamp bead to be identified in a serial direction order, and determine at least two adjacent identified lamp beads that have a neighboring relationship with the current lamp bead to be identified in the serial direction; A range determination module, configured to determine a spatial addressing range of a current lamp bead to be identified based on the spatial position information of the at least two adjacent identified lamp beads and an average distance between the lamp beads of the lamp chain in the layout space; A color addressing module, configured to determine spatial position information in which a time-domain color display sequence and a time-domain color display sequence of adjacent identified lamp beads satisfy a preset arrangement relationship within the spatial addressing range; The current identification module is configured to set the spatial position information as the spatial position information associated with the serial position identifier of the lamp bead currently to be identified in the physical layout of the lamp chain, so that the lamp bead currently to be identified becomes an identified lamp bead.

10. A computer device comprising a central processing unit and a memory, It is characterized in that The central processing unit is used to call and run the computer program stored in the memory to execute the steps of the method according to any one of claims 1 to 8.

11. A computer program product comprising a computer program or computer instructions, It is characterized in that When the computer program or computer instruction is called and executed by a central processing unit, the steps of the method according to any one of claims 1 to 8 are executed.