Lamplight equipment wiring method and device

By using the graphical user interface and target recognition model of the terminal device, the hierarchical sorting and optimal wiring path of the lighting equipment were realized, which solved the problem of low wiring accuracy of the lighting equipment and improved wiring efficiency and accuracy.

CN121807145APending Publication Date: 2026-04-07SHENZHEN GEYUAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-21
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

During the wiring process of existing lighting equipment, operators need to repeatedly switch their line of sight between the drawings and the equipment, resulting in a high wiring error rate. This is especially true when there are many light sources and their layout is dense, making it difficult to ensure the accuracy of the wiring.

Method used

The terminal device provides a graphical user interface, uses a target recognition model to obtain spatial information of the light source, determines the global center and performs hierarchical sorting, generates the optimal wiring path, and overlays wiring indicator labels on the graphical user interface to guide operators in wiring.

Benefits of technology

It improves the accuracy and efficiency of wiring for lighting equipment, reduces errors caused by switching perspectives, and eliminates the need for operators to switch their gaze back and forth between the equipment and the drawings, thus clarifying the correspondence between indicator light sources and wiring interfaces.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121807145A_ABST
    Figure CN121807145A_ABST
Patent Text Reader

Abstract

The invention provides a wiring method and device for light equipment, and the method comprises the steps: obtaining an initial image of to-be-wired light equipment, and determining the spatial information of each light source in the initial image through a target recognition model; according to the spatial information of each light source, determining a global center of the to-be-wired lighting equipment, and according to the global center, carrying out layered sorting on all the light sources; determining an optimal wiring path according to a hierarchical sorting result of all the light sources, and sequentially selecting a current target light source to be wired according to the optimal wiring path; and providing a real image of the target light source and the target wiring interface in the graphical user interface, and overlapping and providing a wiring indication identifier for indicating the corresponding relationship between the target light source and the target wiring interface on the real image. By adopting the wiring method and device of the lighting equipment, the wiring accuracy of the lighting equipment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of lighting device design and manufacturing, in particular to a wiring method and device of a lighting device. BACKGROUND

[0002] In the industrial production process, in order to improve production efficiency and create a comfortable working environment for employees, enterprises usually install multiple lighting devices in the factory area to provide stable lighting support for various production activities. Such industrial lighting devices are mostly equipped with multiple independent light sources, and the illumination angle, luminous brightness and power parameters of these light sources need to be accurately controlled according to actual production needs, and this control process needs to be realized through a special controller. In the wiring link between the controller and the light source, the operator often needs to complete the wiring operation according to the guidance of paper or electronic drawings.

[0003] However, the existing wiring method has obvious limitations: the operator needs to fully understand the content of the drawing first, and needs to repeatedly switch the line of sight between the drawing and the equipment during the wiring process. If the number of light sources is large and the layout is dense, it is easy to cause wiring errors due to frequent switching of the line of sight and untimely information checking, which greatly reduces the accuracy of the lighting device wiring. SUMMARY

[0004] Therefore, the purpose of the present application is to provide a wiring method and device of a lighting device to overcome at least one of the above-mentioned defects.

[0005] In a first aspect, the embodiments of the present application provide a wiring method of a lighting device, which provides a graphical user interface through a terminal device, including: obtaining an initial image of a lighting device to be wired, and determining the spatial information of each light source in the initial image by using a target recognition model; determining a global center of the lighting device to be wired according to the spatial information of each light source, and performing hierarchical sorting on all light sources according to the global center; determining an optimal wiring path according to the hierarchical sorting result of all light sources, and sequentially selecting a target light source to be wired according to the optimal wiring path; providing a real image of the target light source and a target wiring interface in the graphical user interface, and superimposing a wiring indication mark for indicating the corresponding relationship between the target light source and the target wiring interface on the real image.

[0006] Optionally, the hierarchical sorting of all light sources according to the global center includes: determining the distance between the center point of each light source and the global center; performing clustering analysis on the distance by using a clustering algorithm to determine the level of each light source; and sorting all light sources according to the level and the polar angle of each light source relative to the global center to determine the hierarchical sorting result of each light source.

[0007] Optionally, the method further comprises: determining a polar angle difference between two target light sources adjacent to each other in the same layer; and determining a light source mode corresponding to the two target light sources to perform wiring according to the light source mode when the polar angle difference meets a set angle requirement.

