CN115460316A - Method and system for determining positions of LED lamp string beads, storage medium and equipment - Google Patents

Method and system for determining positions of LED lamp string beads, storage medium and equipment Download PDF

Info

Publication number
CN115460316A
CN115460316A CN202210935060.7A CN202210935060A CN115460316A CN 115460316 A CN115460316 A CN 115460316A CN 202210935060 A CN202210935060 A CN 202210935060A CN 115460316 A CN115460316 A CN 115460316A
Authority
CN
China
Prior art keywords
lamp
string
led lamp
lamp string
led
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210935060.7A
Other languages
Chinese (zh)
Other versions
CN115460316B (en
Inventor
林福周
周明长
聂创达
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zengge Co ltd
Original Assignee
Zengge Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zengge Co ltd filed Critical Zengge Co ltd
Priority to CN202210935060.7A priority Critical patent/CN115460316B/en
Publication of CN115460316A publication Critical patent/CN115460316A/en
Application granted granted Critical
Publication of CN115460316B publication Critical patent/CN115460316B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72415User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories for remote control of appliances
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/163In-band adaptation of TCP data exchange; In-band control procedures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/20Controlling the colour of the light
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/30Driver circuits
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/105Controlling the light source in response to determined parameters
    • H05B47/115Controlling the light source in response to determined parameters by determining the presence or movement of objects or living beings
    • H05B47/125Controlling the light source in response to determined parameters by determining the presence or movement of objects or living beings by using cameras
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/175Controlling the light source by remote control
    • H05B47/19Controlling the light source by remote control via wireless transmission
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)
  • Non-Portable Lighting Devices Or Systems Thereof (AREA)

Abstract

The application relates to a method for determining positions of lamp beads of an LED lamp string, which comprises the following steps: establishing connection between a lamp string control APP and an LED lamp string, and sending a jump instruction to the LED lamp string through the lamp string control APP; after the jumping is finished, the color arrangement mode of each lamp bead is unique; when the color of the LED lamp string is changed, the lamp string controls the APP to photograph the LED lamp string at the same angle, and an LED lamp string jump image is obtained; and after the shot LED lamp string hopping image is the final hopping image of the LED lamp string, identifying the positions and colors of the lamp beads of all the LED lamp string hopping images, and determining the actual positions of the lamp beads in the LED lamp string according to the color arrangement and the address of each lamp bead. Compared with the prior art, the method can accurately determine the actual positions of the lamp beads in the LED lamp strings which are randomly placed or arranged outdoors, and meets the actual application requirements.

Description

