Manufacturing procedure testing method for lamp-drive integrated LED lamp bead
Through image recognition technology, the color and brightness of lamp beads are detected, which solves the problems of low detection efficiency and high cost in the existing technology, and realizes efficient and accurate lamp bead detection to meet the needs of industrial production.
Patent Information
- Application Number
- CN202510235393.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-28
- Publication Date
- 2025-05-13
AI Technical Summary
In the production and manufacturing process of lamp drive-in LED lamp beads, the detection efficiency is low and the cost is high, making it difficult to meet the needs of industrial production.
Image recognition technology is used to accurately quantify the color and brightness of the lamp beads, distinguish electrical connection detection and integrated lighting detection through mode instructions, and use color recognition and brightness recognition to improve detection efficiency.
Accurate inspection of lamp bead performance indicators has been achieved, inspection efficiency has been improved, labor and time costs have been reduced, and process production quality traceability has been enhanced.
Smart Images

Figure CN119986453A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of LED detection, and in particular relates to a process testing method for a lamp-driver-in-one LED lamp bead. Background Art
[0002] With the development of technology in the field of semiconductor lighting, the technology of LED lamp beads with integrated lamp driver has emerged. Through the built-in IC to control the light-emitting chip, the lamp beads can be lit and the color changed according to the set program. At the same time, the internal integrated circuit is used to accurately control the current output. It has significant advantages such as high integration, low energy consumption and fast response speed.
[0003] In the manufacturing process of integrated lamp-driver LED lamp beads, commonly used process testing methods mainly rely on spectroscopic equipment or manual inspection. During inspection, the lamp beads are placed in the inspection area of the spectroscopic equipment, and relevant optical parameters are analyzed to determine whether the lamp beads are qualified, or manual quality judgments are made based on experience to observe the lighting status of the lamp beads, color changes, etc.
[0004] However, not only does the spectrometer itself have errors in its operation, but when testing a small number of lamp beads, the spectrometer is complicated to operate and requires professional personnel to debug and operate, which greatly increases the manpower and time costs. The simple manual detection method is highly subjective and inefficient, and it is difficult to meet the needs of industrial production. Summary of the invention
[0005] Based on this, it is necessary to provide a process testing method for integrated lamp-driver LED lamp beads that can use image recognition technology to accurately quantify performance indicators such as lamp color and brightness to improve detection efficiency in response to the above technical problems.
[0006] In a first aspect, the present application provides a process testing method for a lamp-driver-in-one LED lamp bead, comprising:
[0007] In response to the acquired mode command, determining the serial port information required to receive the mode command; the mode command includes electrical connection detection and integrated lighting detection;
[0008] Receive serial port information, and send a trigger image acquisition instruction to the camera according to the serial port information; the trigger image acquisition instruction is used to instruct the camera to perform a test image shooting operation and feedback in the form of a test image set;
[0009] A test image set is received, and image recognition is performed on the test image set according to a preset recognition mode to obtain an image detection result; the recognition mode includes color recognition and brightness recognition; the recognition mode is determined by a mode instruction corresponding to the test image set;
[0010] Output the test report based on the image test results; the test report includes the location information of the problem lamp beads.
[0011] In one embodiment, in response to the acquired mode instruction, determining the serial port information required to be received by the mode instruction includes:
[0012] When the mode command is electrical connection detection, the serial port information to be received includes electrical control mode and color switching information; the information priority of the electrical control mode is higher than the color switching information; the electrical control mode includes single point control and breakpoint control;
[0013] When the mode command is integrated lighting detection, the serial port information to be received is the electrical control mode.
[0014] In one embodiment, receiving serial port information and sending a trigger image acquisition instruction to a camera according to the serial port information includes:
[0015] When the mode instruction is electrical connection detection, receiving the electrical control mode in the serial port information, and determining the electrical control mode as the first electrical control mode;
[0016] Determining a corresponding first image acquisition mode according to the first electrical control mode;
[0017] Each time the color switching information is received, a trigger image acquisition instruction corresponding to the first image acquisition mode is sent to the camera;
[0018] When the mode instruction is integrated lighting detection, receiving the electrical control mode in the serial port information, and determining the electrical control mode as the second electrical control mode;
[0019] A corresponding second image acquisition mode is determined according to the second electrical control mode, and a trigger image acquisition instruction corresponding to the second image acquisition mode is sent to the camera.
[0020] In one embodiment, determining the corresponding first image acquisition mode according to the first electrical control mode includes:
[0021] When the first electrical control mode is single-point control, the operation steps corresponding to the first image acquisition mode include:
[0022] According to the preset number of times the color switching information is received, the collected test image is determined as a specific lamp bead color test atlas;
[0023] A plurality of specific lamp bead color test atlases constitute a test image set;
[0024] When the first electrical control mode is breakpoint control, the operation steps corresponding to the first image acquisition mode include:
[0025] Each time the color switching information is received, the camera collects the test image at a preset interval and determines the collected test image as a color test set of a specific color lamp bead;
[0026] A test image set is formed by combining multiple specific color lamp bead color test atlases.
[0027] In one embodiment, determining the corresponding second image acquisition mode according to the second electrical control mode includes:
[0028] When the second electrical control mode is single-point control, the operation steps corresponding to the second image acquisition mode are that the camera acquires the test image at a certain sampling frequency according to the first time length to obtain a specific lamp bead brightness test atlas, and determines the specific lamp bead brightness test atlas as the test image set;
[0029] When the second electrical control mode is breakpoint control, the operation steps corresponding to the second image acquisition mode are that the camera acquires test images at a certain sampling frequency according to the second time length to obtain multiple lamp bead brightness test atlases, and determines the multiple lamp bead brightness test atlases as a test image set.
[0030] In one embodiment, after performing image recognition on a test image set according to a preset recognition mode, an image detection result is obtained, including:
[0031] When the mode instruction is electrical connection detection, the recognition mode is color recognition; the steps corresponding to color recognition include:
[0032] After preprocessing and parsing the test image set, the image to be tested is obtained;
[0033] The image to be detected is intercepted in part according to the position information of the lamp beads to obtain a regional detection image;
[0034] Perform HSV color extraction on the lamp beads in the area detection image to obtain the lamp bead color parameters;
[0035] The color parameters and position information of the lamp beads are used as the image detection results;
[0036] When the mode instruction is integrated lighting detection, the recognition mode is brightness recognition; the steps corresponding to brightness recognition include:
[0037] For the test image set, a partial area of the image is intercepted according to the position information of the lamp beads to obtain a regional detection image;
[0038] Calculate the brightness of the area detection image according to time changes and obtain the brightness histogram of the lamp beads;
[0039] Perform Fourier transform on the lamp bead brightness histogram to obtain the periodic brightness change result of the lamp bead;
[0040] The periodic brightness change results of the lamp beads and the position information of the lamp beads are used as image detection results.
[0041] In one embodiment, a detection report is output according to the image detection result, including:
[0042] When the color parameters of the lamp beads in the image detection results are inconsistent with the target color parameters, the detection report is output;
[0043] When the periodic brightness change of the lamp beads in the image detection result exceeds the target fluctuation, the detection report is output.
[0044] In a second aspect, the present application also provides a process testing device for a LED lamp bead with integrated lamp driver, comprising:
[0045] A mode selection module, for determining serial port information required to be received by the mode instruction in response to the acquired mode instruction;
[0046] The serial port information receiving module is used to receive the serial port information and send a trigger image acquisition instruction to the camera according to the serial port information;
[0047] A test image receiving module, used for receiving a set of test images collected by a camera;
[0048] An image recognition unit, used to perform image recognition on a test image set according to a preset recognition mode to obtain an image detection result;
[0049] The control calculation module is used to output a detection report based on the image detection results.
[0050] In a third aspect, the present application also provides a computer device including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the process testing method for any of the above-mentioned lamp-driver-in-one LED lamp beads are implemented.
[0051] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the process testing method for any of the above-mentioned lamp-driver-in-one LED lamp beads.
[0052] The process test of the above-mentioned integrated lamp-driver LED lamp bead distinguishes between electrical connection detection and integrated lighting detection through mode instructions, ensuring that the test method can match the appropriate detection method according to the different detection requirements of the LED process to improve the accuracy and efficiency of the test. The electrical connection detection adopts color recognition to ensure the correctness of the welding wire of the integrated lamp-driver LED lamp bead. The integrated lighting detection adopts brightness recognition to ensure the stability of the integrated circuit of the integrated lamp-driver LED lamp bead. The mechanism of parsing the mode instruction first and then receiving the serial port information is adopted to ensure orderly data flow and reduce false triggering. By continuously monitoring the serial port information, the real-time response of the collected test image in the image recognition is guaranteed to reduce data redundancy. The use of color recognition and brightness recognition in image recognition reduces the subjectivity and misjudgment rate of manual operation. The output detection includes clearly recording the location information of the problem lamp bead, thereby improving the process production quality traceability capability, accuracy and stability of the integrated lamp-driver LED lamp bead. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0054] Figure 1 It is a schematic diagram of the process of testing the method for manufacturing the LED lamp bead with integrated lamp driver of the present invention;
[0055] Figure 2 is a schematic flow chart of the color recognition steps in step S103;
[0056] Figure 3 is a schematic flow chart of the brightness identification sub-steps in step S103;
[0057] Figure 4 This is a structural diagram of the process testing device for the integrated LED lamp bead of the present invention. DETAILED DESCRIPTION
[0058] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0059] In one embodiment, Figure 1As shown, a process test method for LED lamp beads with integrated lamp drive is provided. This embodiment is illustrated by applying the method to a terminal, wherein the terminal includes a camera device, or is connected to an external camera. The terminal and the camera can transmit image data in real time through a communication network, or the camera can capture images and store them in a memory card. The terminal obtains image data by reading the memory card. The camera can be a high-speed camera installed in an automated assembly line, or an industrial shooting device. It can be understood that the terminal of the application of the method can also be replaced by a server, or by a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:
[0060] S101 . In response to an acquired mode instruction, determine serial port information required to be received by the mode instruction, where the mode instruction includes electrical connection detection and integrated lighting detection.
[0061] The electrical connection test is used to observe whether the circuit connection between the LED lamp bead and its driver chip is normal, and whether it can light up and change colors normally based on basic functions. Usually, when the LED lamp bead has completed the wire welding and becomes a semi-finished product, the electrical connection test is used to promptly discover poor connection problems and avoid waste in the subsequent lamp packaging process. For example, in the production of LED lamp beads with integrated lamp driver for ordinary indoor lighting, if some lamp beads are found to be unable to change color normally during the electrical connection test, it is determined that there is a connection fault, and then they are repaired or eliminated without entering the subsequent processing links.
[0062] Integrated lighting detection can also be called integrated circuit reliability detection. Integrated lighting detection is used to detect the long-term stability and reliability of the integrated circuit inside the unsealed semi-finished or finished lamp-driver-in-one lamp beads, to ensure that they will not have problems such as dark cracks and crushing in complex environments, and suddenly go out or have abnormal changes in brightness during use. For example, in the production of lamp-driver-in-one LED lamp beads for high-end commercial lighting and stage lighting purposes, if the light brightness fluctuates and flickers during the integrated lighting detection, it is determined that the integrated circuit has reliability problems and cannot remain stable under long-term working conditions.
[0063] Serial communication is performed between the process detection device of the integrated lamp-driver LED lamp bead and the terminal applied with the process testing method of the integrated lamp-driver LED lamp bead of the present application, and corresponding serial port data content is carried out according to different mode instructions to convert the electrical control mode switching button, color switching button, etc. on the process detection device of the integrated lamp-driver LED lamp bead into recognizable serial port information.
[0064] Specifically, in the actual test environment, based on the actual application requirements of the integrated LED lamp bead, the mode command is manually selected on the operation page as electrical connection detection or integrated lighting detection to determine the serial port information to be received, thereby ensuring that the serial port information actually received is reasonable and matches the test requirements. For different mode commands, only necessary and small amounts of serial port information are identified to improve data processing efficiency, reduce false touch errors during the test process, and improve test reliability.
[0065] S102, receiving serial port information, and sending a trigger image acquisition instruction to the camera according to the serial port information, wherein the trigger image acquisition instruction is used to instruct the camera to perform a test image shooting operation and provide feedback in the form of a test image set.
[0066] After determining the serial port communication that needs to be received, the serial port is continuously monitored to receive information, and when the trigger condition is met, a command is sent to the camera to perform image acquisition. The camera shoots according to the command and feeds back the captured test image to the terminal in the form of a test image set unit. Schematically, in the electrical connection detection mode, only when the received serial port information is a color switching signal, it indicates that the integrated LED lamp bead has completed the color change, so a trigger image acquisition command is sent to the camera. After receiving the trigger image acquisition command, the camera automatically presses the shutter to shoot the test image under the corresponding color. In the process of continuously monitoring the serial port, the serial port can transmit a color switching signal multiple times, indicating that the integrated LED lamp bead has switched colors multiple times. The corresponding camera captures multiple test images and feeds back the multiple test images to the terminal in the form of a test image set. Similarly, in the integrated lighting detection mode, when the received serial port information contains an electrical control mode, a trigger image acquisition command is sent to the camera.
[0067] S103, receiving a test image set, and performing image recognition on the test image set according to a preset recognition mode to obtain an image detection result. The recognition mode includes color recognition and brightness recognition, and the recognition mode is determined by a mode instruction corresponding to the test image set.
[0068] In the electrical connection detection mode, the test image set is composed of LED lamp bead images in different color states, and in the integrated lighting detection mode, the test image set is composed of white light LED lamp bead images at different times. Furthermore, color recognition is performed on the test image set in the electrical connection detection mode, and brightness recognition is performed on the test image set in the integrated lighting detection mode. Color recognition is to perform color analysis on the LED lamp bead images in different color states and extract the color results corresponding to the images. Brightness recognition is to calculate the brightness of the white light LED lamp bead images at different times to observe whether the brightness changes over time, so as to obtain image detection results.
[0069] S104. Output a test report based on the image test result, where the test report includes the location information of the problem lamp beads.
[0070] According to the image detection results, it is judged whether the process of the integrated LED lamp bead meets the requirements. Specifically, for the test image set corresponding to the electrical connection detection mode, the image detection results include the recognition color results, whether the recognition color is the same as the target color, or whether the brightness in the integrated lighting detection mode changes over time, so as to output the detection report. Exemplarily, when a specific LED lamp bead is controlled separately, in the electrical connection detection mode, the position information of the problem lamp bead is determined by the corresponding relationship between the color switching and the image acquisition sequence. Specifically, each LED lamp bead will perform a color switching test in turn, and an image will be collected each time the color is switched. If a total of 4 colors are switched, the first 4 images correspond to the lamp beads in the first row and first column, and the next 4 images correspond to the lamp beads in the first row and second column, and so on. Similarly, in the integrated lighting detection mode, each LED lamp bead will perform a brightness test in turn, and the duration of the brightness test of each lamp bead is the same. Therefore, when the test is performed, the image collected during the first test time corresponds to the lamp bead in the first row and first column, and so on. Exemplarily, when controlling multiple lamp beads at the same time, since the position of the test station in the process detection device of the integrated LED lamp bead is fixed, the lamp bead position area projected onto the captured image during the image acquisition process is also fixed. Therefore, the position information of the problematic lamp bead can be determined based on the correspondence between different areas in the test image and the position of the lamp bead on the test station. Specifically, during the initialization phase of the test system, the image processing technology is used to analyze the test station image captured by the camera to determine the position area of each lamp bead in the image, and these areas are matched one by one with the actual lamp bead positions on the test station to establish a position mapping table. During the actual test, after the camera captures the test image, the system will automatically identify the position information of each lamp bead in the image according to the pre-established position mapping table. If an abnormality of a lamp bead is detected in the upper left corner of the image, the system can quickly determine the actual position information of the lamp bead on the test station through the position mapping table.
[0071] In the process test method of the above-mentioned integrated lamp-driver LED lamp bead, by parsing the mode instructions, it is determined that the serial port information received by the system during each detection is reasonable and matches the test requirements to improve the detection accuracy. For different test modes, the minimum necessary serial port information is determined to improve data processing efficiency and reduce unnecessary instruction parsing. The image acquisition logic in different modes is different to ensure that the system performs image acquisition at the appropriate time. Both short-term color detection and long-term brightness detection can meet the requirements. The color recognition in image recognition is used to avoid the influence of color deviation. The brightness recognition can accurately judge the flickering of the LED lamp bead through the machine, which improves the accuracy and objectivity of the detection, reduces the manpower loss of relying on visual inspection and avoids the complexity of using spectroscopic equipment.
[0072] In one embodiment, in response to the acquired mode instruction, determining the serial port information required to be received by the mode instruction includes:
[0073] S21. When the mode instruction is electrical connection detection, the serial port information to be received includes electrical control mode and color switching information. The electrical control mode information has a higher priority than the color switching information. The electrical control mode includes single point control and breakpoint control.
[0074] Single-point control is a control mode used by the process detection device of the integrated LED lamp bead with lamp driver to detect LED lamp beads. In the series station of the process detection device of the integrated LED lamp bead with lamp driver, the single-point control connects the signal output pin of the previous lamp bead with the signal input pin of the next lamp bead to detect whether the functional pin of the built-in integrated circuit of the lamp bead is working normally; in the parallel station, a lighting signal is given to each lamp bead separately, and the state of the previous lamp bead will not affect the lighting test result of the next lamp bead. For example, when testing the electrical connection, if the parallel station of single-point control is used, the color change of each lamp bead can be observed separately. Furthermore, the single-point control focuses on detecting the basic light-emitting function of each LED lamp bead in the parallel station, while the focus of the serial station is on the coordination and information transmission of the detection function pins.
[0075] Breakpoint control means breakpoint resume. Generally, breakpoint control is applied to serial workstations. Breakpoint resume connects the signal output pin of the previous lamp bead with the signal input pin of the next lamp bead. However, under breakpoint control, if a problem occurs in a lamp bead, causing the signal transmission to be temporarily interrupted, this mode can also automatically recover and continue to transmit data to ensure the stability and reliability of the test.
[0076] Indicatively, during the electrical connection detection, taking the color switching to red as an example, when the electrical control mode is the single-point control mode, in the parallel station, each LED lamp bead will receive the red lighting information individually, and all LED lamp beads connected to the parallel station will light up red at the same time, which is convenient for observing the light-emitting conditions of all lamp beads at the same time. If a lamp bead is not lit or the color is abnormal, the individual lamp bead with electrical connection problems can be quickly located. In the series station, the LED lamp beads light up red in sequence in the series order. When the color switching button is pressed to select red, the first lamp bead lights up red first. After confirming that the first lamp bead lights up normally and the signal is successfully transmitted, the second lamp bead lights up red, and so on. If the third lamp bead does not light up when it should light up red, and the first two lamp beads are normal, it can be inferred that the signal input pin of the third lamp bead or the part of its built-in integrated circuit that processes the red signal may have an electrical connection problem, such as a broken pin, a cold solder joint inside the integrated circuit, etc. When the electrical control mode is breakpoint control, after pressing the color switch button to select red, under normal circumstances, the lamp beads will light up red light in series order, starting from the first lamp bead and lighting up one by one. However, if an electrical connection failure occurs in a lamp bead during the lighting process, such as an internal circuit break, causing the signal to fail to transmit normally, the breakpoint resume function will come into play. At this time, the system will detect the signal interruption and automatically adjust the signal transmission path, skipping the faulty lamp bead and continuing to let the subsequent lamp beads light up red. When detecting an LED light strip containing multiple lamp beads, if the fifth lamp bead fails, the first four lamp beads will light up red normally, the fifth lamp bead will not light up, and the sixth and subsequent lamp beads will still light up red in sequence.
[0077] Exemplarily, the color switching information may include four colors: red, green, blue, and white.
[0078] Schematically, the information of the electrical control mode has a higher priority than the color switching information, that is, the system must first determine the current lighting mode of the LED lamp bead before it can correctly parse the subsequent color switching information.
[0079] S22. When the mode instruction is integrated lighting detection, the serial port information to be received is the electrical control mode.
[0080] When the mode command is integrated lighting detection, the serial port information that the system needs to receive is only the electrical control mode. There is no need to wait for color switching information and image acquisition can be performed directly.
[0081] Schematically, when the electrical control mode is single-point control, at the parallel workstation, the integrated circuit of each LED lamp bead is independently connected to the control circuit, and each has an independent signal input and power supply. The control end realizes precise control of a single LED lamp bead by sending an independent control signal to the driving circuit of each LED lamp bead. Exemplarily, taking the white light as the state of correct lighting during the integrated lighting detection, when the reliability test is performed and the lighting command is issued, all the white lights selected for testing should light up at the same time. If a certain white light does not light up, it means that there may be a problem with the integrated circuit corresponding to the white light. At the series workstation, the lighting of each white light depends on the normal operation and signal transmission of the previous white light. The first white light receives the signal and lights up first, and then the signal is transmitted to the next white light to make it light up, and so on, lighting up one by one in sequence. Schematically, when the electrical control mode is breakpoint control, the LED lamp beads will light up the white lights in sequence in series. If there is a problem with the integrated circuit of the nth white light, the signal cannot be transmitted normally, and the breakpoint transmission mechanism will be activated at this time. The nth white light does not light up, but the detection device will automatically bypass the faulty light with a signal, so that the n+1th and subsequent white lights continue to light up in sequence.
[0082] In one embodiment, receiving serial port information and sending a trigger image acquisition instruction to a camera according to the serial port information includes:
[0083] S31. When the mode instruction is electrical connection detection, receiving the electrical control mode in the serial port information, and determining the electrical control mode as the first electrical control mode.
[0084] In the electrical connection test mode, the system needs to detect whether the LED can correctly respond to the color switching signal, so it is necessary to determine the electrical control mode first. According to the electrical control mode content in the serial port information, it is determined to be the first electrical control mode. The first electrical control mode includes single-point control and breakpoint control.
[0085] S32. Determine a corresponding first image acquisition mode according to the first electrical control mode.
[0086] After determining the first electrical control mode, match the appropriate image acquisition strategy according to the preset rules to ensure that the color change test process of the LED lamp beads can be correctly captured into images. Capturing images through the first image acquisition mode of the image acquisition strategy can reduce unnecessary image acquisition, improve recognition efficiency for subsequent image recognition, and reduce data redundancy.
[0087] S33. Each time color switching information is received, a trigger image acquisition instruction corresponding to the first image acquisition mode is sent to the camera.
[0088] In schematic form, when the color switching button is pressed manually to switch the color of the LED lamp bead to red, the system receives the color switching information in the serial port information and immediately sends a trigger image acquisition instruction corresponding to the first image acquisition mode to the camera. After receiving the instruction, the camera shoots the LED lamp bead to obtain an image of it when it emits red light. Then, the worker continues to press the color switching button to switch the color of the LED lamp bead to green, blue, etc. each time the color is switched, the system repeats the above operation of receiving the color switching information and sending the trigger image acquisition instruction to the camera, and detects whether its electrical connection is normal through the images of the LED lamp bead in different colors.
[0089] S34. When the mode instruction is integrated lighting detection, receiving the electrical control mode in the serial port information, and determining the electrical control mode as the second electrical control mode.
[0090] In the integrated lighting detection mode, the main purpose is to detect the brightness stability of the LED lamp beads when they are lit for a long time. Therefore, there is no need to receive color switching information. Image acquisition can be performed by simply determining the lighting method of the LED lamp beads.
[0091] S35. Determine a corresponding second image acquisition mode according to the second electrical control mode, and send a trigger image acquisition instruction corresponding to the second image acquisition mode to the camera.
[0092] The second electrical control mode also includes single-point control and breakpoint control. Through the image acquisition strategy of the second image acquisition mode, the actual brightness of the LED lamp beads within the set lighting time is captured to monitor the flickering or brightness attenuation problems of the LED lamp beads during long-term use.
[0093] In one embodiment, determining the corresponding first image acquisition mode according to the first electrical control mode includes:
[0094] S41: When the first electrical control mode is single-point control, the operation steps corresponding to the first image acquisition mode include:
[0095] According to the preset number of times the color switching information is received, the collected test image is determined as a specific lamp bead color test atlas. A plurality of specific lamp bead color test atlases constitute a test image set.
[0096] When the first electrical control mode is single-point control, in the parallel test station, each connected LED lamp bead will light up with colored light at the same time. Although the lighting signal is sent to the LED lamp beads one by one in the series station, they will all light up in the end. Generally, the single-point control of electrical connection detection will select the parallel station. Therefore, the first image acquisition mode will collect test images according to the preset number of times the color switching information is received. For example, a total of four color changes are detected, and a test image will be collected each time a color switching information is received. When four color switching information is received, the four collected test images constitute a specific lamp bead color test atlas. This specific lamp bead color test atlas is a test image set, which represents all the color performances of the LED lamp beads tested in this batch.
[0097] S42: When the first electrical control mode is breakpoint control, the operation steps corresponding to the first image acquisition mode include:
[0098] Each time the color switching information is received, the camera collects the test image at a preset interval, and determines the collected test image as a specific color lamp bead color test atlas. Multiple specific color lamp bead color test atlases constitute a test image set.
[0099] Schematically, breakpoint control is generally used in series workstations. After pressing the color switching button, the LED lamp beads to be tested will light up in color in turn. When an LED lamp bead has an electrical connection failure, the detection device will automatically adjust the signal transmission path, skip the faulty LED lamp bead, and continue to light up the subsequent LED lamp beads. Exemplarily, the camera captures test images at a preset interval. The preset interval is the time it takes for the LED lamp beads to transmit signals, that is, the camera takes a test image for each lamp bead that lights up. For each color switching information, the camera will capture an image that is consistent with the number of test lamp beads, forming a color test atlas of lamp beads with a specific color, and determining it as a test image set. Exemplarily, the camera captures test images at a preset interval. The preset time interval is the time it takes for all lamp beads to transmit signals and light up. The camera waits until all lamp beads have finished lighting up before taking a test image.
[0100] In one embodiment, determining the corresponding second image acquisition mode according to the second electrical control mode includes:
[0101] S51. When the second electrical control mode is single-point control, the operation steps corresponding to the second image acquisition mode are that the camera acquires test images at a certain sampling frequency according to the first time length to obtain a specific lamp bead brightness test set, and determines the specific lamp bead brightness test set as a test image set.
[0102] In the integrated lighting detection mode, when the second electrical control mode is single-point control, all lamp beads in the series-parallel workstations light up together. Exemplarily, the first time length is 30 minutes, the sampling frequency is once every 30 seconds, and the specific lamp beads continue to emit white light. A total of 60 test images are collected within 30 minutes, constituting a specific lamp bead brightness test atlas, and determined as a test image set.
[0103] S52. When the second electrical control mode is breakpoint control, the operation steps corresponding to the second image acquisition mode are that the camera acquires test images at a certain sampling frequency according to the second time length to obtain multiple lamp bead brightness test atlases, and determines the multiple lamp bead brightness test atlases as a test image set.
[0104] In the integrated lighting detection mode, when the second electrical control mode is breakpoint control, it is necessary to wait for signal configuration to light up all the lamp beads to be tested. This mode is generally selected for stability detection of LED lamp beads. Exemplarily, the second time length is 60 minutes, and the sampling frequency can be gradually increased from one per minute at the beginning to one per 30 seconds, and multiple lamp bead brightness test atlases are obtained, which are determined as a test image set.
[0105] In one embodiment, after performing image recognition on a test image set according to a preset recognition mode, an image detection result is obtained, including:
[0106] When the mode command is electrical connection detection, the recognition mode is color recognition, such as Figure 2 As shown, the steps corresponding to color recognition include:
[0107] S201, preprocess and analyze the test image set to obtain an image to be detected.
[0108] The test image set may contain multiple images. Since the image acquisition process is affected by various factors, preprocessing is required, which may include image enhancement. By adjusting the image brightness, contrast and other parameters, the details of the lamp beads can be made clearer. De-noising can also be performed, using filtering algorithms to remove noise points in the image and improve image quality. Exemplarily, Gaussian filtering is used to remove Gaussian noise in the image, so that the outline and color of the lamp beads can be presented more accurately. After these preprocessing operations, an image to be tested that is more suitable for subsequent testing is obtained. Schematically, the image to be tested also needs to include information such as the color in which the image was acquired, and the target color is included in the accompanying information of the image.
[0109] S202, intercepting a part of the image to be detected according to the position information of the lamp beads to obtain a regional detection image.
[0110] Schematically, after acquiring the image to be detected, a partial area of the image to be detected is intercepted according to the position information of each lamp bead in the image known in the above steps. Schematically, if it is known that the coordinate range of a certain lamp bead in the image is (100,100) in the upper left corner and (200,200) in the lower right corner, the image within the coordinate range is intercepted as the regional detection image of the lamp bead, so as to focus on the image part of each lamp bead, avoid interference of other lamp beads or background information on the detection result, and make the detection more accurate.
[0111] S203, extract the HSV color of the lamp beads from the area detection image to obtain the color parameters of the lamp beads.
[0112] HSV (Hue, Saturation, Value, color space) H represents hue, S represents saturation, and V represents brightness. Performing HSV color extraction on the area detection image is to convert the image from the common RGB (red, green, and blue) color space to the HSV color space so that it is less affected by external light, and then extract the hue, saturation, and brightness parameters of the lamp bead color respectively. Taking the H value as the standard, red is 0±10, green is 120±10, blue is 240±10, and white light needs to meet the conditions of S<20, V>80. For example, the algorithm calculates that the hue value of a certain lamp bead is 120, the saturation value is 80%, and the brightness value is 60%. These parameters can accurately describe the green characteristics of the lamp bead.
[0113] S204: Use the lamp bead color parameters and the lamp bead position information as the image detection result.
[0114] The previously acquired lamp bead color parameters and lamp bead position information are combined to form an image detection result for subsequent analysis and judgment.
[0115] When the mode command is integrated lighting detection, the recognition mode is brightness recognition, such as Figure 3 As shown, the steps corresponding to brightness recognition include:
[0116] S301, intercepting a part of the image area of the test image set according to the position information of the lamp beads to obtain a regional detection image.
[0117] As with color recognition, the test image is parsed and preprocessed according to the lamp bead position range, and arranged in chronological order to obtain a regional detection image.
[0118] S302, calculating the brightness of the area detection image according to the time change to obtain a lamp bead brightness histogram.
[0119] Since the test image set is collected at different time points, for each area detection image of a lamp bead, its brightness can be calculated based on the pixel value of the image. For example, the brightness standard is measured by the brightness of the image and the grayscale value of the pixel. By calculating the brightness of each area detection image at different time points, the brightness data of the lamp bead at different times can be obtained. A lamp bead brightness histogram is generated based on the brightness data. The brightness histogram shows the distribution of lamp beads at different brightness values. The horizontal axis represents the brightness value, and the vertical axis represents the number of pixels or the frequency of occurrence at the brightness value.
[0120] S303, performing Fourier transform on the lamp bead brightness histogram to obtain the result of periodic brightness change of the lamp bead.
[0121] By performing Fourier transform on the lamp bead brightness histogram, we can analyze the time periodicity of the lamp bead brightness change, determine the brightness change amplitude information, and obtain the lamp bead periodic brightness change results.
[0122] S304, taking the periodic brightness change result of the lamp beads and the position information of the lamp beads as the image detection result.
[0123] The obtained periodic brightness change results of the lamp beads and the position information of the lamp beads are combined to form an image detection result, which is used for subsequent evaluation of the performance of the lamp beads.
[0124] In one embodiment, a detection report is output according to the image detection result, including:
[0125] S61. When the lamp bead color parameters in the image detection result are inconsistent with the target color parameters, a detection report is output.
[0126] After obtaining the image detection results, the color parameters of the lamp beads are automatically and accurately compared with the target color parameters. For example, if the hue of a lamp bead should be around 0 degrees, representing pure red, but the actual detection result is 30 degrees, which is obviously deviated from the target value, it means that the color of the lamp bead has deviated. Therefore, the system will immediately start the test report output process, and the test report will record in detail the location information of the lamp beads with color deviations, so that the staff can quickly locate the problem lamp beads. At the same time, the report will also list the actual color parameters of the lamp beads and the target color parameters, and the detection process obtained by the serial port information, so that workers can analyze the possible causes of color deviations, such as production process problems, unstable raw material quality, etc., to provide a basis for subsequent quality improvements.
[0127] S62. When the periodic brightness variation of the lamp beads in the image detection result exceeds the target fluctuation, a detection report is output.
[0128] When the integrated lighting test of the lamp beads is carried out, the periodic brightness change results of the lamp beads are obtained by analyzing the test image set. Indicatively, the brightness change amplitude of a certain lamp bead exceeds the preset target fluctuation range. For example, the target fluctuation range stipulates that the brightness change amplitude is within ±5%, but the actual detected brightness change amplitude of a certain lamp bead reaches 10%, which means that there is a problem with the brightness stability of the lamp bead. The system will quickly output the test report, which will include the location information of the lamp bead, as well as its detailed periodic brightness change data and serial port information to obtain the test process. By analyzing these data, technicians can determine whether it is a fault in the driving circuit inside the lamp bead or a performance defect of the LED chip itself that causes abnormal brightness fluctuations, and then take targeted measures, such as screening and eliminating problematic lamp beads, or optimizing and adjusting the production process.
[0129] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0130] Based on the same inventive concept, the embodiment of the present application also provides a process testing device for a lamp driver integrated LED lamp bead for implementing the process testing method for the lamp driver integrated LED lamp bead involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of the process testing device for one or more lamp drivers integrated LED lamp beads provided below can refer to the limitations of the process testing method for the lamp driver integrated LED lamp bead above, and will not be repeated here.
[0131] In an exemplary embodiment, Figure 4 As shown, a process testing device for a LED lamp bead with a lamp driver integrated therein is provided, comprising:
[0132] The mode selection module is used to determine the serial port information required to be received by the mode instruction in response to the acquired mode instruction.
[0133] The serial port information receiving module is used to receive serial port information and send a trigger image acquisition instruction to the camera according to the serial port information.
[0134] The test image receiving module is used to receive a set of test images captured by a camera.
[0135] The image recognition unit is used to obtain image detection results after performing image recognition on the test image set according to a preset recognition mode.
[0136] The control calculation module is used to output a detection report based on the image detection results.
[0137] In one embodiment, the serial port information receiving module is further used to determine a corresponding first image acquisition mode according to the first electrical control mode, and to determine a corresponding second image acquisition mode according to the second electrical control mode.
[0138] In one of the embodiments, it also includes an image processing module for preprocessing and parsing the test image set to obtain the image to be detected.
[0139] In one of the embodiments, the image processing module is further used to intercept a partial area of the image to be detected according to the position information of the lamp beads to obtain a regional detection image.
[0140] In one of the embodiments, the image recognition unit is also used to extract the HSV color of the lamp beads from the area detection image to obtain the color parameters of the lamp beads.
[0141] In one of the embodiments, the image recognition unit is also used to calculate the brightness of the area detection image according to time changes to obtain a lamp bead brightness histogram, and perform Fourier transform on the lamp bead brightness histogram to obtain a periodic brightness change result of the lamp bead.
[0142] In one of the embodiments, the control calculation module is also used to output a detection report when the lamp bead color parameters in the image detection results are inconsistent with the target color parameters, and to output a detection report when the periodic brightness change results of the lamp beads in the image detection results exceed the target fluctuation.
[0143] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the process testing method for a lamp-driver-in-one LED lamp bead as described above are implemented.
[0144] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned process testing method embodiment of the LED lamp bead with integrated lamp driver are implemented.
[0145] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. The device embodiments described above are only schematic, wherein the components described as separate parts may or may not be physically separated, and the parts displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the disclosed solution. A person of ordinary skill in the art can understand and implement it without paying any creative work.
[0146] The above-mentioned embodiments only express several implementation methods of the embodiments of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the patent of the embodiments of the present application. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the embodiments of the present application, and these all belong to the protection scope of the embodiments of the present application.
Claims
1. A process testing method for a LED lamp bead with integrated lamp driver, characterized in that: The method comprises: In response to the acquired mode instruction, determining the serial port information required to be received by the mode instruction; the mode instruction includes electrical connection detection and integrated lighting detection; Receive the serial port information, and send a trigger image acquisition instruction to the camera according to the serial port information; the trigger image acquisition instruction is used to instruct the camera to perform a test image shooting operation and feedback in the form of a test image set; receiving the test image set, and performing image recognition on the test image set according to a preset recognition mode to obtain an image detection result; the recognition mode includes color recognition and brightness recognition; the recognition mode is determined by the mode instruction corresponding to the test image set; A detection report is outputted according to the image detection result; the detection report includes the location information of the problem lamp beads.
2. The method according to claim 1, characterized in that The step of determining, in response to the acquired mode instruction, the serial port information required to be received by the mode instruction includes: When the mode instruction is the electrical connection detection, the serial port information to be received includes electrical control mode and color switching information; the information priority of the electrical control mode is higher than the color switching information; the electrical control mode includes single point control and breakpoint control; When the mode instruction is the integrated lighting detection, the serial port information to be received is the electrical control mode.
3. The method according to claim 2, characterized in that The receiving the serial port information and sending a trigger image acquisition instruction to the camera according to the serial port information includes: When the mode instruction is the electrical connection detection, receiving the electrical control mode in the serial port information, and determining the electrical control mode as the first electrical control mode; Determining a corresponding first image acquisition mode according to the first electrical control mode; Each time color switching information is received, a trigger image acquisition instruction corresponding to the first image acquisition mode is sent to the camera; When the mode instruction is the integrated lighting detection, receiving the electrical control mode in the serial port information, and determining the electrical control mode as the second electrical control mode; A corresponding second image acquisition mode is determined according to the second electrical control mode, and a trigger image acquisition instruction corresponding to the second image acquisition mode is sent to the camera.
4. The method according to claim 3, characterized in that The determining the corresponding first image acquisition mode according to the first electrical control mode includes: When the first electrical control mode is the single-point control, the operation steps corresponding to the first image acquisition mode include: According to the preset number of times the color switching information is received, the collected test image is determined as a specific lamp bead color test atlas; The test image set is formed by using a plurality of the specific lamp bead color test atlases; When the first electrical control mode is the breakpoint control, the operation steps corresponding to the first image acquisition mode include: Each time the color switching information is received, the camera collects a test image at a preset interval, and determines the collected test image as a color test atlas of a specific color lamp bead; A plurality of the specific color lamp bead color test atlases constitute the test image set.
5. The method according to claim 3, characterized in that: The determining the corresponding second image acquisition mode according to the second electrical control mode includes: When the second electrical control mode is the single-point control, the operation steps corresponding to the second image acquisition mode are that the camera acquires test images at a certain sampling frequency according to the first time length to obtain a specific lamp bead brightness test atlas, and determines the specific lamp bead brightness test atlas as the test image set; When the second electrical control mode is the breakpoint control, the operation steps corresponding to the second image acquisition mode are that the camera acquires test images at a certain sampling frequency according to the second time length to obtain multiple lamp bead brightness test atlases, and determines the multiple lamp bead brightness test atlases as the test image set.
6. The method according to claim 1, characterized in that The step of performing image recognition on the test image set according to a preset recognition mode to obtain an image detection result includes: When the mode instruction is electrical connection detection, the recognition mode is color recognition; the steps corresponding to the color recognition include: Preprocessing and parsing the test image set to obtain an image to be detected; Cutting out a partial area of the image to be detected according to the position information of the lamp beads to obtain a regional detection image; Performing lamp bead HSV color extraction on the area detection image to obtain lamp bead color parameters; The color parameters of the lamp beads and the position information of the lamp beads are used as image detection results; When the mode instruction is integrated lighting detection, the recognition mode is brightness recognition; the steps corresponding to the brightness recognition include: For the test image set, a partial image region is intercepted according to the position information of the lamp beads to obtain a region detection image; Calculate the brightness of the area detection image according to time changes to obtain a lamp bead brightness histogram; Performing Fourier transform on the lamp bead brightness histogram to obtain the periodic brightness change result of the lamp bead; The periodic brightness change result of the lamp bead and the position information of the lamp bead are used as the image detection result.
7. The method according to claim 6, characterized in that Outputting a detection report according to the image detection result includes: When the lamp bead color parameters in the image detection result are inconsistent with the target color parameters, output a detection report; When the periodic brightness variation result of the lamp beads in the image detection result exceeds the target fluctuation, a detection report is output.
8. A process testing device for a LED lamp bead with integrated lamp driver, characterized in that: The device comprises: A mode selection module, configured to determine, in response to the acquired mode instruction, the serial port information required to be received by the mode instruction; A serial port information receiving module, used for receiving the serial port information and sending a trigger image acquisition instruction to the camera according to the serial port information; A test image receiving module, used to receive a set of test images captured by the camera; An image recognition unit, used to perform image recognition on the test image set according to a preset recognition mode to obtain an image detection result; The control calculation module is used to output a detection report according to the image detection result.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.