[0008] Optionally, whether the polar angle difference meets the set angle requirement is determined by: determining an average polar angle difference of the layer in which the two target light sources are located; and comparing the polar angle difference with the average polar angle difference to determine whether the set angle requirement is met according to a comparison result.

[0009] Optionally, the optimal wiring path is determined according to the hierarchical sorting result of all light sources, comprising: determining a starting position of the wiring operation and a moving distance of each wiring operation, and determining the optimal wiring path for completing wiring of all light sources starting from the starting position with the minimum total moving distance as the target.

[0010] Optionally, before the optimal wiring path is determined according to the hierarchical sorting result of all light sources, the method further comprises: obtaining wiring tasks sent by different functional modules, performing electrical rule and conflict detection on the wiring tasks; and after passing the electrical rule and conflict detection, generating a set of wiring instructions corresponding to the wiring tasks to determine the wiring operation according to the set of wiring instructions.

[0011] Optionally, the method further comprises: in response to a wiring completion confirmation operation for a target light source, controlling the power supply to supply power to a wiring interface corresponding to the target light source; and determining whether a wiring result of the target light source meets a quality control requirement.

[0012] Optionally, the method further comprises: constructing a three-dimensional model of different lighting devices, and generating a composite image of different lighting devices under different lighting conditions in a virtual environment; generating a training set according to the composite image and a real image of different lighting devices, and training a target recognition model using the training set.

[0013] Optionally, the global center of the light source to be wired is determined according to the spatial information of each light source, comprising: for each light source, determining a center point position of the light source according to the spatial information of the light source; and using a least squares method to fit to obtain the global center according to the center point positions of all light sources.

[0014] In a second aspect, the embodiments of the present application also provide a wiring device of a lighting device, which provides a graphical user interface through a terminal device, and the device comprises: a recognition module configured to obtain an initial image of a light source to be wired, and determine spatial information of each light source in the initial image using a target recognition model; a sorting module configured to determine a global center of the light source to be wired according to the spatial information of each light source, and perform hierarchical sorting on all light sources according to the global center. a planning module configured to determine an optimal wiring path according to the hierarchical sorting result of all light sources, and sequentially select a target light source to be wired according to the optimal wiring path; an identification module configured to provide a real image of the target light source and the target wiring interface in the graphical user interface, and superimpose a wiring indication mark on the real image to indicate the corresponding relationship between the target light source and the target wiring interface.

[0015] The embodiments of the present application have the following beneficial effects: The wiring method and device of the lighting equipment provided by the embodiments of the present application can sort each light source according to the global center of the lighting equipment, and then determine an optimal wiring path, which can improve the wiring efficiency and accuracy. Meanwhile, the operator can directly see the real object and the corresponding relationship between the light source and the wiring interface through the graphical user interface. Each light source is wired based on augmented reality, without switching the line of sight between the equipment and the drawing. The corresponding relationship between the target light source and the target wiring interface is explicitly indicated on the graphical user interface, which further improves the wiring accuracy. Compared with the prior art, the problem of low accuracy of the lighting equipment wiring is solved.

[0016] In order to make the above objectives, features and advantages of the present application more apparent, the following will describe the preferred embodiments in detail, and the accompanying drawings will be described as follows. BRIEF DESCRIPTION OF DRAWINGS