Method and system for determining positions of LED lamp string beads, storage medium and equipment
Technical Field
The application relates to the technical field of lamp dimming, in particular to a method and a system for determining positions of lamp beads of an LED lamp string, a storage medium and computer equipment.
Background
With the increasing competition of products and services in various industries, how to build a unique propaganda image for own enterprise images, commodities and identifications to attract the eyes of consumers, a branding strategy becomes the greatest importance of marketing work, and various image propaganda forms such as an outdoor identification system and printed matters increasingly show irreplaceable functions. The LED lamp string product is used as a high-tech product and plays an irreplaceable role in practical application.
However, at present, LED light strings can only display fixed patterns according to the positions of the lights in outdoor activities, and because of the uncertainty of the positions of the light beads in the light strings, the patterns cannot be changed without changing the positions of the light beads, so that the positions of the light beads need to be changed by workers during the pattern change, which greatly increases the workload of the workers, and also causes the problem that the LED light strings are damaged easily in the certain process of the positions of the LED light strings.
Disclosure of Invention
Therefore, it is necessary to provide a method, a system, a storage medium, and a computer device for determining the positions of the lamp beads of the LED lamp string, which can accurately position the actual positions of the lamp beads of the LED lamp string, in order to solve the above technical problems.
The embodiment of the invention provides a method for determining the position of a lamp bead of an LED lamp string, which comprises the following steps:
establishing connection between a lamp string control APP and an LED lamp string, and sending a jump instruction to the LED lamp string through the lamp string control APP so as to change the color of each lamp bead in the LED lamp string; after the jumping is finished, the color arrangement mode of each lamp bead is unique;
after the color of the LED lamp string is changed, the lamp string control APP takes pictures of the LED lamp string at the same angle to obtain an LED lamp string jump image;
and after the shot LED lamp string jump image is the final jump image of the LED lamp string, identifying the positions and colors of the lamp beads of all the LED lamp string jump images, and determining the actual positions of the lamp beads in the LED lamp string according to the color arrangement and the address of each lamp bead.
Further, establish the connection of lamp cluster control APP and LED lamp cluster, through lamp cluster control APP to LED lamp cluster sends jump instruction, specifically includes:
establishing communication connection between a lamp string control APP and an LED lamp string;
calling a light string jumping script in the light string control APP, and sending a jumping instruction to each lamp bead in the LED light string according to the light string jumping script; and the hopping instruction sent to each lamp bead is sent according to the address of the lamp bead.
Furthermore, the jumping color of each lamp bead in the LED lamp string comprises red, green or blue, and the frequency of the lamp string controlling APP to send the jumping instruction to the LED lamp string meets 3^ X >; wherein, X is the quantity of picture, and N is the quantity of lamp pearl.
Further, after the shot jump image of the LED light string is the final jump image of the LED light string, the method further comprises,
acquiring all hopping colors of lamp beads in the same lamp bead address;
establishing a lamp bead address matrix of the LED lamp string according to all hopping colors of lamp beads in the same lamp bead address; the lamp bead address matrix comprises lamp bead hopping colors corresponding to all lamp bead addresses.
Further, the identification of the positions and colors of the lamp beads is carried out on all the jump images of the LED lamp strings, and the actual positions of the lamp beads in the LED lamp strings are determined according to the color arrangement and the address of each lamp bead, and the method specifically comprises the following steps:
calling an image recognition model, and recognizing the positions and colors of all lamp beads in all LED lamp string jump images;
calculating the distance between each lamp bead in the first LED lamp string jump image and the corresponding lamp bead in the rest LED lamp string jump images, and regarding the two lamp beads with the shortest distance as the same lamp bead;
establishing a lamp bead position matrix of the LED lamp strings according to the colors and positions of the same lamp beads in all the LED lamp string jump images;
and determining the actual position of each lamp bead in the LED lamp string according to the lamp bead address matrix and the lamp bead position matrix of the LED lamp string.
Another embodiment of the present invention provides a system for determining a position of a lamp bead of an LED lamp string, including:
the jump instruction sending module is used for establishing connection between a lamp string control APP and an LED lamp string and sending a jump instruction to the LED lamp string through the lamp string control APP so as to change the color of each lamp bead in the LED lamp string; after the jumping is finished, the color arrangement mode of each lamp bead is unique;
the jump image acquisition module is used for photographing the LED lamp string by the lamp string control APP after the color of the LED lamp string is changed to obtain an LED lamp string jump image;
and the lamp bead position determining module is used for identifying the positions and colors of the lamp beads of all the LED lamp string jump images after the shot LED lamp string jump images are the final jump images of the LED lamp strings, and determining the actual positions of the lamp beads in the LED lamp strings according to the color arrangement and the addresses of the lamp beads.
Further, the jump instruction sending module is specifically configured to,
establishing communication connection between a lamp string control APP and an LED lamp string;
calling a light string jumping script in the light string control APP, and sending a jumping instruction to each lamp bead in the LED light string according to the light string jumping script; and the jump instruction sent to each lamp bead is sent according to the address of the lamp bead.
Further, the lamp bead position determining module is specifically configured to,
calling an image recognition model, and recognizing the positions and colors of all lamp beads in the jump images of all the LED lamp strings;
calculating the distance between each lamp bead in the first LED lamp string jump image and the corresponding lamp bead in the rest LED lamp string jump images, and regarding the two lamp beads with the shortest distance as the same lamp bead;
establishing a lamp bead position matrix of the LED lamp strings according to the colors and positions of the same lamp beads in all the LED lamp string jump images;
and determining the actual position of each lamp bead in the LED lamp string according to the lamp bead address matrix and the lamp bead position matrix of the LED lamp string.
Another embodiment of the present invention is also directed to a computer readable storage medium including a stored computer program; when the computer program runs, the device where the computer readable storage medium is located is controlled to execute the method for determining the position of the LED lamp string bead.
Another embodiment of the present invention further provides a computer device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the LED string light bead position determining method as described above when executing the computer program.
The method for determining the positions of the LED lamp string beads comprises the steps of firstly establishing connection between a lamp string control APP and an LED lamp string, and sending a jump instruction to the LED lamp string through the lamp string control APP so as to change the color of each bead in the LED lamp string; after the jumping is finished, the color arrangement mode of each lamp bead is unique; after the color of the LED lamp string is changed, the lamp string control APP takes a picture of the LED lamp string at the same angle to obtain an LED lamp string jump image; and after the shot LED lamp string hopping image is the final hopping image of the LED lamp string, identifying the positions and colors of the lamp beads of all the LED lamp string hopping images, and determining the positions of the lamp beads in the LED lamp string according to the color arrangement and the address of each lamp bead. Compared with the prior art, the method can accurately determine the actual positions of the lamp beads in the LED lamp string which is randomly placed or arranged outdoors, thereby being convenient for realizing the change of the patterns and colors of the LED lamp string without changing the current position of the LED lamp string and meeting the actual application requirements.
Drawings
Fig. 1 is a schematic flow chart of a method for determining a position of a lamp bead of an LED lamp string according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an LED string transition image according to an embodiment of the present invention;
FIG. 3 is another schematic diagram of an LED string transition image according to an embodiment of the present invention;
fig. 4 is a block diagram of a system for determining the position of a lamp bead of an LED lamp string according to an embodiment of the present invention;
fig. 5 is a block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without any inventive step, are within the scope of the present invention.
It should be noted that, the step numbers in the text are only for convenience of explanation of the specific embodiments, and do not serve to limit the execution sequence of the steps. The method provided by the embodiment can be executed by the relevant server, and the server is taken as an example for explanation below.
As shown in fig. 1 to fig. 3, the method for determining the position of a bead of an LED light string according to an embodiment of the present invention includes steps S11 to S13:
step S11, establishing connection between a light string control APP and an LED light string, and sending a jump instruction to the LED light string through the light string control APP so as to change the color of each lamp bead in the LED light string; and the color arrangement mode of each lamp bead is unique after the jumping is finished.
In this embodiment, a mobile terminal is taken as an example for description, but it should be understood that the embodiment of the present invention is not limited thereto, and the method of the embodiment of the present invention may be applied to any lamp control device, that is, any control device that can perform lamp control through connection.
Specifically, in this embodiment, in the process that the light string control APP runs on the mobile terminal, a communication (such as TCP or bluetooth) connection request initiated by the target device (LED light string) is obtained in real time, and the communication request is responded, so that establishment of TCP connection between the light string control APP and the LED light string is realized. After the LED lamp string and the lamp string control APP establish a connection request, the lamp string control APP calls lamp string jumping feet carried by the lamp string control APP to operate the lamp string jumping script, and corresponding jumping instructions are sent to all lamp beads in the LED lamp string according to the operation result of the lamp string jumping script. Meanwhile, the jump instruction sent to each lamp bead is sent according to the address of the lamp bead, and in other embodiments, the connection between the string control APP and the LED string may be wired connection, if the jump instruction is sent to the lamp bead with the address of 1, the jump instruction is sent to the lamp bead with the address of 2, and the jump instruction is sent to the lamp bead with the address of 3, such as … …. The specific connection mode of the wired connection and the wireless connection can be adjusted according to actual requirements.
Furthermore, the jumping color of each lamp bead in the LED lamp string comprises red, green or blue. In other embodiments, the color of each light bead hopping may further include other colors, but in this embodiment, the color of each light bead hopping is red, green, or blue in consideration of the accuracy of subsequent light bead color identification. Meanwhile, the frequency of sending the jump instruction to the LED lamp string by the lamp string control APP in the embodiment meets 3^ X >; wherein, X is the quantity of picture, and N is the quantity of lamp pearl.
It can be understood that through the design of lamp string control APP to improve the commonality of lamp string control, avoid only specific equipment can carry out lamp string control, other equipment can't carry out the problem of lamp string control. Meanwhile, the lamp string control APP sends the corresponding jump instruction according to the lamp bead addresses, so that unique lamp bead addresses composed of the lamp beads are obtained, and necessary conditions are provided for accurate determination of subsequent lamp bead positions.
And S12, after the color of the LED lamp string is changed, the lamp string control APP takes a picture of the LED lamp string at the same angle to obtain an LED lamp string jump image.
Specifically, work as the colour of each lamp pearl in the LED lamp cluster changes the back, to light string control APP sends a colour and changes the completion information, light string control APP is receiving after the colour of each lamp pearl changes the completion information in the LED lamp cluster, right the LED lamp cluster is shot, obtains LED lamp cluster jump image, and the follow-up in-process of shooing of LED lamp cluster keeps same angle.
And S13, after the shot LED lamp string jump image is the final jump image of the LED lamp string, identifying the positions and colors of lamp beads of all the LED lamp string jump images, and determining the actual positions of the lamp beads in the LED lamp string according to the color arrangement and the address of each lamp bead.
Specifically, after the shot LED lamp string hopping image is the final hopping image of the LED lamp string, the method further comprises the steps of obtaining all hopping colors of lamp beads in the same lamp bead address; establishing a lamp bead address matrix of the LED lamp string according to all hopping colors of lamp beads in the same lamp bead address; the lamp bead address matrix comprises lamp bead hopping colors corresponding to all lamp bead addresses.
For example, the first picture lamp bead address is 1, the lamp bead becomes RED, the lamp bead address is 2, the lamp bead becomes RED, and the lamp bead address is 3, the lamp bead becomes BLUE, that is [ RED, BLUE ]. The second picture lamp bead address is 1, 2 and 3, namely [ RED, RED, RED ]. The third picture has lamp bead address 1 changing from GREEN to BLUE, lamp bead address 2 changing from BLUE, and lamp bead address 3 changing from RED, that is [ GREEN, BLUE, RED ]. And then the lamp bead address matrix of the LED lamp string is as follows:
A=[
RED,RED,BLUE
RED,RED,RED,
GREEN,BLUE,RED
]
and then transposing the matrix (A ^ T), wherein each row of the matrix is a unique address representing the lamp bead, each row has unique arrangement, and the arrangement is used for determining a corresponding position during picture identification.
Specifically, the identification of the positions and colors of the lamp beads is carried out on all the jump images of the LED lamp strings, and the actual positions of the lamp beads in the LED lamp strings are determined according to the color arrangement and the address of each lamp bead, including: calling an image recognition model YoloV3, and recognizing the positions and colors of all lamp beads in the jump images of all the LED lamp strings; calculating the distance between each lamp bead in the first LED lamp string jump image and the corresponding lamp bead in the rest LED lamp string jump images, and regarding the two lamp beads with the shortest distance as the same lamp bead; establishing a lamp bead position matrix of the LED lamp strings according to the colors and positions of the same lamp beads in all the LED lamp string jump images; and determining the actual position of each lamp bead in the LED lamp string according to the lamp bead address matrix and the lamp bead position matrix of the LED lamp string.
For example, referring to fig. 2, the lamp beads appear on the jump diagram of the LED light string, such as from left to right and from top to bottom,
position of the bead 1 [ x1, y1, x2, y2]
The position of the lamp bead 2 is [ x1, y1, x2, y2]. Wherein, x1, y1, x2, y2 represent the area that the lamp pearl occupies.
Then, the position and color of each lamp bead of each picture,
a first picture:
[
[RED,x1,y1,x2,y2]
[RED,x1,y1,x2,y2]
[BLUE,x1,y1,x2,y2]
]
the second picture:
[
[RED,x1,y1,x2,y2]
[RED,x1,y1,x2,y2]
[RED,x1,y1,x2,y2]
]
the third picture: [
[GREEN,x1,y1,x2,y2]
[BLUE,x1,y1,x2,y2]
[RED,x1,y1,x2,y2]
]
Furthermore, because the model for identifying the position and the color of the lamp bead on the jump image of the LED lamp string can only output the coordinate position and the corresponding color of the image, and the address of the lamp bead cannot be output. We need to determine the address by calculating the shortest distance for each bead location of the picture.
The calculation steps are as follows:
and comparing the distance between each lamp bead of the first picture and each lamp bead of the rest pictures. Referring to fig. 3, because the predicted result of the taken picture to the server has a slight position error for each picture, the positions of the same lamp bead in different pictures need to be determined by comparing the distances;
selecting the color corresponding to the minimum distance and position of each picture;
after the color is obtained, the color and the position are arranged to form a matrix bead position matrix B. The address of the lamp bead can be determined by querying the matrix A.
Specifically, assume that matrix a has the following data:
A=[
RED,RED,BLUE
RED,RED,RED,
GREEN,BLUE,RED
]
the data obtained by the IOU cross-over ratio are as follows:
B=[
GREEN,BLUE,RED,x1,y1,x2,y2
RED,RED,BLUE,x1,y1,x2,y2
RED,RED,RED,x1,y1,x2,y2
]
now we have two matrices, matrix a and matrix B, the row number of each row of matrix a represents the address of the lamp bead. The data of 1-3 of the matrix B can be taken to search the data row of the matrix A, so that the address and the position of the lamp bead can be obtained.
The method for determining the positions of the LED lamp string beads comprises the steps of firstly establishing connection between a lamp string control APP and an LED lamp string, and sending a jump instruction to the LED lamp string through the lamp string control APP so as to change the color of each bead in the LED lamp string; after jumping, the color arrangement mode of each lamp bead is unique; after the color of the LED lamp string is changed, the lamp string control APP takes pictures of the LED lamp string at the same angle to obtain an LED lamp string jump image; and after the shot LED lamp string hopping image is the final hopping image of the LED lamp string, identifying the positions and colors of the lamp beads of all the LED lamp string hopping images, and determining the actual positions of the lamp beads in the LED lamp string according to the color arrangement and the address of each lamp bead. Compared with the prior art, the method can accurately determine the actual positions of the lamp beads in the LED lamp string which is randomly placed or arranged outdoors, thereby being convenient for realizing the change of patterns and colors of the LED lamp string without changing the current position of the LED lamp string and meeting the actual application requirements.
It should be understood that, although the steps in the above-described flowcharts are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in the above-described flowcharts may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or the stages is not necessarily sequential, but may be performed alternately or alternatingly with other steps or at least a portion of the sub-steps or stages of other steps.
Referring to fig. 4, the present invention further provides a system for determining a position of a lamp bead of an LED lamp string, which is suitable for the method for determining a position of a lamp bead of an LED lamp string, and the system includes:
a jump instruction sending module 21, configured to establish connection between a string control APP and an LED string, and send a jump instruction to the LED string through the string control APP, so that colors of lamp beads in the LED string are changed; and the color arrangement mode of each lamp bead is unique after the jumping is finished.
The method comprises the steps of establishing connection between a lamp string control APP and an LED lamp string, and sending a jump instruction to the LED lamp string through the lamp string control APP, wherein a jump instruction sending module 21 is specifically used for:
establishing communication connection between a lamp string control APP and an LED lamp string;
calling a light string jumping script in the light string control APP, and sending a jumping instruction to each lamp bead in the LED light string according to the light string jumping script; and the jump instruction sent to each lamp bead is sent according to the address of the lamp bead.
Furthermore, the jumping color of each lamp bead in the LED lamp string comprises red, green or blue, and the frequency of the lamp string controlling APP to send a jumping instruction to the LED lamp string meets 3^ X >; wherein, X is the quantity of picture, and N is the quantity of lamp pearl.
And the jump image obtaining module 22 is used for photographing the LED lamp string by the lamp string control APP after the color of the LED lamp string is changed, so as to obtain an LED lamp string jump image.
And the lamp bead position determining module 23 is configured to, after the shot LED lamp string jump image is the final jump image of the LED lamp string, identify the positions and colors of the lamp beads of all the LED lamp string jump images, and determine the actual positions of the lamp beads in the LED lamp string according to the color arrangement and address of each lamp bead.
When the shot jump image of the LED light string is the final jump image of the LED light string, the lamp bead position determining module 23 is configured to,
acquiring all hopping colors of lamp beads in the same lamp bead address;
establishing a lamp bead address matrix of the LED lamp string according to all hopping colors of lamp beads in the same lamp bead address; the lamp bead address matrix comprises lamp bead hopping colors corresponding to all lamp bead addresses.
The method comprises the following steps of identifying the positions and colors of lamp beads of all jump images of the LED lamp string, determining the actual positions of the lamp beads in the LED lamp string according to the color arrangement and the address of each lamp bead, wherein the lamp bead position determining module 23 is specifically used for:
calling an image recognition model, and recognizing the positions and colors of all lamp beads in the jump images of all the LED lamp strings;
calculating the distance between each lamp bead in the first LED lamp string jump image and the corresponding lamp bead in the rest LED lamp string jump images, and regarding the two lamp beads with the shortest distance as the same lamp bead;
establishing a lamp bead position matrix of the LED lamp strings according to the colors and positions of the same lamp beads in all the LED lamp string jump images;
and determining the actual position of each lamp bead in the LED lamp string according to the lamp bead address matrix and the lamp bead position matrix of the LED lamp string.
The LED lamp string lamp bead position determining system provided by the embodiment of the invention firstly establishes connection between a lamp string control APP and an LED lamp string, and sends a jump instruction to the LED lamp string through the lamp string control APP so as to change the color of each lamp bead in the LED lamp string; after jumping, the color arrangement mode of each lamp bead is unique; after the color of the LED lamp string is changed, the lamp string control APP takes pictures of the LED lamp string at the same angle to obtain an LED lamp string jump image; and after the shot LED lamp string jump image is the final jump image of the LED lamp string, identifying the positions and colors of the lamp beads of all the LED lamp string jump images, and determining the actual positions of the lamp beads in the LED lamp string according to the color arrangement and the address of each lamp bead. Compared with the prior art, the method can accurately determine the actual positions of the lamp beads in the LED lamp string which is randomly placed or arranged outdoors, thereby being convenient for realizing the change of the patterns and colors of the LED lamp string without changing the current position of the LED lamp string and meeting the actual application requirements.
An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program; when the computer program runs, the device where the computer readable storage medium is located is controlled to execute the method for determining the position of the LED lamp string bead.
An embodiment of the present invention further provides a computer device, as shown in fig. 5, which is a block diagram of a preferred embodiment of the computer device provided in the present invention, the computer device includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and the processor implements the method for determining the position of the LED light string bead when executing the computer program.
Preferably, the computer program can be divided into one or more modules/units (e.g. computer program 1, computer program 2,) which are stored in the memory 20 and executed by the processor 10 to accomplish the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program in the computer device.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, a discrete hardware component, etc., the general purpose Processor may be a microprocessor, or the Processor may be any conventional Processor, the Processor is a control center of the computer device, and various interfaces and lines are used to connect various parts of the computer device.
The memory mainly includes a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, and the like, and the data storage area may store related data and the like. In addition, the memory may be a high speed random access memory, may be a non-volatile memory such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card), and the like, or the memory 20 may be other volatile solid state memory devices.
It should be noted that the above-mentioned computer device may include, but is not limited to, a processor and a memory, and those skilled in the art will understand that the structural block diagram in fig. 5 is only an example of a computer device, and does not constitute a limitation of the computer device, and may include more or less components than those shown in the figure, or combine some components, or different components.
In summary, according to the method, the system, the storage medium and the computer device for determining the positions of the lamp beads of the LED lamp string provided by the present invention, the connection between the lamp string control APP and the LED lamp string is firstly established, and the lamp string control APP sends the jump instruction to the LED lamp string, so that the color of each lamp bead in the LED lamp string changes; after the jumping is finished, the color arrangement mode of each lamp bead is unique; after the color of the LED lamp string is changed, the lamp string control APP takes a picture of the LED lamp string at the same angle to obtain an LED lamp string jump image; and after the shot LED lamp string jump image is the final jump image of the LED lamp string, identifying the positions and colors of the lamp beads of all the LED lamp string jump images, and determining the actual positions of the lamp beads in the LED lamp string according to the color arrangement and the address of each lamp bead. Compared with the prior art, the method can accurately determine the actual positions of the lamp beads in the LED lamp string which is randomly placed or arranged outdoors, thereby being convenient for realizing the change of the patterns and colors of the LED lamp string without changing the current position of the LED lamp string and meeting the actual application requirements.
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, several modifications and variations can be made without departing from the technical principle of the present invention, and these modifications and variations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A method for determining the position of a lamp bead of an LED lamp string is characterized by comprising the following steps:
establishing connection between a lamp string control APP and an LED lamp string, and sending a jump instruction to the LED lamp string through the lamp string control APP so as to change the color of each lamp bead in the LED lamp string; after the jumping is finished, the color arrangement mode of each lamp bead is unique;
after the color of the LED lamp string is changed, the lamp string control APP takes a picture of the LED lamp string at the same angle to obtain an LED lamp string jump image;
and after the shot LED lamp string jump image is the final jump image of the LED lamp string, identifying the positions and colors of the lamp beads of all the LED lamp string jump images, and determining the actual positions of the lamp beads in the LED lamp string according to the color arrangement and the address of each lamp bead.
2. The method for determining the position of the lamp bead of the LED lamp string according to claim 1, wherein connection between a lamp string control APP and the LED lamp string is established, and a jump instruction is sent to the LED lamp string through the lamp string control APP, and specifically comprises:
establishing communication connection between a lamp string control APP and an LED lamp string;
calling a lamp string jumping script in the lamp string control APP, and sending a jumping instruction to each lamp bead in the LED lamp string according to the lamp string jumping script; and the hopping instruction sent to each lamp bead is sent according to the address of the lamp bead.
3. The method for determining the positions of the lamp beads in the LED lamp string as claimed in claim 2, wherein the jumping colors of the lamp beads in the LED lamp string comprise red, green or blue, and the frequency of the lamp string control APP sending the jumping instruction to the LED lamp string satisfies 3^ X >; wherein, X is the quantity of picture, and N is the quantity of lamp pearl.
4. The method for determining the position of the LED lamp string bead according to claim 2, wherein when the shot jump image of the LED lamp string is the final jump image of the LED lamp string, the method further comprises,
acquiring all hopping colors of lamp beads in the same lamp bead address;
establishing a lamp bead address matrix of the LED lamp string according to all hopping colors of lamp beads in the same lamp bead address; the lamp bead address matrix comprises lamp bead hopping colors corresponding to all lamp bead addresses.
5. The method for determining positions of lamp beads of an LED lamp string according to claim 4, wherein the positions and colors of the lamp beads are identified for all jump images of the LED lamp string, and the positions of the lamp beads in the LED lamp string are determined according to the color arrangement and the address of each lamp bead, specifically comprising:
calling an image recognition model, and recognizing the positions and colors of all lamp beads in the jump images of all the LED lamp strings;
calculating the distance between each lamp bead in the first LED lamp string jump image and the corresponding lamp bead in the rest LED lamp string jump images, and regarding the two lamp beads with the shortest distance as the same lamp bead;
establishing a lamp bead position matrix of the LED lamp strings according to the colors and positions of the same lamp beads in all the LED lamp string jump images;
and determining the actual position of each lamp bead in the LED lamp string according to the lamp bead address matrix and the lamp bead position matrix of the LED lamp string.
6. An LED light string lamp bead position determination system, characterized in that, the system includes:
the jump instruction sending module is used for establishing connection between a light string control APP and the LED light string and sending a jump instruction to the LED light string through the light string control APP so as to change the color of each lamp bead in the LED light string; after the jumping is finished, the color arrangement mode of each lamp bead is unique;
the jump image acquisition module is used for photographing the LED lamp string by the lamp string control APP after the color of the LED lamp string is changed to obtain an LED lamp string jump image;
and the lamp bead position determining module is used for identifying the positions and colors of all the LED lamp string hopping images after the shot LED lamp string hopping images are the final hopping images of the LED lamp strings, and determining the actual positions of all the lamp beads in the LED lamp strings according to the color arrangement and the addresses of all the lamp beads.
7. The LED light string lamp bead position determining system of claim 6, wherein the jump instruction sending module is specifically configured to,
establishing communication connection between a lamp string control APP and an LED lamp string;
calling a lamp string jumping script in the lamp string control APP, and sending a jumping instruction to each lamp bead in the LED lamp string according to the lamp string jumping script; and the jump instruction sent to each lamp bead is sent according to the address of the lamp bead.
8. The LED light string lamp bead position determination system of claim 6, wherein the lamp bead position determination module is specifically configured to,
calling an image recognition model, and recognizing the positions and colors of all lamp beads in the jump images of all the LED lamp strings;
calculating the distance between each lamp bead in the first LED lamp string jump image and the corresponding lamp bead in the rest LED lamp string jump images, and regarding the two lamp beads with the shortest distance as the same lamp bead;
establishing a lamp bead position matrix of the LED lamp strings according to the colors and positions of the same lamp beads in all the LED lamp string jump images;
and determining the actual position of each lamp bead in the LED lamp string according to the lamp bead address matrix and the lamp bead position matrix of the LED lamp string.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored computer program; wherein the computer program controls a device in which the computer readable storage medium is located to execute the LED string light bead position determining method according to any one of claims 1 to 5 when running.
10. A computer device comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, the processor implementing the LED string light bead position determining method of any one of claims 1-5 when executing the computer program.
CN202210935060.7A 2022-08-04 2022-08-04 LED lamp string bead position determining method, system, storage medium and device Active CN115460316B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210935060.7A CN115460316B (en) 2022-08-04 2022-08-04 LED lamp string bead position determining method, system, storage medium and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210935060.7A CN115460316B (en) 2022-08-04 2022-08-04 LED lamp string bead position determining method, system, storage medium and device

