CN113825276A - Automatic identification method and device for output wiring sequence of LED lamp strip controller and storage medium - Google Patents
Automatic identification method and device for output wiring sequence of LED lamp strip controller and storage medium Download PDFInfo
- Publication number
- CN113825276A CN113825276A CN202111111409.7A CN202111111409A CN113825276A CN 113825276 A CN113825276 A CN 113825276A CN 202111111409 A CN202111111409 A CN 202111111409A CN 113825276 A CN113825276 A CN 113825276A
- Authority
- CN
- China
- Prior art keywords
- color
- lamp strip
- controller
- display image
- lamp
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 33
- 238000003860 storage Methods 0.000 title claims abstract description 9
- 238000004458 analytical method Methods 0.000 claims abstract description 18
- 239000003086 colorant Substances 0.000 claims description 27
- 238000004364 calculation method Methods 0.000 claims description 10
- WPPDXAHGCGPUPK-UHFFFAOYSA-N red 2 Chemical compound C1=CC=CC=C1C(C1=CC=CC=C11)=C(C=2C=3C4=CC=C5C6=CC=C7C8=C(C=9C=CC=CC=9)C9=CC=CC=C9C(C=9C=CC=CC=9)=C8C8=CC=C(C6=C87)C(C=35)=CC=2)C4=C1C1=CC=CC=C1 WPPDXAHGCGPUPK-UHFFFAOYSA-N 0.000 claims description 4
- 238000012163 sequencing technique Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 229910052754 neon Inorganic materials 0.000 description 2
- GKAOGPIIYCISHV-UHFFFAOYSA-N neon atom Chemical compound [Ne] GKAOGPIIYCISHV-UHFFFAOYSA-N 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 239000000758 substrate Substances 0.000 description 1
- 238000003466 welding Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B45/00—Circuit arrangements for operating light-emitting diodes [LED]
- H05B45/20—Controlling the colour of the light
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/90—Determination of colour characteristics
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10004—Still image; Photographic image
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The invention discloses a method and a device for automatically identifying the output wiring sequence of an LED lamp strip controller and a storage medium, wherein the method comprises the following steps: step S1, sequentially sending control instructions to the lamp strip controller, and enabling the lamp strip controller to control the lamp strip corresponding to the lamp strip controller to sequentially display the light corresponding to the specified input interface; step S2, starting and acquiring the current lamp belt display image acquired by the image acquisition module; step S3, performing color analysis on the obtained current lamp band display image, matching the obtained current lamp band display image with a corresponding color, and recording the obtained current lamp band display image; and step S4, sending the recording result to the lamp strip controller, marking by the lamp strip controller, and determining an output wiring sequence.
Description
Technical Field
The invention relates to the technical field of LED lamp strip control, in particular to an automatic identification method, device and storage medium for an output wiring sequence of an LED lamp strip controller.
Background
The LED strip is a strip formed by assembling LEDs on a Flexible Printed Circuit (FPC) or a rigid Printed Circuit Board (PCB), and is named as a strip in shape. The RGB lamp belt means that each LED welded on the LED lamp belt is composed of three chips of red, green and blue, and the three chips can emit red, green, blue and other monochromatic lights independently or can emit three stars together to form white light. The RGB light has four input lines (12V power, green, red, blue), each identified as 12V, G, R, B. The LED neon light is also named as an LED pixel light bar, and the product is formed by welding an LED by taking a flexible FPC (flexible printed circuit) as a substrate and a peripheral circuit, so that the display effects of chasing, running and neon lights can be realized. Conversion is usually realized by using an IC control method such as WS2801, WS2811, and WS2812, and the operating voltage is usually 5V. The magic color lamp is provided with three input lines (5V power supply, signal line and ground line) which are respectively marked by +5V, DO/DI and GND.
At present, manufacturers of lamp strips generally adopt a pin-arranging wiring mode to connect the LED lamp strip with a lamp strip controller, however, because the order of the lamp strip connected to the pin-arranging is not uniform, different manufacturers produce the lamp strip, even the lamp strip produced by the same manufacturer is not necessarily the same in arrangement order when being connected, such as arrangement modes of RGB, GRB, BRG and the like, therefore, the lamp strip and the lamp strip controller purchased by consumers are matched when the manufacturers leave a factory, and are assembled into a whole set to be sold together.
This would lead to the following drawbacks: (1) the lamp strip and the lamp strip controller are required to be matched and assembled together for sale in manufacturers, the manufacturers need to stock the controllers according to different lamp strip arrangement sequences, and the production of the lamp strips in various sequences is troublesome; (2) if the lamp strip is damaged or bought again, a consumer needs to buy a matched lamp strip from an original manufacturer, and cannot buy the lamp strip from other manufacturers, otherwise, the bought lamp strip may not be consistent with the sequence of inserting the controller of the lamp strip into the interface, so that the output color sequence is wrong. For example, a user may want to turn blue, but the light appears red; (3) the user can not purchase the lamp strip or the lamp area controller of different producers alone and install. If the purchase is wrong, only goods return can be carried out, which brings inconvenience to the user.
In order to solve the above problems, chinese patent publication No. CN110461068B provides an output connection control method for an LED strip controller, and the control process is as shown in fig. 1, and specifically as follows: the method comprises the steps that a lamp strip controller obtains a color sequence instruction of a lamp strip which is sent by terminal equipment and connected with a controller output interface; analyzing the color sequence instruction to obtain an actual lamp strip color sequence corresponding to the output interface; judging whether the color sequence of the actual lamp strip is consistent with the preset color sequence of the target lamp strip corresponding to the output interface; if the color sequence of the actual lamp strip is inconsistent with the preset target data, the target data corresponding to the color sequence of the actual lamp strip is obtained, an assignment algorithm is adopted to assign the parameters corresponding to the output interface, the output interface outputs corresponding data, and the control of the controller on output wiring is completed; the target data refers to preset output data of the lamp strip corresponding to the color sequence of the target lamp strip.
Although the purpose of controlling the output wiring by the lamp strip controller according to the color sequence instruction of the terminal equipment is achieved, in the scheme, the color sequence instruction sent by the terminal equipment is manually set, so that whether the wiring setting is correct still needs to be manually judged, for professional personnel, although the corresponding output sequencing is known through the lamp strip identification, the output sequencing can be directly set, if the output sequencing is non-professional, the output sequencing type needs to be set for each sequencing type, then whether the setting is correct through manual judgment, and if the setting is wrong, the other sequencing type is replaced until the setting is correct. Obviously, this approach only solves the problem that the controller can match the lamp strip with multiple wiring sequences, but is still somewhat cumbersome and time consuming to use.
Disclosure of Invention
In order to overcome the defects in the prior art, an object of the present invention is to provide a method, a device and a storage medium for automatically identifying an output wiring sequence of an LED strip controller, so as to achieve the purpose of automatically identifying the output wiring sequence of the LED strip controller.
In order to achieve the above object, the present invention provides an automatic identification method for an output wiring sequence of an LED strip controller, comprising the following steps:
step S1, sequentially sending control instructions to the lamp strip controller, and enabling the lamp strip controller to control the lamp strip corresponding to the lamp strip controller to sequentially display the light corresponding to the specified input interface;
step S2, starting and acquiring the current lamp belt display image acquired by the image acquisition module;
step S3, performing color analysis on the obtained current lamp band display image, matching the obtained current lamp band display image with a corresponding color, and recording the obtained current lamp band display image;
and step S4, sending the recording result to the lamp strip controller, marking by the lamp strip controller, and determining an output wiring sequence.
Preferably, in step S1, the control instruction causes the light strip to display 100% of the lights of one corresponding input interface each time, and the lights corresponding to the other input interfaces are completely turned off.
Preferably, the image acquisition module is an electronic device with a camera.
Preferably, in step S3, color analysis is performed on the current light band display image to obtain RGB values of main colors of the current light band display image, and then the RGB values are compared with a plurality of preset colors that can be matched, and the closest color is found out through color difference calculation, that is, the matched color.
Preferably, the plurality of matchable colors includes red, green, blue, cool white, warm white.
Preferably, the color difference calculation formula is as follows:
ΔR=C1,R-C2,R
ΔG=C1,G-C2,G
ΔB=C1,B-C2,B
where Δ C denotes the color difference of the two colors to be compared, C1、C2Two colors to be compared; c1,RA value, C, representing the portion of the first color to be compared corresponding to Red Red1,GA value representing the part of the first color to be compared corresponding to Green, C1,BA value representing the Blue portion corresponding to the first color to be compared; c2,RA value, C, representing the portion of the second color to be compared corresponding to Red Red2,GA value representing the Green part of the second color to be compared, C2,BA value representing the Blue portion corresponding to the second color to be compared.
Preferably, in step S3, performing color difference calculation on the RGB values of the main color of the current light band display image and the RGB values of red, green, blue, cold white, and warm white one by one, and selecting the color with the minimum color difference as the matched color.
Preferably, after all the input interfaces of the LED strip are marked with colors, the output wiring sequence of the LED strip controller is obtained according to the marking result.
In order to achieve the above object, the present invention further provides an automatic identification device for an output wiring sequence of an LED strip controller, comprising:
the control instruction generating module is used for sequentially sending control instructions to the lamp strip controller of the LED lamp strip so that the lamp strip controller controls the lamp strip to sequentially display light corresponding to the specified input interface;
the image acquisition starting and obtaining module is used for sending a control instruction to enable the lamp strip controller to control the lamp strip to display the light corresponding to the specified input interface, starting the image acquisition module to acquire the current lamp strip display image and obtaining the current lamp strip display image acquired by the image acquisition module;
the color analysis matching module is used for performing color analysis on the obtained current lamp band display image, matching the obtained current lamp band display image to a corresponding color and recording the corresponding color;
and the wiring sequence determining module is used for sending the recording result of the color analysis matching module to the lamp strip controller, marking the recording result by the lamp strip controller and determining the output wiring sequence.
Further, the invention also provides a storage medium storing an automatic identification method for the output wiring sequence of the LED strip controller.
Compared with the prior art, the method, the device and the storage medium for automatically identifying the output wiring sequence of the LED lamp strip controller sequentially send the control command to the lamp strip controller, so that the lamp strip controller controls the corresponding lamp strip to sequentially display the light corresponding to the specified input interface, then the lamp strip controller is started and acquires the current lamp strip display image acquired by the image acquisition module, the color of the acquired current lamp strip display image is analyzed, the corresponding color is matched and marked, and the purpose of automatically identifying the output wiring sequence of the LED lamp strip controller is achieved.
Drawings
Fig. 1 is a flow chart of a method for controlling output wiring of an LED strip controller according to the prior art;
fig. 2 is a flowchart illustrating steps of a method for automatically identifying an output wiring sequence of an LED strip controller according to the present invention;
fig. 3 is a system architecture diagram of an automatic identification device for an output wiring sequence of an LED strip controller according to the present invention;
fig. 4 is a schematic block diagram of an actual correspondence between the output wiring of the lamp strip controller and the lamp strip in the embodiment of the present invention;
fig. 5 is a flow chart illustrating an automatic identification of an output wiring sequence of the LED strip controller according to an embodiment of the present invention.
Detailed Description
Other advantages and capabilities of the present invention will be readily apparent to those skilled in the art from the present disclosure by describing the embodiments of the present invention with specific embodiments thereof in conjunction with the accompanying drawings. The invention is capable of other and different embodiments and its several details are capable of modification in various other respects, all without departing from the spirit and scope of the present invention.
Fig. 2 is a flowchart illustrating steps of a method for automatically identifying a wiring sequence of an LED strip according to the present invention. As shown in fig. 2, the method for automatically identifying the wiring sequence of the LED strip of the present invention comprises the following steps:
and step S1, sequentially sending control instructions to the lamp strip controller, so that the lamp strip controller controls the corresponding lamp strips to sequentially display the light corresponding to the specified input interface.
In the invention, firstly, a control instruction is sent to the lamp strip controller according to an input interface in sequence, so that the lamp strip controller controls the light corresponding to the input interface to be turned on, and the light corresponding to other input interfaces is turned off. In an embodiment of the present invention, it is assumed that the LED light strip has three input interfaces input1, input2, and input3, which correspond to three light outputs output1, output2, and output3, first, a control command is sent to the light strip controller for the input interface input1, where the control command at least includes a command for controlling the light strip to turn off the input interface input1 is 100%, and the other input interfaces input2 and input3 are 0 ", and the purpose of the control command is to make the output1 of the light fixture display the light of the input interface input1, and the other output interfaces output2 and output3, and after receiving the control command, the light strip controller outputs the control command to the corresponding input interfaces, and then displays the light of the input interface input1 according to the control command.
And step S2, starting and acquiring the current lamp band display image acquired by the image acquisition module.
That is to say, when the lamp strip displays the light of a certain input interface according to the control instruction, an image acquisition module is started, and the image acquisition module is used for acquiring and displaying the current lamp strip display image of the lamp strip corresponding to the light. The image acquisition module can be a handheld device with a camera of a user, such as a smart phone, or other devices with a camera, and the invention is not limited to this, and the image acquisition module acquires a current lamp strip display image displaying corresponding light and then transmits the current lamp strip display image to the automatic identification device of the invention.
And step S3, performing color analysis on the obtained current lamp band display image, matching the obtained current lamp band display image with a corresponding color, and recording the obtained current lamp band display image.
Specifically, when the current lamp band display image is obtained, the following color analysis processing is performed on the current lamp band display image:
and 2, if the image size is larger than 100 pixels by 100, scaling the picture to 100 pixels by 100 pixels, and entering the next step, and if the image size is smaller than 100 pixels by 100, directly entering the next step.
And step 3, circularly traversing the color value of each pixel point.
And 4, the color value of each pixel point comprises red, green and blue, the three values are respectively reduced in precision, and the similarity Key is obtained by the following formula:
red similarity Key ═ floor (red/(1-similarity) × 255);
green similarity Key (green/(1-similarity) × 255);
blue similarity Key (blue/(1-similarity) × 255);
and 5, classifying according to the similarity keys, calculating the number of each similarity Key and the average value of the colors, and sequencing according to color data, wherein the most number is used as the main color.
Step 6, obtaining the RGB value of the main color of the picture, and obtaining the hue, the gray level and the brightness of the color according to the HSV algorithm;
and 7, finding out the closest color which is the matched color through color difference calculation according to the RGB value of the main color of the obtained picture and the preset matched color, wherein the formula is as follows:
ΔR=C1,R-C2,R
ΔG=C1,G-C2,G
ΔB=C1,B-C2,B
where Δ C denotes the color difference of two colors, C1、C2Two colors to be compared; c1,RValue representing the portion of color 1 corresponding to Red Red, C1,GValue representing the portion of color 1 corresponding to Green Green, C1,BA value representing that color 1 corresponds to the Blue part; c2,RValue, C, representing the portion of color 2 corresponding to Red2,GValue representing the portion of color 2 corresponding to Green Green, C2,BThe representative color 2 corresponds to the value of the Blue part.
In the specific embodiment of the invention, the preset matchable colors include red, green, blue, cold white and warm white, the RGB values of the main colors of the obtained picture and the colors of red, green, blue, cold white and warm white are subjected to color difference calculation one by one, and the color with the minimum color difference is the matched color.
And after the corresponding color is matched, recording the color corresponding to the current input interface as the matched color.
And step S4, sending the recording result to the lamp strip controller, marking by the lamp strip controller, and determining an output wiring sequence.
And after the lamp strip controller receives the recording result of the color matching, recording the color corresponding to the current input interface as the matched color.
And when all the input interfaces of the LED lamp strip are marked with colors, obtaining the output wiring sequence of the LED lamp strip controller according to the marking result.
Fig. 3 is a system architecture diagram of an automatic identification device for the wiring sequence of the LED strip according to the present invention. As shown in fig. 3, the automatic identification device for the wiring sequence of the LED strip of the present invention comprises:
the control instruction generating module 301 is configured to sequentially send a control instruction to the lamp strip controller in the LED lamp strip, so that the lamp strip controller controls the lamp strip to sequentially display the light corresponding to the specified input interface.
In the present invention, the control instruction generating module 301 firstly sends a control instruction to the light strip controller in order for an input interface input, so that the light strip controller controls the light corresponding to the input interface to be turned on, and the light corresponding to other input interfaces is turned off. In an embodiment of the present invention, it is assumed that the LED light strip has three input interfaces input1, input2, and input3, which correspond to three light outputs output1, output2, and output3, first, a control command is sent to the light strip controller for the input interface input1, where the control command at least includes a command for controlling the light strip to turn off the input interface input1 is 100%, and the other input interfaces input2 and input3 are 0 ", and the purpose of the control command is to make the light output1 of the light fixture display the light of the input interface input1, and the other output interfaces output2 and output3 output the control command to the corresponding input interfaces after the light strip controller receives the control command, and then the light strip displays the light of the input interface input1 according to the control command.
The image acquisition starting and obtaining module 302 is configured to send a control instruction to enable the lamp strip controller to control the lamp strip to display the light corresponding to the specified input interface, start the image acquisition module to acquire the current lamp strip display image, and obtain the current lamp strip display image acquired by the image acquisition module.
That is to say, when the light strip displays the light of a certain input interface according to the control instruction, the image acquisition starting and obtaining module 302 starts the image acquisition module, and the image acquisition module is used to acquire the current light strip display image of the light strip that displays the corresponding light. The image acquisition module can be a handheld device with a camera of a user, such as a smart phone, or other devices with a camera, and the invention is not limited to this, and the image acquisition module acquires a current lamp strip display image displaying corresponding light and then transmits the current lamp strip display image to the identification device of the invention.
And the color analysis matching module 303 is configured to perform color analysis on the obtained current light band display image, match the obtained current light band display image with a corresponding color, and record the obtained current light band display image.
Specifically, when the current light band display image is obtained, the color analysis matching module 303 performs the following color analysis processing on the current light band display image:
and 2, if the image size is larger than 100 pixels by 100, scaling the picture to 100 pixels by 100 pixels, and entering the next step, and if the image size is smaller than 100 pixels by 100, directly entering the next step.
And step 3, circularly traversing the color value of each pixel point.
And 4, the color value of each pixel point comprises red, green and blue, the three values are respectively reduced in precision, and the similarity Key is obtained by the following formula:
red similarity Key ═ floor (red/(1-similarity) × 255);
green similarity Key (green/(1-similarity) × 255);
blue similarity Key (blue/(1-similarity) × 255);
and 5, classifying according to the similarity keys, calculating the number of each similarity Key and the average value of the colors, and sequencing according to color data, wherein the most number is used as the main color.
Step 6, obtaining the RGB value of the main color of the picture, and obtaining the hue, the gray level and the brightness of the color according to the HSV algorithm;
and 7, finding out the closest color which is the matched color through color difference calculation according to the RGB value of the main color of the obtained picture and the preset matched color, wherein the formula is as follows:
ΔR=C1,R-C2,R
ΔG=C1,G-C2,G
ΔB=C1,B-C2,B
where Δ C denotes the color difference of two colors, C1、C2For two colors to be compared;C1,RValue representing the portion of color 1 corresponding to Red Red, C1,GValue representing the portion of color 1 corresponding to Green Green, C1,BA value representing that color 1 corresponds to the Blue part; c2,RValue, C, representing the portion of color 2 corresponding to Red2,GValue representing the portion of color 2 corresponding to Green Green, C2,BThe representative color 2 corresponds to the value of the Blue part.
In the specific embodiment of the invention, the preset matchable colors include red, green, blue, cold white and warm white, the RGB values of the main colors of the obtained picture and the colors of red, green, blue, cold white and warm white are subjected to color difference calculation one by one, and the color with the minimum color difference is the matched color.
And after the corresponding color is matched, recording the color corresponding to the current input interface as the matched color.
And the wiring sequence determining module 304 is configured to send the recording result of the color analysis matching module 303 to the light strip controller, mark the recording result by the light strip controller, and determine an output wiring sequence.
And after the lamp strip controller receives the recording result of the color matching, recording the color corresponding to the current input interface as the matched color.
And when all the input interfaces of the LED lamp strip are marked with colors, obtaining the output wiring sequence of the LED lamp strip controller according to the marking result.
Further, the present invention further provides a storage medium storing a method for automatically identifying an output wiring sequence of the LED strip controller, including the steps S1-S4.
Examples
Fig. 4 is a schematic block diagram of an actual correspondence relationship between the output wiring of the lamp strip controller and the lamp strip in the embodiment of the present invention. In this embodiment, the system includes a light bar controller corresponding to three strip controllers, each strip controller corresponding to one LED strip, and the present invention can automatically identify an output wiring sequence of any one of the strip controllers.
Fig. 5 is a flow chart of automatic identification of a wiring sequence of the LED strip in the embodiment of the present invention. Specifically, in this embodiment, the LED light strip has three input interfaces input1, input2, and input3, which correspond to three light outputs output1, output2, and output3, the automatic identification device of the present invention first sends a control command to the light strip controller for the input interface input1, where the control command at least includes a command for controlling the light strip to turn off the input interface input1 — 100%, the other input interfaces input2, and the input3 — 0, and the purpose of the command is to make the output1 of the light fixture display the light of the input interface input1, and the other output2 and output 3; when the lamp strip controller receives the control instruction, the control instruction is output to the corresponding input interface, and the lamp strip displays the light of the input interface input1 according to the control instruction; the automatic identification device starts an image acquisition module to acquire a current lamp band display image, and then identifies and analyzes and matches the image, in the embodiment, the matched colors comprise red, green, blue, cold white and warm white, and transmits the matching result to the lamp band controller, and the lamp band controller marks the color corresponding to the input interface input 1; and marking the input interfaces input2 and input3 in sequence according to the process to obtain the final output wiring sequence of the lamp strip controller.
The foregoing embodiments are merely illustrative of the principles and utilities of the present invention and are not intended to limit the invention. Modifications and variations can be made to the above-described embodiments by those skilled in the art without departing from the spirit and scope of the present invention. Therefore, the scope of the invention should be determined from the following claims.
Claims (10)
1. An automatic identification method for an output wiring sequence of an LED lamp strip controller comprises the following steps:
step S1, sequentially sending control instructions to the lamp strip controller, and enabling the lamp strip controller to control the lamp strip corresponding to the lamp strip controller to sequentially display the light corresponding to the specified input interface;
step S2, starting and acquiring the current lamp belt display image acquired by the image acquisition module;
step S3, performing color analysis on the obtained current lamp band display image, matching the obtained current lamp band display image with a corresponding color, and recording the obtained current lamp band display image;
and step S4, sending the recording result to the lamp strip controller, marking by the lamp strip controller, and determining an output wiring sequence.
2. The method of claim 1, wherein the method comprises the following steps: in step S1, the control instruction causes the light strip to display 100% of the lights of one corresponding input interface each time, and lights corresponding to other input interfaces are turned off completely.
3. The method of claim 1, wherein the method comprises the following steps: the image acquisition module is an electronic device with a camera.
4. The method of claim 1, wherein the method comprises the following steps: in step S3, color analysis is performed on the current light band display image to obtain RGB values of main colors of the current light band display image, and then the RGB values are compared with a plurality of preset colors that can be matched, and the closest color is found out through color difference calculation as the matched color.
5. The method of claim 4, wherein the method comprises the following steps: the plurality of matchable colors include red, green, blue, cool white, warm white.
6. The method of claim 5, wherein the color difference calculation formula is as follows:
ΔR=C1,R-C2,R
ΔG=C1,G-C2,G
ΔB=C1,B-C2,B
where Δ C denotes the color difference of the two colors to be compared, C1、C2Two colors to be compared; c1,RA value, C, representing the portion of the first color to be compared corresponding to Red Red1,GA value representing the part of the first color to be compared corresponding to Green, C1,BA value representing the Blue portion corresponding to the first color to be compared; c2,RA value, C, representing the portion of the second color to be compared corresponding to Red Red2,GA value representing the Green part of the second color to be compared, C2,BA value representing the Blue portion corresponding to the second color to be compared.
7. The method as claimed in claim 5, wherein in step S3, the RGB values of the main color of the current display image of the light strip and the RGB values of red, green, blue, cool white and warm white are subjected to color difference calculation, and the color with the smallest color difference is selected as the matched color.
8. The method of claim 7, wherein the method comprises the following steps: and when all the input interfaces of the LED lamp strip are marked with colors, obtaining the output wiring sequence of the LED lamp strip controller according to the marking result.
9. An automatic identification device of LED lamp strip controller output wiring sequence, includes:
the control instruction generating module is used for sequentially sending control instructions to the lamp strip controller of the LED lamp strip so that the lamp strip controller controls the lamp strip to sequentially display light corresponding to the specified input interface;
the image acquisition starting and obtaining module is used for sending a control instruction to enable the lamp strip controller to control the lamp strip to display the light corresponding to the specified input interface, starting the image acquisition module to acquire the current lamp strip display image and obtaining the current lamp strip display image acquired by the image acquisition module;
the color analysis matching module is used for performing color analysis on the obtained current lamp band display image, matching the obtained current lamp band display image to a corresponding color and recording the corresponding color;
and the wiring sequence determining module is used for sending the recording result of the color analysis matching module to the lamp strip controller, marking the recording result by the lamp strip controller and determining the output wiring sequence.
10. A storage medium storing an automatic identification method comprising the LED strip controller output wiring sequence according to any one of claims 1 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111111409.7A CN113825276B (en) | 2021-09-23 | 2021-09-23 | Automatic identification method, device and storage medium for output wiring sequence of LED lamp strip controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111111409.7A CN113825276B (en) | 2021-09-23 | 2021-09-23 | Automatic identification method, device and storage medium for output wiring sequence of LED lamp strip controller |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113825276A true CN113825276A (en) | 2021-12-21 |
CN113825276B CN113825276B (en) | 2023-11-10 |
Family
ID=78921006
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111111409.7A Active CN113825276B (en) | 2021-09-23 | 2021-09-23 | Automatic identification method, device and storage medium for output wiring sequence of LED lamp strip controller |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113825276B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116634635A (en) * | 2023-07-24 | 2023-08-22 | 深圳市千岩科技有限公司 | Lamp installation verification method, device, equipment and medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8378781B1 (en) * | 2009-04-17 | 2013-02-19 | John W. Peterson | Animated light string system |
CN106541702A (en) * | 2016-10-27 | 2017-03-29 | 杭州电子科技大学 | A kind of printing quality corrects system and method |
US20170238391A1 (en) * | 2016-02-08 | 2017-08-17 | Nxp B.V. | Controller for a lamp |
CN110461068A (en) * | 2019-08-28 | 2019-11-15 | 江门市征极光兆科技有限公司 | A kind of LED light tape controller output connection control method, light bar controller, system and storage medium |
CN110602854A (en) * | 2019-09-09 | 2019-12-20 | 杭州行至云起科技有限公司 | Topological structure recognition system and method for intelligent lighting system |
CN111612839A (en) * | 2020-04-10 | 2020-09-01 | 广州大学 | Colored lamp position identification method, system and device and storage medium |
CN112004284A (en) * | 2020-09-14 | 2020-11-27 | 晓能互联科技(深圳)有限公司 | Address positioning system and method for LED lamp string |
CN112261768A (en) * | 2020-11-03 | 2021-01-22 | 广东科徕尼智能科技有限公司 | Lamp strip color control method and system, intelligent terminal and storage device |
-
2021
- 2021-09-23 CN CN202111111409.7A patent/CN113825276B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8378781B1 (en) * | 2009-04-17 | 2013-02-19 | John W. Peterson | Animated light string system |
US20170238391A1 (en) * | 2016-02-08 | 2017-08-17 | Nxp B.V. | Controller for a lamp |
CN106541702A (en) * | 2016-10-27 | 2017-03-29 | 杭州电子科技大学 | A kind of printing quality corrects system and method |
CN110461068A (en) * | 2019-08-28 | 2019-11-15 | 江门市征极光兆科技有限公司 | A kind of LED light tape controller output connection control method, light bar controller, system and storage medium |
CN110602854A (en) * | 2019-09-09 | 2019-12-20 | 杭州行至云起科技有限公司 | Topological structure recognition system and method for intelligent lighting system |
CN111612839A (en) * | 2020-04-10 | 2020-09-01 | 广州大学 | Colored lamp position identification method, system and device and storage medium |
CN112004284A (en) * | 2020-09-14 | 2020-11-27 | 晓能互联科技(深圳)有限公司 | Address positioning system and method for LED lamp string |
CN112261768A (en) * | 2020-11-03 | 2021-01-22 | 广东科徕尼智能科技有限公司 | Lamp strip color control method and system, intelligent terminal and storage device |
Non-Patent Citations (2)
Title |
---|
OSTARTECH: "色差公式汇总", pages 4, Retrieved from the Internet <URL:www.cnblogs.com> * |
程序猿也可以很哲学: "色差计算(颜色质检的相似度计算)", pages 3, Retrieved from the Internet <URL:www.blog.csdn.net> * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116634635A (en) * | 2023-07-24 | 2023-08-22 | 深圳市千岩科技有限公司 | Lamp installation verification method, device, equipment and medium |
CN116634635B (en) * | 2023-07-24 | 2023-10-17 | 深圳市千岩科技有限公司 | Lamp installation verification method, device, equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN113825276B (en) | 2023-11-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20230368426A1 (en) | Hyperspectral imaging spectrophotometer and system | |
CN110461068B (en) | LED lamp strip controller output wiring control method, lamp strip controller, system and storage medium | |
CN1982857B (en) | Method for automatically measuring luminescent device | |
US20110298379A1 (en) | System of controlling product display lighting | |
US20100188418A1 (en) | Color calibration system | |
US10568175B2 (en) | Light control system based on display device and light control method thereof | |
CN113825276B (en) | Automatic identification method, device and storage medium for output wiring sequence of LED lamp strip controller | |
CN111951696B (en) | Correction method and related device for LED display screen | |
EP1852000A2 (en) | An led assembly, and a process for manufacturing the led assembly | |
CN106888525B (en) | Lighting device and means of illumination | |
JP2005201693A (en) | Color chip processing device, color chip processing method and color chip processing program | |
CN112185300A (en) | Display screen correction method and device, storage medium and processor | |
CN101187684B (en) | Main board light-emitting diode detection device and method | |
US8094929B2 (en) | Color identifying apparatus and color identifying method | |
US7965884B2 (en) | System and method for testing LEDs on a motherboard | |
US20080205754A1 (en) | Color identifying apparatus and color identifying method | |
JP2007086549A (en) | Image display device and image display method | |
US20150304620A1 (en) | Color Calibration and Use of Multi-LED Flash Modules | |
JP2009271093A (en) | Color chip processing device, color chip processing method, and color chip processing program | |
JPH11175048A (en) | Color image conversion coefficient calculation method and color image conversion method | |
CN115835448A (en) | Method and device for adjusting light, endoscope equipment and medium | |
US20080100723A1 (en) | White balance adjustment method for a digital image capturing device | |
CN115633425A (en) | Method and device for regulating and controlling mixed light source, lighting equipment and storage medium | |
JPH09266538A (en) | Color matching method of image processor, and image processor | |
JP2005077892A (en) | Electronic equipment, temperature controller, display inspection device, and display correction 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 |