[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed in the embodiments. It should be understood that the following drawings only show some embodiments of the present application, and therefore should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can also be obtained without creative labor.

[0018] Figure 1 A flowchart of the wiring method of the lighting equipment provided by the embodiments of the present application is shown; Figure 2 A flowchart of the hierarchical sorting step of the light source provided by the embodiments of the present application is shown; Figure 3 A structural schematic diagram of the wiring device of the lighting equipment provided by the embodiments of the present application is shown; Figure 4 A structural schematic diagram of the electronic device provided by the embodiments of the present application is shown. DETAILED DESCRIPTION

[0019] In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. The components of the embodiments of the present application described and shown in the drawings can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the claimed present application, but only represents selected embodiments of the present application. Based on the embodiments of the present application, every other embodiment obtained by a person skilled in the art without creative work belongs to the scope of protection of the present application.

[0020] In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. The components of the embodiments of the present application described and shown in the drawings can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the claimed present application, but only represents selected embodiments of the present application. Based on the embodiments of the present application, every other embodiment obtained by a person skilled in the art without creative work belongs to the scope of protection of the present application.

[0021] Please refer to Figure 1 , Figure 1 The flow chart of the wiring method of the lighting device provided by the embodiments of the present application is shown in FIG. 1. As shown in FIG. 1, the wiring method of the lighting device provided by the embodiments of the present application comprises the following steps. Figure 1 Step S101, obtaining an initial image of a lighting device to be wired, and determining the spatial information of each light source in the initial image by using a target recognition model.

[0022] The lighting device to be wired can refer to a lighting device in a factory, for example: the lighting device to be wired can be a ring-shaped lamp or a multi-axis lighting system. The lighting device to be wired comprises a plurality of light sources, each of which can independently control the light source parameters such as brightness and power. For example, the lighting device to be wired is commonly used in PCB detection, part measurement and other scenes. The light source can be an LED light source. The diameter of the lighting device to be wired is usually between 0.5 meters and 2 meters.

[0023] In an embodiment, the terminal device can be a mobile terminal device, such as an AR device with augmented reality function or a tablet computer. A camera is provided on the terminal device. An operator can use the camera on the terminal device to take an initial image of the lighting device to be wired which is not powered on and not wired. The initial image can be an RGB image.

[0024] In an embodiment, the initial image can also be an image pre-stored in a server. An operator can scan a two-dimensional code on the lighting device to be wired by using the terminal device to obtain the initial image from the server.

[0025] ​After obtaining the initial image of the to-be-wired lighting device, the initial image can be input into the trained target recognition model to determine the spatial information of each light source in the initial image by using the trained target recognition model.

[0026] The target recognition model can be a target detection and instance segmentation model based on deep learning. As an example, the target recognition model can be an R-CNN model or a YOLOv8 model.

[0027] In an embodiment, the target recognition model needs to be trained before determining the spatial information of each light source in the initial image by using the target recognition model.

[0028] As an example, a three-dimensional model of different lighting devices can be constructed, and a synthetic image of the to-be-wired lighting device under different lighting conditions can be generated in a virtual environment. Then, a training set can be generated according to the synthetic image and real images of different lighting devices, and the target recognition model can be trained by using the training set.

[0029] For example, a plurality of different lighting devices are selected, and the plurality of different lighting devices include the to-be-wired lighting device. For each lighting device, a three-dimensional model of the lighting device is constructed, and the three-dimensional model is rendered in a virtual environment under different light intensities, different light angles, and different viewing angles to generate a first number of synthetic images with precise mask annotations. At the same time, a second number of real images of each lighting device are obtained, and a training set is formed by the first number of synthetic images and the second number of real images. The target recognition model is trained by using the training set, so that the target recognition model can effectively cope with complex situations such as light changes and light occlusions in a real environment, and realize high-precision recognition ability of the target recognition model under low annotation cost. The ratio of the first number to the second number is greater than a set threshold, such as greater than 100.

[0030] In step S102, the global center of the to-be-wired lighting device is determined according to the spatial information of each light source, and all light sources are sorted by layers according to the global center.

[0031] The spatial information is used to determine the center point position of the light source, and the spatial information includes but is not limited to a pixel-level mask and a bounding box.

[0032] Each light source in the to-be-wired lighting device has its own center, and the global center can refer to the geometric center corresponding to a plurality of light sources in the to-be-wired lighting device.

[0033] In an embodiment, in determining the global center of the light device to be wired, the center point position of each light source is determined according to the spatial information of the light source, for example, the geometric center of the light source is determined according to the mask and the bounding box of the light source, and the geometric center is the center point position of the light source. Then, the global center is obtained by using least square fitting according to the center point positions of all light sources.

[0034] After the global center is determined, the light sources can be sorted by layers according to the global center of the light device to be wired and the center point positions of the light sources.

[0035] The process of sorting the light sources by layers will be described below with reference to Figure 2 .

[0036] Figure 2 A flow chart of the step of sorting the light sources by layers provided by the embodiments of the present application is shown in Figure 2 , which includes the following steps. Step S201, determining the distance between the center point of each light source and the global center.

[0037] The Euclidean distance between the center point of each light source and the global center of the light device to be wired is calculated.

[0038] Step S202, using a clustering algorithm to perform clustering analysis on the distances to determine the level of each light source.

[0039] For example, an unsupervised clustering algorithm (such as K-Means) is used to perform clustering analysis on the Euclidean distances between the center points of all light sources and the global center of the light device to be wired, and all light sources are divided into three layers: inner, middle and outer.

[0040] Step S203, sorting all light sources according to the level and the polar angle of each light source relative to the global center to determine the sorting result of each light source by layers.

[0041] For the light sources of each level, the center point coordinates of the light sources are converted into polar coordinates in a polar coordinate system, which are represented as (r, θ). Then, each light source is sorted in the order of increasing polar angle in the clockwise direction. Finally, the light sources of different levels are sorted in a preset order to generate a globally unique layer sorting number, which is the sorting result of the light source by layers, for example, the layer sorting number 2-05 indicates the fifth light source in the second layer.

[0042] After the sorting result by layers is determined, a mapping relationship between the layer sorting number of each light source and the image coordinates in the initial image can be established to complete the digital registration of the light device to be wired.

[0043] In an embodiment, all light sources in the light device to be wired are not necessarily uniformly arranged, and there is a non-ideal layout, i.e., the light sources in the light device have different light source modes, including but not limited to: single light source mode, double light source mode, in which two adjacent light sources belong to the same logical unit, and the light source with double light source mode needs to be identified to avoid wiring errors.

[0044] For example: two light sources connected in each level are selected as target light sources in turn, for two target light sources adjacent in the same level, the polar angle difference (difference value of polar angle) between the two target light sources is determined, and whether the polar angle difference meets the set requirement is determined. When the polar angle difference meets the set angle requirement, the light source mode corresponding to the two target light sources is determined, and the wiring is performed according to the light source mode.

[0045] When determining whether the polar angle difference meets the set requirement, the average polar angle difference of the level where the two target light sources are located can be determined first, and the polar angle difference of the two target light sources is compared with the average polar angle difference. If the ratio of the polar angle difference of the two target light sources to the average polar angle difference is greater than a first set ratio (such as 0.1), i.e., the polar angle difference of the two target light sources is much smaller than the average polar angle difference, it is determined that the two target light sources belong to the double light mode, and the two target light sources are treated as a whole unit in subsequent wiring; if the ratio of the polar angle difference of the two target light sources to the average polar angle difference is less than the first set ratio, it is determined that the two target light sources do not belong to the double light mode.

[0046] Step S103: determining an optimal wiring path according to the hierarchical sorting result of all light sources, and selecting target light sources to be wired in turn according to the optimal wiring path.

[0047] The optimal wiring path is used to improve the accuracy and efficiency of the wiring operation, reduce the invalid operation and search time of the operator, and reduce the cognitive load and fatigue in the operation process.

[0048] In an embodiment, before determining the optimal wiring path according to the hierarchical sorting result of all light sources, a task package can be obtained from the outside, a wiring instruction set is generated according to the task in the task package, and the wiring operation is determined according to the wiring instruction set.

[0049] For example, the task package includes wiring tasks of different functional modules, all wiring tasks are stored in a wiring task list, and the hierarchical sorting number of the light source to be processed is recorded for each wiring task. The wiring tasks of different functional modules are obtained from the task package, and electrical rules and conflict detection are performed on the wiring tasks to determine whether there is a logical conflict between the wiring tasks or whether the electrical rules are violated.

[0050] For example, one wiring task is that functional module A (such as overall lighting) requires turning on light source 2-05, and another wiring task is that functional module B (such as a defect enhancement module or a timing control module) requires turning off light source 2-05, which indicates that there is a logical conflict between the two wiring tasks, or the total power of the light sources under the same interface cannot exceed the rated value, but the total power of the light sources under the interface corresponding to multiple wiring tasks exceeds the rated value, which indicates that the electrical rule is violated. After detecting the logical conflict or the violation of the electrical rule, error information is generated according to the content of the wiring task in conflict and the electrical rule violated, and the error information is reported to the developer for modification of the wiring task, so as to avoid the occurrence of functional errors.

[0051] Meanwhile, after the electrical rule and conflict detection, the wiring tasks of the functional modules are converted into wiring instructions. The form of the wiring instruction can be (connect, hierarchical ordering number of the light source, interface number), or (disconnect, hierarchical ordering number of the light source, interface number). The interface number can refer to the interface number of the controller interface to which the light source corresponding to the hierarchical ordering number is connected.

[0052] After the electrical rule and conflict detection, the wiring instructions corresponding to each wiring task are generated, and a plurality of wiring instructions constitute a wiring instruction set, so as to determine the wiring operation according to the wiring instruction set. The wiring instruction can be understood as an operation instruction, and the wiring instruction is used to indicate the operation type and the operation object.

[0053] In an embodiment, when determining the optimal wiring path, the origin position of the wiring operation and the moving distance of each wiring operation can be determined. Starting from the origin position, the optimal wiring path for completing all light source wiring is determined with the goal of minimizing the total moving distance.

[0054] For example, when wiring, the operator needs to move around the light equipment to be wired, and the arm needs to move between different levels of the light equipment to be wired. Therefore, the wiring efficiency and accuracy can be improved by planning an optimal wiring path. According to the wiring instruction set, the correspondence between the light source to be wired and the wiring interface of the controller is determined. According to the center point position of each light source in the initial image and the position of the wiring interface, the first movement distance of each wiring operation and the second movement distance between different wiring operations are determined, wherein the first movement distance and the second movement distance each include at least one of the arm movement distance and the foot movement distance. Then, each light source to be wired is regarded as a node, and the starting position of the operator or the first interface position is regarded as the origin position. A path planning algorithm (such as the nearest neighbor greedy algorithm) is used to determine the operation sequence with the shortest total path for completing all wiring instructions based on the first movement distance, the second movement distance, and the hierarchical sorting result from the origin position. The operation sequence with the shortest total path is the optimal wiring path.

[0055] The optimal wiring path can reduce the physical exertion of the operator, shorten the operation time, and reduce the fatigue of the operator, thereby improving the accuracy of the wiring operation and reducing human errors. For example, on the one hand, the hierarchical sorting number of the light source is set in a clockwise direction, so that the optimal wiring path determined based on the hierarchical sorting number can make the wiring operation of the operator more smooth, reducing the search time of the light source. On the other hand, the polar coordinates naturally reflect the physical adjacency between the light sources, and the path planning algorithm determines the optimal wiring path based on the polar coordinates, so that the optimal wiring path is more consistent with the hierarchical light source arrangement in the light equipment to be wired. Thirdly, the hierarchical sorting number corresponds to the arrangement position of the light source, so that when wiring errors occur, the light source can be accurately positioned, reducing the time required for error checking.

[0056] In step S104, the real image of the target light source and the target wiring interface is provided in the graphical user interface, and the wiring indication mark indicating the correspondence between the target light source and the target wiring interface is superimposed on the real image.

[0057] The terminal device has a function of simultaneous localization and mapping (SLAM) or image marker tracking. A real factory environment can be displayed on a graphical user interface of the terminal device. An operator can observe a real image of a device to be wired through the graphical user interface. In order to help the operator directly observe a target light source and a target wiring interface that need to be wired at present, a wiring instruction mark is displayed on the graphical user interface. The wiring instruction mark can mark the target light source and the target wiring interface. For example, the target light source and the target wiring interface are marked by a red circle on the graphical user interface, and / or a three-dimensional instruction arrow is drawn from the target light source to the target wiring interface. The real image can refer to a real-time dynamic image in a real scene, that is, a live image.

[0058] By combining the real image with the wiring instruction mark, the intuitiveness of the operation is improved. The operator's line of sight does not need to leave the work object. The problem of distraction caused by switching between the device and the drawing in the traditional way is eliminated. The probability of wiring error is reduced.

[0059] Meanwhile, in order to facilitate the operator to understand the function module corresponding to the target wiring interface, the name of the function module can also be displayed on the graphical user interface. The target wiring interface can refer to the port of the physical interface of the controller.

[0060] In an embodiment, assuming that there are ten light sources to be wired, the lighting device wiring system selects the first light source in the optimal wiring path as the target light source, selects the wiring interface of the controller corresponding to the first light source as the target wiring interface, and displays the target light source, the target wiring interface, and a "wiring completion" control on the graphical user interface. After the operator completes the wiring for the target light source, a wiring completion confirmation operation can be performed. The wiring completion confirmation operation can be clicking the "wiring completion" control to notify the lighting device wiring system to select a new target light source. After the lighting device wiring system receives the wiring completion message, the second light source in the optimal wiring path is selected as the target light source. The newly selected target light source and the target wiring interface are marked on the graphical user interface. This is repeated until the wiring of all light sources is completed.

[0061] In an embodiment, in order to timely detect whether the wiring is successful, quality detection can be performed immediately after the operator performs the wiring completion confirmation operation each time.

[0062] For example: In response to the confirmation operation of the wiring completion for the target light source, the control power supply supplies power to the wiring interface corresponding to the target light source, and determines whether the wiring result of the target light source meets the quality control requirements. If it is determined that the target light source is lit and / or the light source meets the lighting parameter requirements (such as brightness requirements), then it is determined that the quality control requirements are met; if it is determined that the target light source is not lit and / or the light source does not meet the lighting parameter requirements, then it is determined that the quality control requirements are not met.

[0063] If quality control requirements are not met, a warning message will be provided on the graphical user interface to help operators correct wiring errors in a timely manner. If quality control requirements are met, the next light source will be selected as the target light source. After completing the wiring matching of the lighting equipment, the wiring operation of subsequent lighting equipment will continue.

[0064] Timely quality control enables immediate detection and location of errors. Once an error is reported, operators can immediately correct it. Compared to completing all light source wiring before error detection, the scope of troubleshooting is greatly reduced, significantly lowering the time cost of troubleshooting and repair.

[0065] The wiring method for lighting equipment provided in this application can sort each light source in layers according to the global center of the lighting equipment, thereby determining the optimal wiring path. The optimal wiring path can improve wiring efficiency and accuracy. At the same time, the operator can directly see the physical objects and corresponding relationships between the light sources and wiring interfaces through the graphical user interface. The wiring of each light source is completed on the basis of augmented reality, eliminating the need to switch between the equipment and the drawings. The graphical user interface clearly indicates the correspondence between the target light source and the target wiring interface, further improving wiring accuracy and solving the problem of low wiring accuracy of lighting equipment.

[0066] Based on the same inventive concept, this application also provides a wiring device for a lighting device corresponding to the wiring method of the lighting device. Since the principle of the device in this application is similar to the wiring method of the lighting device described above in this application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be described again.

[0067] Please see Figure 3 , Figure 3 This is a schematic diagram of the wiring device for a lighting equipment provided in an embodiment of this application. Figure 3 As shown, the wiring device 300 of the lighting equipment provides a graphical user interface via a terminal device and includes: The recognition module 301 is used to acquire an initial image of the lighting device to be connected and to use a target recognition model to determine the spatial information of each light source in the initial image. The sorting module 302 is configured to determine a global center of the light equipment to be wired according to the spatial information of each light source, and sort all the light sources in layers according to the global center. The planning module 303 is configured to determine an optimal wiring path according to the sorting result of all the light sources, and select a target light source to be wired currently according to the optimal wiring path. The identification module 304 is configured to provide a real image of the target light source and a target wiring interface in a graphical user interface, and superimpose a wiring indication mark for indicating the corresponding relationship between the target light source and the target wiring interface on the real image.

[0068] Please refer to Figure 4 , Figure 4 The electronic device 400 includes a processor 410, a memory 420 and a bus 430. Figure 4 The memory 420 stores machine readable instructions executable by the processor 410.

[0069] When the electronic device 400 is running, the processor 410 and the memory 420 communicate through the bus 430, and the machine readable instructions executed by the processor 410 can perform the steps of the wiring method of the light equipment in the method embodiment as described above. Figure 1 The specific implementation can be referred to the method embodiment, and will not be described here.

[0070] The embodiment of the present application further provides a computer readable storage medium, which stores a computer program, and the computer program can perform the steps of the wiring matching method of the light equipment in the method embodiment as described above when the computer program is run by a processor. Figure 1 The specific implementation can be referred to the method embodiment, and will not be described here.

[0071] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system, device and unit described above can refer to the corresponding process in the foregoing method embodiment, and will not be described here.

[0072] In several embodiments provided in the present application, it should be understood that the disclosed system, device and method can be implemented in other manners. The described device embodiments are merely schematic, for example, the division of the units is only a logical function division, and there can be another division manner in actual implementation, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections between different units, or the among different units, can be indirect couplings or communication connections through some interfaces, devices or units, and can be in electrical, mechanical or other forms.

[0073] The units described as separated components can or can not be physically separated, and the components displayed as units can or can not be physical units, i.e., can be located in one place, or can be distributed on a plurality of network units. In actual implementation, some or all of the units can be selected according to actual needs to achieve the purposes of the embodiments of the present application.

[0074] In addition, each functional unit in the embodiments of the present application can be integrated in one processing unit, or each unit can exist physically as a separate unit, or two or more units can be integrated in one unit.

[0075] If the functions are implemented in the form of software function units and sold or used as independent products, they can be stored in a non-volatile computer readable storage medium executable by a processor. Based on this understanding, the technical solutions of the present application essentially or the part that contributes to the prior art or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.

[0076] Finally, it should be noted that the above-described embodiments are merely specific embodiments of the present application, which are used to illustrate the technical solutions of the present application, but not to limit the same. The protection scope of the present application is not limited thereto. Although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those skilled in the art that any skilled person in the art can still modify or easily think of changes to the technical solutions recorded in the foregoing embodiments, or make equivalent replacements to some of the technical features, within the technical scope disclosed by the present application. The modifications, changes or replacements do not make the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A wiring method for a lighting device, characterized in that, Providing a graphical user interface via a terminal device includes: Acquire an initial image of the lighting equipment to be connected, and use a target recognition model to determine the spatial information of each light source in the initial image; Based on the spatial information of each light source, determine the global center of the lighting equipment to be connected, and sort all light sources hierarchically according to the global center; The optimal wiring path is determined according to the hierarchical sorting results of all light sources, and the target light source to be wired is selected sequentially according to the optimal wiring path. The graphical user interface provides a real image of the target light source and the target wiring interface, and overlays a wiring indication mark on the real image to indicate the correspondence between the target light source and the target wiring interface.

2. The method according to claim 1, characterized in that, The step of hierarchically sorting all light sources according to the global center includes: Determine the distance between the center point of each light source and the global center; Clustering algorithms are used to perform cluster analysis on the distances to determine the level of each light source; All light sources are sorted according to the hierarchy and the polar angle of each light source relative to the global center, and the hierarchical sorting result of each light source is determined.

3. The method according to claim 2, characterized in that, The method further includes: For two adjacent target light sources at the same level, determine the polar angle difference between the two target light sources; When the polar angle difference meets the set angle requirement, the light source mode corresponding to the two target light sources is determined, and wiring is performed according to the light source mode.

4. The method according to claim 3, characterized in that, The polar angle difference is determined to meet the set angle requirement using the following method: Determine the average polar angle difference between the two target light sources at their respective levels; The polar angle difference is compared with the average polar angle difference to determine whether the set angle requirement is met based on the comparison result.

5. The method according to claim 1, characterized in that, The step of determining the optimal wiring path based on the hierarchical sorting results of all light sources includes: Determine the origin position of the wiring operation and the moving distance of each wiring operation. Starting from the origin position, with the goal of minimizing the total moving distance, determine the optimal wiring path to complete the wiring of all light sources.

6. The method according to claim 5, characterized in that, Before determining the optimal wiring path based on the hierarchical sorting results of all light sources, the following steps are also included: Obtain wiring tasks sent by different functional modules, and perform electrical rule and conflict detection on the wiring tasks; After passing the electrical rules and conflict detection, a wiring instruction set corresponding to the wiring task is generated to determine the wiring operation based on the wiring instruction set.

7. The method according to claim 1, characterized in that, The method further includes: In response to the confirmation operation of the wiring completion for the target light source, the control power supply supplies power to the wiring interface corresponding to the target light source; Determine whether the wiring result of the target light source meets the quality control requirements.

8. The method according to claim 1, characterized in that, The method further includes: Construct 3D models of different lighting devices, and generate composite images of the different lighting devices under different lighting conditions in a virtual environment; A training set is generated based on the synthesized image and real images of the different lighting devices, and the target recognition model is trained using the training set.

9. The method according to claim 1, characterized in that, The step of determining the global center of the lighting equipment to be connected based on the spatial information of each light source includes: For each light source, determine the location of its center point based on its spatial information; The global center is obtained by fitting the center point of all light sources using the least squares method.

10. A wiring device for a lighting equipment, characterized in that, Providing a graphical user interface via a terminal device includes: The identification module is used to acquire an initial image of the lighting equipment to be connected, and to determine the spatial information of each light source in the initial image using a target recognition model; The sorting module is used to determine the global center of the lighting equipment to be connected based on the spatial information of each light source, and to sort all light sources hierarchically based on the global center; The planning module is used to determine the optimal wiring path according to the hierarchical sorting results of all light sources, and to select the target light source to be wired in sequence according to the optimal wiring path. The identification module is used to provide a real image of the target light source and the target wiring interface in the graphical user interface, and to overlay a wiring indication identification on the real image to indicate the correspondence between the target light source and the target wiring interface.