Publications (2)

Publication Number Publication Date
CN115460316A true CN115460316A (en) 2022-12-09
CN115460316B CN115460316B (en) 2023-08-18

Family

ID=84296058

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210935060.7A Active CN115460316B (en) 2022-08-04 2022-08-04 LED lamp string bead position determining method, system, storage medium and device

Country Status (1)

Country Link
CN (1) CN115460316B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117098268A (en) * 2023-10-17 2023-11-21 深圳市天成照明有限公司 Lamp bead address programming method and unit board
CN118470284A (en) * 2024-07-12 2024-08-09 深圳市智岩科技有限公司 Method and device for generating physical layout of lamp chain, equipment and product

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110285299A1 (en) * 2010-05-19 2011-11-24 Israel Richard Kinderman Decorative light string
KR20110130988A (en) * 2010-05-28 2011-12-06 엘지이노텍 주식회사 Lamp driving apparatus
CA2989238A1 (en) * 2016-12-20 2018-06-20 Shandong Neon King Electronics Co., Ltd. Led light string having colorful light beads
CN111901934A (en) * 2019-05-06 2020-11-06 广州彩熠灯光股份有限公司 Multi-path LED constant current driving circuit with same color
CN112004284A (en) * 2020-09-14 2020-11-27 晓能互联科技(深圳)有限公司 Address positioning system and method for LED lamp string
CN113238163A (en) * 2021-05-31 2021-08-10 苏州清朗环保科技有限公司 Testing device and testing method for multi-channel LED lamp beads
CN114630466A (en) * 2022-03-16 2022-06-14 陈冠波 Lamp bead unit number detection method, controller, light module and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110285299A1 (en) * 2010-05-19 2011-11-24 Israel Richard Kinderman Decorative light string
KR20110130988A (en) * 2010-05-28 2011-12-06 엘지이노텍 주식회사 Lamp driving apparatus
CA2989238A1 (en) * 2016-12-20 2018-06-20 Shandong Neon King Electronics Co., Ltd. Led light string having colorful light beads
CN111901934A (en) * 2019-05-06 2020-11-06 广州彩熠灯光股份有限公司 Multi-path LED constant current driving circuit with same color
CN112004284A (en) * 2020-09-14 2020-11-27 晓能互联科技(深圳)有限公司 Address positioning system and method for LED lamp string
CN113238163A (en) * 2021-05-31 2021-08-10 苏州清朗环保科技有限公司 Testing device and testing method for multi-channel LED lamp beads
CN114630466A (en) * 2022-03-16 2022-06-14 陈冠波 Lamp bead unit number detection method, controller, light module and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117098268A (en) * 2023-10-17 2023-11-21 深圳市天成照明有限公司 Lamp bead address programming method and unit board
CN117098268B (en) * 2023-10-17 2024-01-05 深圳市天成照明有限公司 Lamp bead address programming method and unit board
CN118470284A (en) * 2024-07-12 2024-08-09 深圳市智岩科技有限公司 Method and device for generating physical layout of lamp chain, equipment and product

