Method, device and computer equipment for detecting qualified LED lens assembly
By determining the upper and lower half circles of the LED lens group in the lens diagram, calculating the pixel value ratio, and automatically judging the combination of lenses, the problem of low accuracy of traditional manual detection is solved, and efficient automatic detection is achieved.
Patent Information
- Application Number
- CN202210319916.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-29
- Publication Date
- 2025-08-22
- Estimated Expiration
- 2042-03-29
AI Technical Summary
The qualification accuracy of traditional manual detection LED lens groups is not high, making it difficult to achieve efficient automated inspection.
By determining the upper and lower half circles of each lens luminous circle in the LED lens group in the lens diagram, the pixel value ratio of each semicircle is calculated, and the qualifiedness of the lens group is judged based on the set threshold value, and an automated detection method is adopted.
The accuracy and efficiency of the qualified detection of the LED lens group are improved, and an automated detection process is realized.
Smart Images

Figure CN114638815B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of optical measurement technology, and in particular to a qualified detection method, device and computer equipment for an LED lens assembly. Background Art
[0002] With the development of optics, LED (Light Emitting Diode) technology has emerged. A key component in LCD TVs is the backlight. The backlight is a light source located behind the LCD display and directly affects the visual effect of the LCD display module. The LED lens group, composed of an LED module and a lens group, is the core component of the backlight. Testing whether the LED lens group is qualified is an important part of the production of LED lens groups. The traditional method of testing the quality of LED lens groups mainly relies on manual visual inspection, which results in low accuracy in testing the quality of LED lens groups. Summary of the Invention
[0003] Based on this, it is necessary to provide a qualified detection method, device and computer equipment for LED lens groups that can improve the accuracy of qualified detection of LED lens groups in order to solve the above technical problems.
[0004] In a first aspect, the present application provides a method for detecting the quality of an LED lens assembly. The method comprises:
[0005] Determine the upper and lower semicircles of the luminous circles of each lens in the LED lens group in the lens diagram;
[0006] The pixel values of each upper semicircle and the pixel values of each lower semicircle are summed to obtain a total pixel value of the upper semicircle and a total pixel value of the lower semicircle;
[0007] If the ratio of the total pixel value of the upper semicircle to the total pixel value of the lower semicircle is less than a first threshold value and greater than a second threshold value, determine the left semicircle and the right semicircle of the light-emitting circle of each lens in the LED lens group;
[0008] The pixel values of the left semicircles and the pixel values of the right semicircles are summed to obtain a total pixel value of the left semicircles and a total pixel value of the right semicircles;
[0009] If the ratio between the total pixel value of the left semicircle and the total pixel value of the right semicircle is less than the first threshold and greater than the second threshold, the LED lens assembly is determined to be a qualified product.
[0010] In one embodiment, before determining the upper semicircle and the lower semicircle of the light-emitting circle of each lens in the LED lens group in the lens diagram, the method further includes:
[0011] Obtain lens color map or brightness map;
[0012] performing denoising processing on the lens color image or brightness image;
[0013] In the denoised lens color image or brightness image, pixel points whose pixel values are greater than or equal to a preset pixel threshold are set as a first pixel value, and pixel points whose pixel values are less than the preset pixel threshold are set as a second pixel value;
[0014] The pixel points corresponding to the second pixel value are removed from the lens color map or brightness map to obtain a lens map of interest.
[0015] In one embodiment, the method further comprises:
[0016] If the ratio between the total pixel value of the upper semicircle and the total pixel value of the lower semicircle is greater than or equal to the first threshold, or less than or equal to the second threshold, the LED lens assembly is determined to be an unqualified product.
[0017] In one embodiment, the method further comprises:
[0018] If the ratio between the total pixel value of the left semicircle and the total pixel value of the right semicircle is greater than or equal to the first threshold, or less than or equal to the second threshold, the LED lens assembly is determined to be an unqualified product.
[0019] In one embodiment, the method further comprises:
[0020] The information that the LED lens group is a qualified product is sent to the controller to control the LED lens group to flow to the qualified product line.
[0021] In a second aspect, the present application also provides a qualified detection device for an LED lens assembly. The device comprises:
[0022] The first determining module is used to determine the upper semicircle and the lower semicircle of the light-emitting circle of each lens in the LED lens group in the lens diagram;
[0023] A first summing module is used to sum the pixel values of each upper semicircle and the pixel values of each lower semicircle respectively to obtain a total pixel value of the upper semicircle and a total pixel value of the lower semicircle;
[0024] a second determining module, configured to determine the left and right semicircles of the light-emitting circles of each lens in the LED lens group if the ratio of the total pixel value of the upper semicircle to the total pixel value of the lower semicircle is less than a first threshold value and greater than a second threshold value;
[0025] A second summing module is used to sum the pixel values of each left semicircle and the pixel values of each right semicircle respectively to obtain a total pixel value of the left semicircle and a total pixel value of the right semicircle;
[0026] The third determination module is used to determine that the LED lens group is a qualified product if the ratio between the total pixel value of the left semicircle and the total pixel value of the right semicircle is less than the first threshold and greater than the second threshold.
[0027] In one embodiment, the apparatus further comprises:
[0028] A preprocessing module is configured to obtain a lens color image or a brightness image; perform denoising on the lens color image or the brightness image; in the denoised lens color image or the brightness image, set pixel points having pixel values greater than or equal to a preset pixel threshold as a first pixel value, and set pixel points having pixel values less than the preset pixel threshold as a second pixel value; and remove pixel points corresponding to the second pixel value from the lens color image or the brightness image to obtain a lens image of interest.
[0029] In one embodiment, the second determination module is further used to determine that the LED lens group is an unqualified product if the ratio between the total pixel value of the upper semicircle and the total pixel value of the lower semicircle is greater than or equal to the first threshold, or less than or equal to the second threshold.
[0030] In one embodiment, the third determination module is further used to determine that the LED lens group is an unqualified product if the ratio between the total pixel value of the left semicircle and the total pixel value of the right semicircle is greater than or equal to the first threshold, or less than or equal to the second threshold.
[0031] In one embodiment, the apparatus further comprises:
[0032] The sending module is used to send information that the LED lens group is a qualified product to the controller, so as to control the LED lens group to flow to the qualified product line.
[0033] In a third aspect, the present application further provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.
[0034] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the above method when executed by a processor.
[0035] In a fifth aspect, the present application further provides a computer program product, which includes a computer program that implements the steps of the above method when executed by a processor.
[0036] The above-mentioned qualified detection method, device, computer equipment and storage medium of the LED lens group are as follows: the upper and lower semicircles of the light-emitting circle of each lens in the LED lens group are determined in the lens diagram; the pixel values of each upper semicircle and the pixel values of each lower semicircle are summed up respectively to obtain the total pixel value of the upper semicircle and the total pixel value of the lower semicircle; if the ratio of the total pixel value of the upper semicircle to the total pixel value of the lower semicircle is less than a first threshold value and greater than a second threshold value, the left and right semicircles of the light-emitting circle of each lens in the LED lens group are determined; the pixel values of each left semicircle and the pixel values of each right semicircle are summed up respectively to obtain the total pixel value of the left semicircle and the total pixel value of the right semicircle; if the ratio between the total pixel value of the left semicircle and the total pixel value of the right semicircle is less than a first threshold value and greater than a second threshold value, the LED lens group is determined to be a qualified product. Automated qualified detection of LED lens groups is achieved, effectively improving the accuracy and efficiency of qualified detection of LED lens groups. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 This is a diagram of an application environment of a qualified detection method for an LED lens assembly in one embodiment;
[0038] Figure 2 1 is a flow chart of a qualified detection method for an LED lens assembly according to an embodiment;
[0039] Figure 3 1 is a flow chart of a qualified detection method for an LED lens assembly in another embodiment;
[0040] Figure 4 Schematic diagram of an LED lens assembly;
[0041] Figure 5 Schematic diagram of the upper and lower semicircles of the light-emitting circle of each lens in an LED lens group;
[0042] Figure 6 Schematic diagram of the left and right semicircles of the light-emitting circle of each lens in an LED lens group;
[0043] Figure 7 1 is a flow chart of a method for detecting the quality of an LED lens assembly in another embodiment;
[0044] Figure 8 Schematic diagram of a pre-processing step in one embodiment;
[0045] Figure 9 1 is a structural block diagram of a qualified detection device for an LED lens assembly in one embodiment;
[0046] Figure 10 1 is a structural block diagram of a qualified detection device for an LED lens assembly in one embodiment;
[0047] Figure 11 FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0049] The qualified detection method of the LED lens assembly provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown, the terminal 102 communicates with the server 104 via a network. The data storage system can store data that the server 104 needs to process. The data storage system can be integrated on the server 104 or placed on the cloud or other network servers.
[0050] Terminal 102 determines the upper and lower semicircles of the luminous circles of each lens in the LED lens group in the lens diagram; terminal 102 sums the pixel values of each upper semicircle and the pixel values of each lower semicircle respectively to obtain the total pixel value of the upper semicircle and the total pixel value of the lower semicircle; if the ratio of the total pixel value of the upper semicircle to the total pixel value of the lower semicircle is less than the first threshold value and greater than the second threshold value, terminal 102 determines the left and right semicircles of the luminous circles of each lens in the LED lens group; terminal 102 sums the pixel values of each left semicircle and the pixel values of each right semicircle respectively to obtain the total pixel value of the left semicircle and the total pixel value of the right semicircle; if the ratio between the total pixel value of the left semicircle and the total pixel value of the right semicircle is less than the first threshold value and greater than the second threshold value, terminal 102 determines that the LED lens group is a qualified product.
[0051] Terminal 102 may include, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices may include smart speakers, smart TVs, smart air conditioners, and smart car devices. Portable wearable devices may include smart watches, smart bracelets, and head-mounted devices. Server 104 may be implemented as a standalone server or a server cluster consisting of multiple servers.
[0052] In one embodiment, Figure 2 As shown, a qualified detection method for LED lens group is provided, which is applied to Figure 1 Taking the terminal 102 in FIG. 1 as an example, the method includes the following steps:
[0053] S202, determining the upper and lower semicircles of the light-emitting circles of each lens in the LED lens group in the lens diagram.
[0054] Among them, the lens image can refer to an image generated after the lens color image is preprocessed. The lens color image or brightness image can refer to an image of the LED lens group collected by a data acquisition instrument, and the lens color image can refer to an image collected by a camera, etc. The brightness image can refer to an image collected by a brightness colorimeter, etc. The preprocessing can include at least one of denoising, grayscale processing, and binarization processing. The LED lens group can refer to a combination of one or more LEDs and lenses, for example, Figure 4 This is a schematic diagram of an LED lens assembly. As shown, the LED lens assembly includes eight lenses and LEDs, with a one-to-one correspondence between the LEDs and lenses. The lens luminous circle can refer to the ideal lens luminous area determined in the lens diagram. The upper semicircle can refer to the upper half of the lens luminous circle, bisected by the horizontal axis and passing through the center of the lens luminous circle. The lower semicircle can refer to the lower half of the lens luminous circle, bisected by the horizontal axis and passing through the center of the lens luminous circle. Figure 5 This diagram shows the upper and lower halves of the light-emitting circles of each lens in an LED lens assembly. As shown in the figure, the upper halves of the eight lens light-emitting circles in this LED lens assembly are the upper halves, and the lower halves of the eight lens light-emitting circles are the lower halves. It should be noted that the qualified inspection method for this LED lens assembly is a method for inspecting the LED lens assembly while the LED lamp is emitting light. Figure 3 The following is a flow chart illustrating another embodiment of a qualified LED lens assembly inspection method. As shown, this method includes data acquisition, data extraction, data analysis, anomaly analysis, and flow diversion. Data acquisition can be performed using a data acquisition device, such as a camera or a luminance / colorimeter. Software for data extraction, data analysis, and anomaly analysis and flow diversion can be installed in the terminal. Users can interact with relevant pages within this software to process and analyze the data collected by the data acquisition device, thereby controlling the flow of related LED lens assembly products on the assembly line.
[0055] Specifically, the terminal can use the circle recognition algorithm to identify the lens luminous circles corresponding to each lens in the LED lens group in the lens diagram in turn, and then determine the upper and lower semicircles of each lens luminous circle.
[0056] Among them, circle recognition algorithms include CHT (Circular Hough Transform) algorithm, RHT (Randomized Hough Transform) algorithm, etc.
[0057] In one embodiment, before S202, the terminal obtains a lens color map or a brightness map; performs denoising on the lens color map or the brightness map; in the denoised lens color map or the brightness map, sets the pixel points whose pixel values are greater than or equal to a preset pixel threshold as a first pixel value, and sets the pixel points whose pixel values are less than the preset pixel threshold as a second pixel value; removes the pixel points corresponding to the second pixel value from the lens color map or the brightness map to obtain a lens map of interest.
[0058] The pixel value may refer to a value used to filter pixels in the lens color image. The preset pixel threshold may refer to a pre-set pixel threshold used to filter pixels in the lens color image. The preset pixel threshold includes a preset grayscale threshold and a preset brightness threshold. The preset grayscale threshold may be a threshold related to grayscale, and the preset brightness threshold may be a threshold related to brightness. The first pixel value may refer to one of the values corresponding to the binarization processing of the lens color image. The second pixel value may refer to another value corresponding to the binarization processing of the lens color image. For example, the first pixel value may be 1, and the second pixel value may be 0.
[0059] S204 , summing up the pixel values of each upper semicircle and the pixel values of each lower semicircle respectively to obtain the total pixel value of the upper semicircle and the total pixel value of the lower semicircle.
[0060] The pixel value may be a grayscale value or a brightness value, etc. The total pixel value of the upper semicircle may refer to the total pixel value of all upper semicircles in the LED lens group. The total pixel value of the lower semicircle may refer to the total pixel value of all lower semicircles in the LED lens group.
[0061] Specifically, the terminal can first determine the pixel values of each upper semicircle and each lower semicircle, then add the pixel values of each upper semicircle in sequence to obtain the total pixel value of the upper semicircle, and add the pixel values of the lower upper semicircles in sequence to obtain the total pixel value of the lower semicircle.
[0062] S206: If the ratio of the total pixel value of the upper semicircle to the total pixel value of the lower semicircle is less than the first threshold and greater than the second threshold, determine the left semicircle and the right semicircle of the light-emitting circle of each lens in the LED lens group.
[0063] Among them, the first threshold value may refer to a preset threshold value for judging whether the ratio of the total pixel value of the upper semicircle to the total pixel value of the lower semicircle is qualified, and the "first" in the first threshold value is to distinguish it from the second threshold value. It means that the first threshold value and the second threshold value are different threshold values. The second threshold value may refer to a preset second threshold value for judging whether the ratio of the total pixel value of the upper semicircle to the total pixel value of the lower semicircle is qualified. The left semicircle may refer to the left half of the lens luminous circle divided into two parts by the center of the lens luminous circle and with the vertical direction as the axis. The right semicircle may refer to the right half of the lens luminous circle divided into two parts by the center of the lens luminous circle and with the vertical direction as the axis. Figure 6This is a schematic diagram of the left and right semicircles of the luminous circles of each lens in an LED lens group. As shown in the figure, in this LED lens group, the left half corresponding to the luminous circles of the eight lenses is the left semicircle, and the right half corresponding to the luminous circles of the eight lenses is the right semicircle.
[0064] Specifically, the total pixel value of the upper semicircle is compared with the total pixel value of the lower semicircle to obtain a first ratio, and the total pixel value of the lower semicircle is compared with the total pixel value of the upper semicircle to obtain a second ratio. When the first ratio or the second ratio is less than the first threshold and greater than the second threshold, the left semicircle and the right semicircle of the light-emitting circle of each lens in the LED lens group are determined.
[0065] The first ratio may be the value of the total pixel value of the upper semicircle / the total pixel value of the lower semicircle, and the second ratio may be the value of the total pixel value of the lower semicircle / the total pixel value of the upper semicircle.
[0066] For example, when the first threshold is 10 / 4, that is, 2.5, and the second threshold is 4 / 10, that is, 0.4, the total pixel value of the upper semicircle is 1, and the total pixel value of the lower semicircle is 2, the first ratio can be obtained as 0.5 based on the total pixel value of the upper semicircle / the total pixel value of the lower semicircle, and the second ratio can be obtained as 2 based on the total pixel value of the lower semicircle / the total pixel value of the upper semicircle. Therefore, the first ratio satisfies the requirement of being less than the first threshold and greater than the second threshold, and the left semicircle and the right semicircle of the luminous circle of each lens in the LED lens group are determined.
[0067] In one embodiment, if the ratio between the total pixel value of the upper semicircle and the total pixel value of the lower semicircle is greater than or equal to a first threshold, or less than or equal to a second threshold, the terminal determines that the LED lens assembly is an unqualified product.
[0068] Specifically, the total pixel value of the upper semicircle is compared with the total pixel value of the lower semicircle to obtain a first ratio, and the total pixel value of the lower semicircle is compared with the total pixel value of the upper semicircle to obtain a second ratio. If the first ratio or the second ratio is greater than or equal to the first threshold, or less than or equal to the second threshold, the terminal determines that the LED lens group is an unqualified product.
[0069] For example, the first threshold is 2.5, the second threshold is 0.4, the total pixel value of the upper semicircle is 2, and the total pixel value of the lower semicircle is 10. The first ratio is 0.2 based on the total pixel value of the upper semicircle / the total pixel value of the lower semicircle, and the second ratio is 5 based on the total pixel value of the lower semicircle / the total pixel value of the upper semicircle. Therefore, if the first ratio or the second ratio is greater than or equal to the first threshold, or less than or equal to the second threshold, the terminal determines that the LED lens group is an unqualified product.
[0070] S208 , summing up the pixel values of each left semicircle and the pixel values of each right semicircle respectively to obtain the total pixel value of the left semicircle and the total pixel value of the right semicircle.
[0071] The total pixel value of the left semicircle may refer to the total pixel value of all left semicircles in the LED lens group, and the total pixel value of the right semicircle may refer to the total pixel value of all right semicircles in the LED lens group.
[0072] Specifically, the terminal can first determine the pixel values of each left semicircle and each right semicircle, then add the pixel values of each left semicircle in sequence to obtain the total pixel value of the left semicircle, and add the pixel values of the lower right semicircle in sequence to obtain the total pixel value of the right semicircle.
[0073] S210: If the ratio between the total pixel value of the left semicircle and the total pixel value of the right semicircle is less than the first threshold and greater than the second threshold, determine that the LED lens assembly is a qualified product.
[0074] Specifically, the total pixel value of the left semicircle is compared with the total pixel value of the right semicircle to obtain a third ratio, and the total pixel value of the right semicircle is compared with the total pixel value of the left semicircle to obtain a fourth ratio. If the third ratio or the fourth ratio is less than the first threshold and greater than the second threshold, the LED lens group is determined to be a qualified product.
[0075] The third ratio may be the total pixel value of the left semicircle / the total pixel value of the right semicircle, and the fourth ratio may be the total pixel value of the right semicircle / the total pixel value of the left semicircle.
[0076] In one embodiment, if the ratio between the total brightness value of the left semicircle and the total brightness value of the right semicircle is greater than or equal to a first threshold, or less than or equal to a second threshold, the terminal determines that the LED lens assembly is an unqualified product.
[0077] Specifically, the total brightness value of the left semicircle is compared with the total brightness value of the right semicircle to obtain a third ratio, and the total brightness value of the right semicircle is compared with the total brightness value of the left semicircle to obtain a fourth ratio. If the third ratio or the fourth ratio is greater than or equal to the first threshold, or less than or equal to the second threshold, the terminal determines that the LED lens group is an unqualified product.
[0078] In one embodiment, after S210 , the terminal sends information that the LED lens assembly is a qualified product to the controller to control the LED lens assembly to flow to a qualified product line.
[0079] In one embodiment, the terminal can display information indicating that the LED lens assembly is a qualified product on the product flow page to prompt the user that the LED lens assembly is a qualified product. The terminal then sends this information to a controller, which can be a programmable logic controller (PLC), to control the flow of the LED lens assembly to a qualified product line. The controller is installed in a machine, which can be part of an assembly line, to control the flow of products.
[0080] Here, assembly line equipment can refer to equipment that includes machines and at least two different product flow directions. For example, an assembly line can have two flow directions: Flow A is the qualified product line, and Flow B is the unqualified product line. The qualified product line can refer to the production line for qualified products. The unqualified product line can refer to the production line for unqualified products.
[0081] In one embodiment, after S210 , the terminal sends information that the LED lens assembly is a substandard product to the controller, so as to control the LED lens assembly to flow to a substandard product line.
[0082] In one embodiment, the terminal may display information that the LED lens group is an unqualified product on the product flow page to prompt the user that the LED lens group is an unqualified product. The terminal sends the information that the LED lens group is an unqualified product to the controller to control the flow of the LED lens group to the unqualified product line.
[0083] For example, Figure 7 The following is a flow chart of a method for testing the quality of an LED lens assembly in another embodiment. As shown in the figure, the terminal can first collect the brightness of the LED lens assembly and perform denoising on the LED lens assembly. The denoising process can use a Gaussian filter, a median filter, and a mean filter. After binarizing the brightness of the LED lens assembly, the total brightness value of the upper semicircle and the total brightness value of the lower semicircle are calculated. When K1>K, K1 is the first ratio or the second ratio, and K is the second threshold, the total brightness value of the left semicircle and the total brightness value of the right semicircle are calculated. When K2>K, K2 is the third ratio or the fourth ratio, and K is the second threshold, the LED lens assembly is determined to be a qualified product.
[0084] In the above-mentioned qualified detection method for LED lens groups, the upper and lower semicircles of the luminous circles of each lens in the LED lens group are determined in the lens diagram; the pixel values of each upper semicircle and the pixel values of each lower semicircle are summed respectively to obtain the total pixel value of the upper semicircle and the total pixel value of the lower semicircle; if the ratio of the total pixel value of the upper semicircle to the total pixel value of the lower semicircle is less than a first threshold value and greater than a second threshold value, the left and right semicircles of the luminous circles of each lens in the LED lens group are determined; the pixel values of each left semicircle and the pixel values of each right semicircle are summed respectively to obtain the total pixel value of the left semicircle and the total pixel value of the right semicircle; if the ratio between the total pixel value of the left semicircle and the total pixel value of the right semicircle is less than the first threshold value and greater than the second threshold value, the LED lens group is determined to be a qualified product. This realizes automated qualified detection of LED lens groups, effectively improving the accuracy and efficiency of qualified detection of LED lens groups.
[0085] In one embodiment, Figure 8 As shown, the preprocessing steps include:
[0086] S802: Obtain a lens color image or brightness image.
[0087] S804: Perform denoising on the lens color image or brightness image.
[0088] Among them, the denoising process can use Gaussian filter, median filter and mean filter.
[0089] S806 , in the denoised lens color image or brightness image, setting pixel points whose pixel values are greater than or equal to a preset pixel threshold as first pixel values, and setting pixel points whose pixel values are less than the preset pixel threshold as second pixel values.
[0090] In one embodiment, S806 includes the terminal performing grayscale processing on the lens color image to obtain a lens grayscale image, setting the lens grayscale points with grayscale values greater than or equal to a preset grayscale threshold as a first grayscale value, and setting the lens grayscale points with grayscale values less than the preset grayscale threshold as a second grayscale value.
[0091] The formula for converting the lens color map to the lens color map can be Gray = R*0.299+G*0.587+B*0.114, where the lens pixel in the lens color map is (R, G, B), R represents the red channel, G represents the green channel, and B represents the blue channel. Gray is the grayscale value corresponding to the lens pixel.
[0092] In one embodiment, S806 includes the terminal setting, in the brightness map, lens brightness points having brightness values greater than or equal to a preset brightness threshold as first brightness values, and setting lens brightness points having brightness values less than the preset brightness threshold as second brightness values.
[0093] S808: Remove the pixel corresponding to the second pixel value from the lens color map or the brightness map to obtain a lens map of interest.
[0094] The lens image of interest may refer to a lens image used for subsequent qualified inspection of the LED lens assembly.
[0095] In this embodiment, by obtaining a lens color map or a brightness map, in the denoised lens color map or the brightness map, the pixel points whose pixel values are greater than or equal to a preset pixel threshold are set as the first pixel value, and the pixel points whose pixel values are less than the preset pixel threshold are set as the second pixel value; the pixel points corresponding to the second pixel value are removed from the lens color map or the brightness map to obtain the lens map of interest; thus, image preprocessing is achieved, paving the way for subsequent qualified inspection of the LED lens group.
[0096] It should be understood that, although the steps in the flowcharts of the above embodiments are shown in sequence as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be performed in other orders. Moreover, at least a portion of the steps in the flowcharts of the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily to be performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of steps or stages in other steps.
[0097] Based on the same inventive concept, the present application also provides an LED lens assembly qualification detection device for implementing the aforementioned LED lens assembly qualification detection method. The solution provided by this device is similar to the solution described in the aforementioned method. Therefore, the specific limitations of the following embodiments of the LED lens assembly qualification detection device can be found in the above-mentioned limitations of the LED lens assembly qualification detection method, and will not be repeated here.
[0098] In one embodiment, Figure 9 As shown, a qualified detection device for an LED lens assembly is provided, comprising: a first determination module 902, a first summation module 904, a second determination module 906, a second summation module 908 and a third determination module 910, wherein:
[0099] A first determining module 902 is configured to determine the upper and lower semicircles of the light-emitting circles of each lens in the LED lens group in the lens diagram;
[0100] A first summing module 904 is configured to sum the pixel values of each upper semicircle and the pixel values of each lower semicircle to obtain a total pixel value of the upper semicircle and a total pixel value of the lower semicircle;
[0101] A second determining module 906 is configured to determine the left and right semicircles of the light-emitting circles of each lens in the LED lens group if the ratio of the total pixel value of the upper semicircle to the total pixel value of the lower semicircle is less than the first threshold and greater than the second threshold;
[0102] A second summing module 908 is configured to sum the pixel values of each left semicircle and the pixel values of each right semicircle to obtain a total pixel value of the left semicircle and a total pixel value of the right semicircle;
[0103] The third determination module 910 is configured to determine that the LED lens assembly is a qualified product if the ratio between the total pixel value of the left semicircle and the total pixel value of the right semicircle is less than a first threshold and greater than a second threshold.
[0104] In one embodiment, the second determination module 906 is further configured to determine that the LED lens assembly is an unqualified product if the ratio between the total pixel value of the upper semicircle and the total pixel value of the lower semicircle is greater than or equal to a first threshold, or less than or equal to a second threshold.
[0105] In one embodiment, the third determination module 910 is further used to determine that the LED lens group is an unqualified product if the ratio between the total pixel value of the left semicircle and the total pixel value of the right semicircle is greater than or equal to the first threshold, or less than or equal to the second threshold.
[0106] In one embodiment, Figure 10 As shown, the device further includes: a pre-processing module 912 and a sending module 914, wherein:
[0107] The preprocessing module 912 is used to obtain a lens color image or a brightness image; perform denoising on the lens color image or the brightness image; in the denoised lens color image or the brightness image, set the pixel points whose pixel values are greater than or equal to a preset pixel threshold as a first pixel value, and set the pixel points whose pixel values are less than the preset pixel threshold as a second pixel value; and remove the pixel points corresponding to the second pixel value from the lens color image or the brightness image to obtain the lens image of interest.
[0108] The sending module 914 is used to send information that the LED lens group is a qualified product to the controller, so as to control the LED lens group to flow to the qualified product line.
[0109] In this embodiment, the upper and lower semicircles of the luminous circles of each lens in the LED lens group are determined in the lens diagram; the pixel values of each upper semicircle and the pixel values of each lower semicircle are summed to obtain the total pixel value of the upper semicircle and the total pixel value of the lower semicircle; if the ratio of the total pixel value of the upper semicircle to the total pixel value of the lower semicircle is less than a first threshold value and greater than a second threshold value, the left and right semicircles of the luminous circles of each lens in the LED lens group are determined; the pixel values of each left semicircle and the pixel values of each right semicircle are summed to obtain the total pixel value of the left semicircle and the total pixel value of the right semicircle; if the ratio between the total pixel value of the left semicircle and the total pixel value of the right semicircle is less than the first threshold value and greater than the second threshold value, the LED lens group is determined to be a qualified product. This realizes automated qualified testing of the LED lens group, effectively improving the accuracy and efficiency of qualified testing of the LED lens group.
[0110] Each module in the above-mentioned LED lens assembly qualification detection device can be implemented in whole or in part through software, hardware, or a combination thereof. Each of the above modules can be embedded in or independent of the processor of the computer device in hardware form, or can be stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0111] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 11 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface, the display unit and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a qualified detection method for an LED lens group is implemented. The display unit of the computer device is used to form a visually visible image, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device casing, or an external keyboard, touchpad or mouse, etc.
[0112] Those skilled in the art will understand that Figure 11 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0113] In one embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor implements the above embodiments when executing the computer program.
[0114] 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 above embodiments are implemented.
[0115] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the above embodiments are implemented.
[0116] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions.
[0117] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processor involved in the various embodiments provided herein may be, but are not limited to, a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, and the like.
[0118] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0119] The above embodiments merely illustrate several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art may make various modifications and improvements without departing from the spirit of the present invention, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.
Claims
1. A method for testing the quality of an LED lens assembly, characterized in that: The method comprises: Determine the upper and lower semicircles of the luminous circles of each lens in the LED lens group in the lens diagram; Determining the upper and lower semicircles of the light-emitting circles of each lens in the LED lens group in the lens diagram includes: Identify the lens luminous circles corresponding to the lenses in the LED lens group in sequence in the lens diagram using a circle recognition algorithm, and then determine the upper and lower semicircles of the lens luminous circles; The pixel values of each upper semicircle and the pixel values of each lower semicircle are summed to obtain a total pixel value of the upper semicircle and a total pixel value of the lower semicircle; If the ratio of the total pixel value of the upper semicircle to the total pixel value of the lower semicircle is less than a first threshold value and greater than a second threshold value, determine the left semicircle and the right semicircle of the light-emitting circle of each lens in the LED lens group; The pixel values of the left semicircles and the pixel values of the right semicircles are summed to obtain a total pixel value of the left semicircles and a total pixel value of the right semicircles; If the ratio between the total pixel value of the left semicircle and the total pixel value of the right semicircle is less than the first threshold and greater than the second threshold, the LED lens assembly is determined to be a qualified product.
2. The method according to claim 1, characterized in that Before determining the upper semicircle and the lower semicircle of the light-emitting circle of each lens in the LED lens group in the lens diagram, the method further includes: Obtain lens color map or brightness map; performing denoising processing on the lens color image or brightness image; In the denoised lens color image or brightness image, pixel points whose pixel values are greater than or equal to a preset pixel threshold are set as a first pixel value, and pixel points whose pixel values are less than the preset pixel threshold are set as a second pixel value; The pixel points corresponding to the second pixel value are removed from the lens color map or brightness map to obtain a lens map of interest.
3. The method according to claim 1, characterized in that The method further comprises: If the ratio between the total pixel value of the upper semicircle and the total pixel value of the lower semicircle is greater than or equal to the first threshold, or less than or equal to the second threshold, the LED lens assembly is determined to be an unqualified product.
4. The method according to claim 1, wherein The method further comprises: If the ratio between the total pixel value of the left semicircle and the total pixel value of the right semicircle is greater than or equal to the first threshold, or less than or equal to the second threshold, the LED lens assembly is determined to be an unqualified product.
5. The method according to claim 1, wherein The method further comprises: The information that the LED lens group is a qualified product is sent to the controller to control the LED lens group to flow to the qualified product line.
6. A qualified detection device for LED lens assembly, characterized in that: The device comprises: The first determining module is used to determine the upper semicircle and the lower semicircle of the light-emitting circle of each lens in the LED lens group in the lens diagram; The first determination module is further configured to sequentially identify the lens luminous circles corresponding to the lenses in the LED lens group in the lens diagram using a circle recognition algorithm, and then determine the upper and lower semicircles of the lens luminous circles; A first summing module is used to sum the pixel values of each upper semicircle and the pixel values of each lower semicircle respectively to obtain a total pixel value of the upper semicircle and a total pixel value of the lower semicircle; a second determining module, configured to determine the left and right semicircles of the light-emitting circles of each lens in the LED lens group if the ratio of the total pixel value of the upper semicircle to the total pixel value of the lower semicircle is less than a first threshold value and greater than a second threshold value; A second summing module is used to sum the pixel values of each left semicircle and the pixel values of each right semicircle respectively to obtain a total pixel value of the left semicircle and a total pixel value of the right semicircle; The third determination module is used to determine that the LED lens group is a qualified product if the ratio between the total pixel value of the left semicircle and the total pixel value of the right semicircle is less than the first threshold and greater than the second threshold.
7. The device according to claim 6, characterized in that The device further comprises: A preprocessing module is configured to obtain a lens color image or a brightness image; perform denoising on the lens color image or the brightness image; in the denoised lens color image or the brightness image, set pixel points having pixel values greater than or equal to a preset pixel threshold as a first pixel value, and set pixel points having pixel values less than the preset pixel threshold as a second pixel value; and remove pixel points corresponding to the second pixel value from the lens color image or the brightness image to obtain a lens image of interest.
8. 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 5 are implemented.
9. 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 5 are implemented.
10. A computer program product comprising a computer program, 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 5 are implemented.
Citation Information
Patent Citations
Multi-light-source backlight lens quality detection device and method based on visual technology
CN112014076A