Also Published As

Publication number Publication date
CN115460316B (en) 2023-08-18

Similar Documents

Publication Publication Date Title
US8947321B2 (en) Method, system, and device for determining a location of micro digital signage devices
CN108205671A (en) Image processing method and device
US9679386B2 (en) Image processing device capable of segmenting an image into plural areas
CN115460316B (en) LED lamp string bead position determining method, system, storage medium and device
CN101387953A (en) Collaboration software development system and method
CN113938674B (en) Video quality detection method, device, electronic equipment and readable storage medium
CN112672064A (en) Algorithm scheduling method, system and equipment based on video region label
JP2024111178A (en) Shelf allocation information generation system, shelf allocation information generation method, and program
CN114037659A (en) Method, device and equipment for detecting crystal grain array defects and readable storage medium
JP2016225930A (en) Shelving allocation information generation device, shelving allocation information generation system, shelving allocation information generation method, imaging device, and program
CN110276737A (en) Image optimization processing method, device, equipment and storage medium
EP3608837A1 (en) Display screen, electronic device and method for three-dimensional feature recognition
CN110413829A (en) Mark picture entity relationship method and device
WO2023213070A1 (en) Method and apparatus for obtaining goods pose based on 2d camera, device, and storage medium
JP2016224831A (en) Shelving allocation information generation device, shelving allocation information generation system, shelving allocation information generation method, imaging device, and program
CN111803926B (en) Matching method and device of control object in cloud application and electronic equipment
JP2023061880A (en) Collation device and program
WO2022117027A1 (en) Configuration method for sub-devices of smart home control panel, computer device and computer-readable storage medium
CN110969674B (en) Method and device for generating winding drawing, terminal equipment and readable storage medium
CN110837747B (en) Authentication method, device, equipment and storage medium for two-dimension code
CN114091497A (en) System and method for optimizing imaging settings for machine vision tasks
CN113858799A (en) Printing method, color card database acquisition method and printing equipment
WO2020253049A1 (en) Data processing method and device, storage medium, and electronic device
CN111127171A (en) Order data processing method, device, equipment and computer readable storage medium
JP2016031644A (en) Traceability providing system, traceability providing apparatus, and traceability providing method

Legal Events

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