CN110599450B - LED light source position correction method and system - Google Patents

LED light source position correction method and system Download PDF

Info

Publication number
CN110599450B
CN110599450B CN201910712322.1A CN201910712322A CN110599450B CN 110599450 B CN110599450 B CN 110599450B CN 201910712322 A CN201910712322 A CN 201910712322A CN 110599450 B CN110599450 B CN 110599450B
Authority
CN
China
Prior art keywords
image
led
lamp cup
led lamp
lamp panel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910712322.1A
Other languages
Chinese (zh)
Other versions
CN110599450A (en
Inventor
苏睿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou Saints Lighting Co ltd
Original Assignee
Huizhou Saints Lighting Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou Saints Lighting Co ltd filed Critical Huizhou Saints Lighting Co ltd
Priority to CN201910712322.1A priority Critical patent/CN110599450B/en
Publication of CN110599450A publication Critical patent/CN110599450A/en
Application granted granted Critical
Publication of CN110599450B publication Critical patent/CN110599450B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/30Determination of transform parameters for the alignment of images, i.e. image registration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/10Image acquisition
    • G06V10/12Details of acquisition arrangements; Constructional details thereof
    • G06V10/14Optical characteristics of the device performing the acquisition or on the illumination arrangements
    • G06V10/141Control of illumination
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20081Training; Learning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20084Artificial neural networks [ANN]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Quality & Reliability (AREA)
  • Multimedia (AREA)
  • Image Input (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

The invention discloses a method and a system for correcting the position of an LED light source, wherein the standard image of a through hole area of a lamp cup is stored, and the acquired image of the current lamp cup is compared with the standard image before an LED lamp panel and the lamp cup are installed, so that the accuracy of the installation of the LED lamp panel and the lamp cup is ensured, and the installation efficiency is improved; through carrying out primary correction and secondary correction to lamp cup and LED lamp plate to can avoid the tolerance of lamp cup or LED lamp plate self to cause the central axis of lamp cup and the central axis of LED lamp plate probably not overlap or not in qualified precision range, guarantee the unification of the precision and the luminance of LED product. Meanwhile, through primary correction and secondary correction, the overlapping precision of the central axis of the lamp cup and the central axis of the LED lamp panel can be improved.

Description

LED light source position correction method and system
Technical Field
The invention relates to the field of visual detection, in particular to a method and a system for correcting the position of an LED light source.
Background
Currently, vision inspection is to replace the human eye with a machine to make measurements and decisions. The visual detection means that the shot target is converted into an image signal through a machine visual product, namely an image shooting device, namely a CMOS (complementary metal oxide semiconductor) and a CCD (charge coupled device), the image signal is transmitted to a special image processing system, and the image signal is converted into a digital signal according to the information of pixel distribution, brightness, color and the like; the image system performs various operations on these signals to extract characteristics of the object, and further controls the operation of the on-site device according to the result of the discrimination. Is a valuable mechanism for production, assembly or packaging. It has immeasurable value in detecting defects and preventing defective products from being dispensed to consumers. Defective products are detected by the vision device and corrected by the correction mechanism.
However, at present, when the lamp cup and the LED lamp panel are assembled, most of the lamp cup bottom holes and the LED lamp panel are manually installed and corrected, so that the installation accuracy is inaccurate, and the installation efficiency is low. Meanwhile, when the central axis of the lamp cup and the central axis of the LED lamp panel are detected to be in a qualified range or not, tolerances can occur in the production or assembly process of the LED products, such as flatness tolerances of the light cup, diameter tolerances of an opening of the light cup and the like, and then the positions of the lamp cup and the LED lamp panel can be adjusted according to the tolerances when the correction mechanism is used for correction, so that the central axis of the lamp cup and the central axis of the LED lamp panel are possibly not overlapped or are in a qualified precision range, the precision of each LED product is not uniform, the brightness of each LED product is also not uniform, and the defective product rate is greatly increased.
Disclosure of Invention
The invention aims to overcome the defects in the prior art, and provides the LED light source position correction method and the system which can enable the assembly precision of the lamp cup and the luminous chip to be high, enable the central axis of the lamp cup and the central axis of the luminous chip to coincide or be in a qualified range and improve the coincidence precision of the central axis of the lamp cup and the central axis of the luminous chip.
The aim of the invention is realized by the following technical scheme:
the LED light source comprises a lamp cup and an LED lamp plate, a through hole area is arranged on the bottom of the lamp cup, a plurality of through holes are formed in the through hole area, and the LED light source comprises the following steps:
storing a standard image of the via area;
aiming at the current lamp cup, correspondingly acquiring a current image of the through hole area, and comparing the current image with the standard image to obtain the deflection angle of the current lamp cup;
executing the rotation operation of the deflection angle on the lamp cup;
mounting the LED lamp panel on the lamp cup;
the LED lamp panel is lightened, and the brightness value of the LED lamp panel reaches a primary brightness calibration value;
when the LED light source is lighted under the condition of the primary brightness calibration value, respectively acquiring a lighting image of the lamp cup, a lighting image of the LED lamp panel and a facula image of the LED light source, and respectively performing image preprocessing operation on the lighting image of the lamp cup, the lighting image of the LED lamp panel and the facula image of the LED light source to respectively obtain a lamp cup processing image, an LED lamp panel processing image and a facula processing image;
obtaining a central coordinate value of the lamp cup processing image, a central coordinate value of the LED lamp panel processing image and a spot data value according to the lamp cup processing image, the LED lamp panel processing image and the spot processing image respectively;
calculating a difference value between the central coordinate value of the lamp cup processing image and the central coordinate value of the LED lamp panel processing image, generating a primary correction path, and controlling the driving module to execute the primary correction path;
and comparing the light spot data value with a preset light spot threshold value, if the light spot data value is different from the preset light spot threshold value, calculating and generating a difference value between the light spot data value and the preset light spot threshold value, generating a secondary correction path, and controlling the driving module to execute the secondary correction path.
In one embodiment, when the LED light source is turned on under the condition of the primary brightness calibration value, the step respectively acquires a lighting image of the lamp cup, a lighting image of the LED lamp panel, and a spot image of the LED light source, and performs an image preprocessing operation on the lighting image of the lamp cup, the lighting image of the LED lamp panel, and the spot image of the LED light source to respectively obtain a lamp cup processing image, an LED lamp panel processing image, and a spot processing image, which specifically include:
respectively carrying out thresholding treatment on the lighting image of the lamp cup, the lighting image of the LED lamp panel and the facula image of the LED light source to generate a lamp cup binary image, an LED lamp panel binary image and a facula binary image;
respectively carrying out identification operation on the lamp cup binary image, the LED lamp panel binary image and preset LED light source outline conditions to generate a lamp cup outline analysis chart and an LED lamp panel outline analysis chart;
splicing and synthesizing the lamp cup outline analysis graph and the LED lamp panel outline analysis graph to generate an LED light source outline analysis graph;
and performing block processing operation according to the inscribed circle and the circumscribed rectangle of the LED light source outer contour analysis graph to generate a plurality of independent LED light source outer contour graphs.
In one embodiment, in the step of splicing the lamp cup outline analysis chart with the LED lamp panel outline analysis chart, generating an LED light source outline analysis chart specifically includes:
and performing contrast enhancement operation on the LED light source outline image and the facula binary image.
In one embodiment, thresholding the real-time image of the lamp cup and the real-time image of the LED lamp panel to generate a lamp cup binary image and an LED lamp panel binary image specifically includes:
and acquiring saturation parameters in the HSV color model of the lamp cup binary image, the LED lamp panel binary image and the facula binary image.
In one embodiment, the calculating a difference between the central coordinate value of the lamp cup processed image and the central coordinate value of the LED lamp panel processed image to generate a primary correction path, and controlling the driving module to execute the primary correction path specifically includes:
marking the lighting image of the lamp cup and the lighting image of the LED lamp panel respectively, and carrying out normalization processing to generate a training image of the outer outline of the lamp cup, a training image of the outer outline of the LED lamp panel and a training image of light spots;
and respectively carrying out convolutional neural network training operation on the lamp cup outline training image, the LED lamp panel outline training image and the facula training image.
In one embodiment, the preset light spot threshold includes a light spot threshold roundness degree, a light spot isocratic threshold concentricity degree, a light spot threshold size and a light spot peripheral smear.
In one embodiment, after calculating and generating the central coordinate value of the lamp cup processing image, the central coordinate value of the LED lamp panel processing image and the spot data value according to the preset calculation condition, the steps further include:
and lighting the brightness value of the LED lamp panel to a secondary brightness calibration value.
An LED light source position correction system, comprising:
the image storage module is used for storing standard images of the through hole area;
the image acquisition module is used for collecting the current image of the through hole area, and is also used for acquiring the lighting image of the lamp cup, the lighting image of the LED lamp panel and the facula image of the LED light source;
the image processing module is used for respectively carrying out image preprocessing operation on the lighting image of the lamp cup, the lighting image of the LED lamp panel and the facula image of the LED light source to respectively obtain a lamp cup processing image, an LED lamp panel processing image and a facula processing image;
the calculation module is used for calculating the difference value between the central coordinate value of the lamp cup processing image and the central coordinate value of the LED lamp panel processing image and calculating and generating the difference value between the light spot data value and the preset light spot threshold value;
the control module is used for controlling the driving module to execute the primary correction path and controlling the driving module to execute the secondary correction path;
and the driving module is used for executing the primary correction path and executing the secondary correction path.
In one embodiment, the image processing module is further configured to perform an identification operation on the lamp cup binary image, the LED lamp panel binary image, and a preset LED light source outer contour condition, so as to generate a lamp cup outer contour analysis chart and an LED lamp panel outer contour analysis chart.
In one embodiment, the image processing module is further configured to perform marking operation on the lighting image of the lamp cup and the lighting image of the LED lamp panel, and perform normalization processing to generate a lamp cup outline training image, an LED lamp panel outline training image, and a light spot training image.
Compared with the prior art, the invention has the following advantages:
the invention relates to a method and a system for correcting the position of an LED light source, wherein the standard image of a through hole area of a lamp cup is stored, and the acquired image of the current lamp cup is compared with the standard image before an LED lamp panel and the lamp cup are installed, so that the accuracy of the installation of the LED lamp panel and the lamp cup is ensured, and the installation efficiency is improved; through carrying out primary correction and secondary correction to lamp cup and LED lamp plate to can avoid the tolerance of lamp cup or LED lamp plate self to cause the central axis of lamp cup and the central axis of LED lamp plate probably not overlap or not in qualified precision range, thereby guaranteed the unification of the precision and the luminance of LED product. Meanwhile, through primary correction and secondary correction, the overlapping precision of the central axis of the lamp cup and the central axis of the LED lamp panel can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart illustrating steps of a method for correcting a position of an LED light source according to an embodiment of the present invention;
fig. 2 is a schematic structural view of a current image of a via area according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a standard image of a via region according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a lamp cup processed image and an LED lamp panel processed image according to an embodiment of the present invention;
FIG. 5 is a schematic view of a flare processed image according to an embodiment of the present invention;
FIG. 6 is a functional block diagram of an LED light source position correction system according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an LED light source position correction device according to another embodiment of the present invention;
FIG. 8 is a schematic view of the structure of FIG. 7 from another perspective;
FIG. 9 is a schematic view of the structure of FIG. 7 from another view;
fig. 10 is a schematic structural view of an LED light source position correction device according to another embodiment of the present invention.
Detailed Description
In order that the invention may be readily understood, a more complete description of the invention will be rendered by reference to the appended drawings. The drawings illustrate preferred embodiments of the invention. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
It will be understood that when an element is referred to as being "fixed to" another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. The terms "vertical," "horizontal," "left," "right," and the like are used herein for illustrative purposes only and are not meant to be the only embodiment.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The term "and/or" as used herein includes any and all combinations of one or more of the associated listed items.
Referring to fig. 1, an LED light source position correction method includes a lamp cup and an LED lamp plate, wherein a through hole area is provided on the bottom of the lamp cup, and a plurality of through holes are provided on the through hole area, comprising the following steps:
s110, storing standard images of the through hole areas;
s120, aiming at the current lamp cup, correspondingly acquiring a current image of the through hole area, and comparing the current image with a standard image to obtain a deflection angle of the current lamp cup;
s130, executing rotation operation of a deflection angle on the lamp cup;
s140, mounting the LED lamp panel on a lamp cup;
s150, lighting the LED lamp panel, and enabling the brightness value of the LED lamp panel to reach a primary brightness calibration value;
s160, respectively acquiring a lighting image of a lamp cup, a lighting image of an LED lamp panel and a spot image of the LED light source when the LED light source is lighted under the condition of a primary brightness calibration value, respectively performing image preprocessing operation on the lighting image of the lamp cup, the lighting image of the LED lamp panel and the spot image of the LED light source to respectively obtain a lamp cup processing image, an LED lamp panel processing image and a spot processing image, and respectively performing image preprocessing operation on the lamp cup processing image, the LED lamp panel processing image and the spot processing image;
s170, respectively obtaining a central coordinate value of the lamp cup processing image, a central coordinate value of the LED lamp panel processing image and a spot data value according to the lamp cup processing image, the LED lamp panel processing image and the spot processing image;
s180, calculating a difference value between a central coordinate value of the lamp cup processing image and a central coordinate value of the LED lamp panel processing image, generating a primary correction path, and controlling the driving module to execute the primary correction path;
s190, comparing the light spot data value with a preset light spot threshold value, if the light spot data value is different from the preset light spot threshold value, calculating to generate a difference value between the light spot data value and the preset light spot threshold value, generating a secondary correction path, and controlling the driving module to execute the secondary correction path.
Referring to fig. 1 again, specifically, when the LED light source is turned on under the condition of the primary brightness calibration value, the lighting image of the lamp cup, the lighting image of the LED lamp panel, and the spot image of the LED light source are collected respectively, and the lighting image of the lamp cup, the lighting image of the LED lamp panel, and the spot image of the LED light source are subjected to image preprocessing operation respectively to obtain a lamp cup processed image, an LED lamp panel processed image, and a spot processed image, which specifically include:
respectively thresholding the lighting image of the lamp cup, the lighting image of the LED lamp panel and the facula image of the LED light source to generate a lamp cup binary image, an LED lamp panel binary image and a facula binary image;
respectively carrying out identification operation on the lamp cup binary image and the LED lamp panel binary image and the preset LED light source outline conditions to generate a lamp cup outline analysis chart and an LED lamp panel outline analysis chart;
splicing and synthesizing the lamp cup outline analysis chart and the LED lamp panel outline analysis chart to generate an LED light source outline analysis chart;
and performing block processing operation according to the inscribed circle and the circumscribed rectangle of the LED light source outer contour analysis graph to generate a plurality of independent LED light source outer contour graphs.
It should be noted that the LED lamp panel includes a chip and a circuit board. Firstly, collecting a plurality of lamp cups on an incoming material disc, wherein a through hole area is formed in the bottom of each lamp cup, a plurality of through holes are formed in each through hole area, a correction server clamps the lamp cups on the incoming material disc to an industrial camera for photographing by controlling an LED light source position correction device, the purpose is to collect and store the current image of the through hole area, as shown in fig. 2, and compare the collected current image with a pre-stored through hole area standard image in the correction server, as shown in fig. 3, the pre-stored through hole area standard image is compared to see if the hole position of the current image of the through hole area is consistent with the position of the middle hole of the pre-stored through hole area standard image, if not, the correction server calculates a deviation angle through a built-in function, and sends an instruction to the LED light source position correction device to rotate according to the deviation angle, so that the position of the current image is identical with the position of the standard image. Therefore, through the correction, the mounting precision of the lamp cup and the LED lamp panel can be improved, and the mounting efficiency is further improved. The corrected lamp cup is assembled with the LED lamp panel, and the next correction operation is performed after the assembly is completed. Further, the correction server sends an instruction for lighting the LED lamp panel to an external power supply, so that the brightness of the LED lamp panel is the same as the brightness of a preset primary brightness correction value in the correction server, and the purpose is to obtain images of the LED lamp panel, the lamp cup and the light spots more clearly; then, a target area is set, a lighting image of a lamp cup, a lighting image of an LED lamp panel and a spot image of an LED light source are acquired by using an industrial camera, the lighting image of the lamp cup, the lighting image of the LED lamp panel and the spot image of the LED light source are respectively subjected to thresholding, a lamp cup binary image, an LED lamp panel binary image and a spot binary image are generated, a part of binary images which do not accord with information in a blob file are filtered through blob analysis in a correction server, the blob file is a large file, the blob file is a picture or a sound file, the outline condition of the LED light source is preset as a bolb file in the application, and the blob file is characteristic information such as area, length, width, angle, circle center and the like and is stored for comparing the lamp cup binary image, the LED lamp panel binary image and the spot binary image so as to obtain a lamp cup outline analysis map and an LED lamp panel outline analysis map. The correction server is used for splicing and synthesizing the lamp cup outline analysis graph and the LED lamp panel outline analysis graph to generate an LED light source outline analysis graph; then, aiming at the LED light source outline analysis chart, the minimum inscribed circle of the inner outline of the lamp cup opening, the minimum inscribed circle of the lamp cup arc and the minimum circumscribed rectangle of the chip are calculated, and the image is cut by adopting a sub-pixel point cutting method, so that each small image comprises a lamp cup through hole area current image, a lamp cup processing image, an LED lamp panel processing image and a light spot processing image, namely the LED light source outline chart comprises a lamp cup through hole area current image, a lamp cup processing image, an LED lamp panel processing image and a light spot processing image.
Still further, referring to fig. 5, the correction server designs a primary correction path according to the difference between the central coordinate value of the lamp cup processing image and the central coordinate value of the LED lamp panel processing image, and sends an instruction to the LED light source position correction device to correct according to the primary correction path, according to the difference between the central coordinate value of the lamp cup processing image and the central coordinate value of the LED lamp panel processing image, wherein the lamp cup processing image, the LED lamp panel processing image and the light spot processing image are shown in fig. 4, and the light spot processing image is shown in fig. 5. After primary correction is completed, the spot data value is compared with a preset spot threshold, wherein the preset spot threshold comprises the roundness of the spot threshold and the concentricity of the light intensity threshold of the spot, the size of the spot threshold and the periphery smear of the spot, if the spot data value is different from the preset spot threshold by manually setting the preset spot threshold at a correction server, a built-in calculation function calculates and generates a difference value between the spot data value and the preset spot threshold, a secondary correction path is designed and generated, and an instruction is sent to an LED light source position correction device to correct according to the secondary correction path, so that the overlapping precision of the central axis of a lamp cup and the central axis of an LED lamp panel can reach +/-0.01 mm.
Referring to fig. 1 again, in a further embodiment, in the step of splicing the lamp cup outline analysis chart and the LED lamp panel outline analysis chart, the generating an LED light source outline analysis chart specifically includes:
and performing contrast enhancement operation on the LED light source outer contour map and the facula binary image.
It should be noted that, the image contrast of one lamp cup processing image, one LED lamp panel processing image and one light spot processing image is enhanced by using the retinex image enhancement algorithm, so that the characteristics of the image are clearer.
Referring to fig. 1 again, in one embodiment, in the step of thresholding the real-time image of the lamp cup and the real-time image of the LED lamp panel to generate a lamp cup binary image and an LED lamp panel binary image, the method specifically includes:
and obtaining saturation parameters in the HSV color model of the lamp cup binary image, the LED lamp panel binary image and the facula binary image.
Referring to fig. 1 again, in one embodiment, in the step of calculating the difference between the central coordinate value of the lamp cup processed image and the central coordinate value of the LED lamp panel processed image, a primary correction path is generated, and the control driving module executes the primary correction path, which specifically includes:
marking the lighting image of the lamp cup and the lighting image of the LED lamp panel respectively, and carrying out normalization processing to generate a training image of the outer outline of the lamp cup, a training image of the outer outline of the LED lamp panel and a training image of light spots;
and respectively carrying out convolutional neural network training operation on the lamp cup outline training image, the LED lamp panel outline training image and the facula training image.
The convolutional neural network is based on a residual neural network and a full convolutional network architecture and comprises a plurality of convolutional layers, but has the advantages of accurate positioning, small calculated amount, high speed, easy training and the like after being optimized.
Referring to fig. 1 again, in one embodiment, before calculating the central coordinate value of the generated lamp cup processing image, the central coordinate value of the LED lamp panel processing image and the spot data value according to the preset calculation conditions, the method further includes:
and (5) lighting the brightness value of the LED lamp panel to a secondary brightness calibration value.
It should be noted that, the secondary brightness calibration value is larger than the primary brightness calibration value, and the secondary brightness calibration value needs to acquire a clear flare processing image, so that a more enhanced brightness is required.
Further, in another embodiment, a method for correcting a position of an LED light source includes the steps of:
s101, mounting an LED lamp panel on a lamp cup;
s102, lighting the LED lamp panel, and enabling the brightness value of the LED lamp panel to reach a primary brightness calibration value;
s103, respectively acquiring a lighting image of the lamp cup, a lighting image of the LED lamp panel and a facula image of the LED light source when the LED light source is lighted under the condition of a primary brightness calibration value;
s104, storing the lighting image of the lamp cup, the lighting image of the LED lamp panel and the spot image of the LED light source;
s105, calculating a central coordinate value of a lighting image of the lamp cup and a central coordinate value of a lighting image of the LED lamp panel according to the light spot lighting image of the LED light source;
s106, calculating the difference value between the central coordinate value of the lighting image of the lamp cup and the central coordinate value of the lighting image of the LED lamp panel, generating a correction path, and controlling the driving module to execute the correction path.
In step S104, the method further includes the steps of: s104a, marking the lighting image of the lamp cup and the lighting image of the LED lamp panel respectively, and carrying out normalization processing to generate a training image of the outer contour of the lamp cup, a training image of the outer contour of the LED lamp panel and a training image of light spots; s104b, establishing a matching label, binding the lamp cup outline training image, the LED lamp panel outline training image and the facula training image with each other, and storing the matching label. After the LED lamp panel is installed into the lamp cup, the correction server acquires and stores the current lighting image of the lamp cup, the lighting image of the LED lamp panel and the spot image of the LED light source, performs normalization processing, and binds the lamp cup outline training image, the LED lamp panel outline training image and the spot training image with each other by establishing a matching label, so that each lamp cup and each LED lamp panel training image are correspondingly matched with one spot training image, and the correction server acquires and stores a large number of matching labels to form a convolutional neural network, so that the correction server can directly calculate the difference value between the central coordinate value of the lighting image of the lamp cup and the central coordinate value of the lighting image of the LED lamp panel by directly acquiring the lighting image of the LED spot, and then directly controls the driving module to execute a correction path, thereby achieving the purpose that the central axis of the lamp cup and the central axis of the LED lamp panel overlap or overlap to a qualified range. The method not only simplifies the correction flow, but also greatly saves time, improves the working efficiency, and ensures more accurate adjustment precision.
Therefore, according to the LED light source position correction method, the standard images of the through hole areas of the lamp cups are stored, the collected current lamp cup images are compared with the standard images before the LED lamp panels are installed with the lamp cups, so that accuracy in installation of the LED lamp panels and the lamp cups is guaranteed, and installation efficiency is improved; through carrying out primary correction and secondary correction to lamp cup and LED lamp plate to can avoid the tolerance of lamp cup or LED lamp plate self to cause the central axis of lamp cup and the central axis of LED lamp plate probably not overlap or not in qualified precision range, thereby guaranteed the unification of the precision and the luminance of LED product. Meanwhile, through primary correction and secondary correction, the overlapping precision of the central axis of the lamp cup and the central axis of the LED lamp panel can be improved.
Referring to fig. 6, an LED light source position correction system 10 includes an image storage module 100, an image acquisition module 200, an image processing module 300, a calculation module 400, a control module 500, and a driving module 600.
The image storage module 100 is used for storing standard images of the through hole area; the image acquisition module 200 is used for collecting the current image of the hole area, and the image acquisition module 200 is also used for acquiring the lighting image of the lamp cup, the lighting image of the LED lamp panel and the spot image of the LED light source; the image processing module 300 is used for respectively performing image preprocessing operation on the lighting image of the lamp cup, the lighting image of the LED lamp panel and the facula image of the LED light source to respectively obtain a lamp cup processing image, an LED lamp panel processing image and a facula processing image; the calculating module 400 is used for calculating a difference value between a central coordinate value of the lamp cup processing image and a central coordinate value of the LED lamp panel processing image, and calculating a difference value between a generated light spot data value and a preset light spot threshold value; the control module 500 is configured to control the driving module to execute the primary correction path and control the driving module to execute the secondary correction path; the driving module 600 is used for executing a primary correction path and executing a secondary correction path, and it should be noted that the driving module 600 is an LED light source position correction device.
Referring to fig. 4 again, in a further embodiment, the image processing module 300 is further configured to perform an identification operation on the lamp cup binary image and the LED lamp panel binary image and the preset LED light source outline condition, respectively, so as to generate a lamp cup outline analysis chart and an LED lamp panel outline analysis chart.
Referring to fig. 4 again, in a further embodiment, the image processing module 300 is further configured to perform a marking operation on the lighting image of the lamp cup and the lighting image of the LED lamp panel, and perform a normalization process to generate a lamp cup outline training image, an LED lamp panel outline training image, and a light spot training image.
In this way, in the above-mentioned LED light source position correction system 10, the standard image of the through hole area of the lamp cup is stored by the image storage module 100, and before the LED lamp panel and the lamp cup are installed, the collected current lamp cup image is compared with the standard image, so that the accuracy of the installation of the LED lamp panel and the lamp cup is ensured, and the installation efficiency is improved; the image processing module 300, the calculation module 400, the control module 500 and the driving module 600 are used for carrying out primary correction and secondary correction on the lamp cup and the LED lamp panel, so that the situation that the central axis of the lamp cup and the central axis of the LED lamp panel are possibly not overlapped or are not in a qualified precision range due to the tolerance of the lamp cup or the LED lamp panel can be avoided, the uniformity of the precision and the brightness of an LED product is ensured, and meanwhile, the overlapping precision of the central axis of the lamp cup and the central axis of the LED lamp panel can be improved through primary correction and secondary correction.
Referring to fig. 7, in another embodiment, the LED light source position correction device 20 includes a machine 30, a backlight assembly 40, a photographing assembly 50 and a reflecting assembly 60, wherein the machine 30 is used for installing the components, the backlight assembly 40 is used for providing illumination, the photographing assembly 50 is used for photographing the LED light source, and the reflecting assembly 60 is used for reflecting the light spot.
Referring to fig. 8, a machine 30 is provided with a via hole; the backlight assembly 40 comprises an energizing module 41 and a lamp ring 42, wherein the energizing module 41 is arranged on the machine 30, the lamp ring 42 is arranged on the machine 30, and the lamp ring 42 is electrically connected with the energizing module 41; the photographing assembly 50 comprises a mounting seat 51, a first industrial camera 52, a second industrial camera 53 and a box 54, wherein the mounting seat 51 is arranged on the machine table 30, the first industrial camera 52 is arranged on the mounting seat 51, the second industrial camera 53 is arranged on the mounting seat 51, a space is arranged between the first industrial camera 52 and the second industrial camera 53, a lens of the first industrial camera 52 is aligned with the through hole, the box 54 is arranged on the machine table 30, a light spot projection area is formed in the box 54, and the second industrial camera 53 is used for photographing the light spot projection area; the reflection assembly 60 includes a horizontal cylinder 61 and a reflection mirror 62, the horizontal cylinder 61 is disposed on the machine 30, and the reflection mirror 62 is connected to the horizontal cylinder 61.
It should be noted that, referring to fig. 2 again, the power-on module 41 is electrically connected to an external power source, the first industrial camera 52 and the second industrial camera 53 are respectively in communication with an external correction server, the spot projection area is a spot imaging area of the LED light source, and the lens of the second industrial camera 53 is used for shooting the spot of the LED light source in the spot imaging area. Further, the reflecting mirror 62 is disposed at 45 ° to the horizontal plane, and the reflecting mirror 62 is disposed at 90 ° to the lens of the second industrial camera 53, in order to ensure that the light spot in the light spot imaging area is not distorted. Still further, by providing the case 54, the entire spot projection path can be closed, thereby reducing scattering of light, and making the spot more clearly projected on the spot projection area.
The working process comprises the following steps: when the lamp cup and the LED chip are assembled and placed in the through hole by the rotating device, the power-on module 41 is powered on to light the lamp ring 42 so as to provide enough brightness for the first industrial camera 52 and the second industrial camera 53 to take pictures; next, the first industrial camera 52 photographs the lamp cup and the LED chip, and transmits the image to the correction server, and the correction server controls the rotating device to complete the primary correction; then, the power-on module 41 lights up the LED chips in the LED light sources, the horizontal cylinder 61 drives the reflector 62 to move in the direction of approaching the box 54, and the light emitted by the LED light sources is reflected to a spot projection area in the box 54 through the reflector 62; finally, the lens of the second industrial camera 53 shoots the light spot in the light spot projection area, the image is transmitted to the correction server, and the correction server controls the rotating device to complete secondary correction. Thus, the lens of the first industrial camera 52 is aligned with the through hole on the machine 30, so that the real-time images of the lamp cup and the LED chip can be clearly shot, and the central axis position of the lamp cup and the central axis position of the LED chip can be primarily corrected; shooting the spot projection area through a second industrial camera 53 to obtain a spot image of the LED light source, carrying out secondary correction on the central axis position of the lamp cup and the central axis position of the LED chip, and clamping the lamp cup and the LED chip to the next station through a rotating device after the secondary correction is completed; further, through the primary correction and the secondary correction, the correction precision can be more accurate, the precision of each LED product is uniform, and the problem that the correction precision of each LED product is inaccurate due to tolerance in the production or assembly process of the LED product can be avoided by shooting and analyzing the spot image of the LED light source.
Referring to fig. 9, in one embodiment, the backlight assembly 40 further includes a fixing plate 43 and a guide rail 44, the guide rail 44 is disposed on the fixing plate 43, and the fixing plate 43 is disposed on the machine 30. Specifically, the backlight assembly 40 further includes a support 45 and a lifting cylinder 46, the support 45 is slidably disposed on the guide rail 44, the support 45 is connected with the lifting cylinder 46, the lifting cylinder 46 is used for driving the support 45 to reciprocate in a direction close to or far away from the via hole, the lifting cylinder 46 is disposed on the fixing plate 43, and the power-on module 41 is disposed on the support 45. More specifically, the backlight assembly 40 further includes a supporting plate 47 and a connection post 48, one end of the connection post 48 is disposed on the support 45, the other end of the connection post 48 is disposed on the supporting plate 47, and the lamp ring 42 is disposed on the supporting plate 47. In this way, by arranging the lifting cylinder 46 and the guide rail 44, the support 45 can have a larger moving range, and the lamp ring 42 can better provide the photographing brightness for the first industrial camera 52 and the second industrial camera 53.
Referring to fig. 9 again, in one embodiment, the backlight assembly 40 further includes a stiffener 49, and the stiffener 49 is disposed on the fixing plate 430. In this way, by providing the reinforcing ribs 49, the mechanical strength of the fixing plate 43 can be enhanced, and the stability of the entire mechanical structure can be improved.
Referring to fig. 8 again, in a further embodiment, the photographing assembly 50 further includes a supporting leg 55, the supporting leg 55 is disposed on the mounting base 51, and the second industrial camera 53 is disposed on the supporting leg 55. Because can produce great vibrations in the middle of the operation of whole mechanism, through setting up supporting legs 55, can make the second industry camera 53 firmly set up on supporting legs 55, and then make the camera lens of second industry camera 53 rock when shooing.
Referring to fig. 7 again, in one embodiment, the LED light source position correction device 20 further includes a plurality of protrusions, and each protrusion is disposed on the inner sidewall of the through hole at intervals. So, through setting up a plurality of archs, can play the bearing effect to the lamp cup for the lamp cup can not drop.
Referring to fig. 9 again, in one embodiment, the photographing assembly 50 further includes a clamping block 56, and the clamping block 56 is disposed on the mounting base 51. Thus, by providing the clamping block 56, the first industrial camera 52 can be firmly clamped on the machine 30 without falling, and the photographing stability is ensured.
Referring to fig. 7 again, in a further embodiment, the LED light source position correction device 20 further includes a plurality of support blocks 70, and each support block 70 is disposed on the machine 30. Still further, referring to fig. 3 again, the photographing assembly 50 further includes a plurality of bearing blocks 57, and each bearing block 57 is disposed on the mounting base 51 at intervals. The application is provided with 4 bearing blocks 57 altogether, can guarantee that mount pad 51 firm joint is on board 30 through setting up bearing block 57.
In order to further improve the range of motion and the accuracy of motion of the backlight assembly 40a, as shown in fig. 10, an LED light source position correction device 80 according to another embodiment of the present invention includes: the machine 30a and the backlight assembly 40a are provided with the cylinder, the guide rail and the drag chain, and the driving structure of the backlight assembly 40a can protect the connecting harness with the backlight assembly 40a and improve the movement precision of the cylinder.
Compared with the prior art, the invention has the following advantages:
according to the LED light source position correction method and system, the standard images of the through hole areas of the lamp cups are stored, the collected current lamp cup images are compared with the standard images before the LED lamp panels are installed with the lamp cups, so that accuracy in installation of the LED lamp panels and the lamp cups is guaranteed, and installation efficiency is improved; through carrying out primary correction and secondary correction to lamp cup and LED lamp plate to can avoid the tolerance of lamp cup or LED lamp plate self to cause the central axis of lamp cup and the central axis of LED lamp plate probably not overlap or not in qualified precision range, thereby guaranteed the unification of the precision and the luminance of LED product, simultaneously, through primary correction and secondary correction, can improve the overlapping precision of the central axis of lamp cup and the central axis of LED lamp plate.
The above embodiments represent only a few embodiments of the present invention, which are described in more detail and are not to be construed as limiting the scope of the present invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention. Accordingly, the scope of protection of the present invention is to be determined by the appended claims.

Claims (10)

1. The LED light source comprises a lamp cup and an LED lamp plate, a through hole area is arranged at the bottom of the lamp cup, and a plurality of through holes are formed in the through hole area, and the LED light source is characterized by comprising the following steps:
storing a standard image of the via area;
aiming at the current lamp cup, correspondingly acquiring a current image of the through hole area, and comparing the current image with the standard image to obtain the deflection angle of the current lamp cup;
executing the rotation operation of the deflection angle on the lamp cup;
mounting the LED lamp panel on the lamp cup;
the LED lamp panel is lightened, and the brightness value of the LED lamp panel reaches a primary brightness calibration value;
when the LED light source is lighted under the condition of the primary brightness calibration value, respectively acquiring a lighting image of the lamp cup, a lighting image of the LED lamp panel and a facula image of the LED light source, and respectively performing image preprocessing operation on the lighting image of the lamp cup, the lighting image of the LED lamp panel and the facula image of the LED light source to respectively obtain a lamp cup processing image, an LED lamp panel processing image and a facula processing image;
obtaining a central coordinate value of the lamp cup processing image, a central coordinate value of the LED lamp panel processing image and a spot data value according to the lamp cup processing image, the LED lamp panel processing image and the spot processing image respectively;
calculating a difference value between the central coordinate value of the lamp cup processing image and the central coordinate value of the LED lamp panel processing image, generating a primary correction path, and controlling a driving module to execute the primary correction path;
and comparing the light spot data value with a preset light spot threshold value, if the light spot data value is different from the preset light spot threshold value, calculating and generating a difference value between the light spot data value and the preset light spot threshold value, generating a secondary correction path, and controlling a driving module to execute the secondary correction path.
2. The LED light source position correction method according to claim 1, wherein when the LED light source is turned on under the condition of the primary brightness calibration value in the step, the light-on image of the lamp cup, the light-on image of the LED lamp panel, and the spot image of the LED light source are collected, and the light-on image of the lamp cup, the light-on image of the LED lamp panel, and the spot image of the LED light source are subjected to image preprocessing operations, respectively, to obtain a lamp cup processed image, an LED lamp panel processed image, and a spot processed image, respectively, comprising:
respectively carrying out thresholding treatment on the lighting image of the lamp cup, the lighting image of the LED lamp panel and the facula image of the LED light source to generate a lamp cup binary image, an LED lamp panel binary image and a facula binary image;
respectively carrying out identification operation on the lamp cup binary image, the LED lamp panel binary image and preset LED light source outline conditions to generate a lamp cup outline analysis chart and an LED lamp panel outline analysis chart;
splicing and synthesizing the lamp cup outline analysis graph and the LED lamp panel outline analysis graph to generate an LED light source outline analysis graph;
and performing block processing operation according to the inscribed circle and the circumscribed rectangle of the LED light source outer contour analysis graph to generate a plurality of independent LED light source outer contour graphs.
3. The method for correcting the position of an LED light source according to claim 2, wherein in the step of splicing the lamp cup outline analysis map with the LED lamp panel outline analysis map, generating an LED light source outline analysis map specifically includes:
and performing contrast enhancement operation on the LED light source outline image and the facula binary image.
4. The method for correcting the position of an LED light source according to claim 2, wherein thresholding the real-time image of the lamp cup and the real-time image of the LED lamp panel to generate a lamp cup binary image and an LED lamp panel binary image comprises:
and acquiring saturation parameters in the HSV color model of the lamp cup binary image, the LED lamp panel binary image and the facula binary image.
5. The method according to claim 1, wherein calculating a difference between the central coordinate value of the lamp cup processed image and the central coordinate value of the LED lamp panel processed image in the step generates a primary correction path, and controlling the driving module to execute the primary correction path, specifically includes:
marking the lighting image of the lamp cup and the lighting image of the LED lamp panel respectively, and carrying out normalization processing to generate a training image of the outer outline of the lamp cup, a training image of the outer outline of the LED lamp panel and a training image of light spots;
and respectively carrying out convolutional neural network training operation on the lamp cup outline training image, the LED lamp panel outline training image and the facula training image.
6. The method for correcting the position of an LED light source according to claim 1, wherein the preset spot threshold includes a spot threshold roundness, a spot isocratic threshold concentricity, a spot threshold size, and a spot peripheral smear.
7. The method according to claim 1, wherein after calculating the central coordinate value of the cup processed image, the central coordinate value of the LED lamp panel processed image, and the spot data value according to the preset calculation conditions, the method further comprises:
and lighting the brightness value of the LED lamp panel to a secondary brightness calibration value.
8. An LED light source position correction system, comprising:
the image storage module is used for storing standard images of the through hole area;
the image acquisition module is used for collecting the current image of the hole area, and is also used for acquiring the lighting image of the lamp cup, the lighting image of the LED lamp panel and the facula image of the LED light source;
the image processing module is used for respectively carrying out image preprocessing operation on the lighting image of the lamp cup, the lighting image of the LED lamp panel and the facula image of the LED light source to respectively obtain a lamp cup processing image, an LED lamp panel processing image and a facula processing image;
the calculation module is used for calculating the difference value between the central coordinate value of the lamp cup processing image and the central coordinate value of the LED lamp panel processing image and the difference value between the generated light spot data value and the preset light spot threshold value;
the control module is used for controlling the driving module to execute a primary correction path and controlling the driving module to execute a secondary correction path;
and the driving module is used for executing the primary correction path and executing the secondary correction path.
9. The LED light source location correction system of claim 8, wherein the image processing module is further configured to identify the lamp cup binary image and the LED lamp panel binary image with preset LED light source outline conditions, respectively, to generate a lamp cup outline analysis map and an LED lamp panel outline analysis map.
10. The LED light source location correction system of claim 8, wherein the image processing module is further configured to perform a marking operation on the illumination image of the lamp cup and the illumination image of the LED lamp panel, and perform a normalization process to generate a lamp cup outline training image, an LED lamp panel outline training image, and a spot training image, respectively.
CN201910712322.1A 2019-08-02 2019-08-02 LED light source position correction method and system Active CN110599450B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910712322.1A CN110599450B (en) 2019-08-02 2019-08-02 LED light source position correction method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910712322.1A CN110599450B (en) 2019-08-02 2019-08-02 LED light source position correction method and system

Publications (2)

Publication Number Publication Date
CN110599450A CN110599450A (en) 2019-12-20
CN110599450B true CN110599450B (en) 2023-07-04

Family

ID=68853357

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910712322.1A Active CN110599450B (en) 2019-08-02 2019-08-02 LED light source position correction method and system

Country Status (1)

Country Link
CN (1) CN110599450B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111382841B (en) * 2020-03-04 2021-02-19 卡莱特(深圳)云科技有限公司 Method for estimating lamp point distance of screen body
CN114463272A (en) * 2021-12-31 2022-05-10 江西省通讯终端产业技术研究院有限公司 LED (light emitting diode) massive sorting method, system and equipment based on machine vision and hyperspectral imaging technology

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009262161A (en) * 2008-04-22 2009-11-12 Olympus Corp Correcting apparatus, correcting method, control device, and program
CN103091992B (en) * 2011-11-02 2015-02-11 上海微电子装备有限公司 Workpiece position correction device and correction method
CN108876773A (en) * 2018-06-06 2018-11-23 杭州电子科技大学 LED glass lamp cup aperture online test method based on machine vision

Also Published As

Publication number Publication date
CN110599450A (en) 2019-12-20

Similar Documents

Publication Publication Date Title
CN110596134B (en) Sheet glass edge flaw detection method based on image acquisition
CN107796825B (en) Device detection method
US8179434B2 (en) System and method for imaging of curved surfaces
JP5323320B2 (en) Surface inspection device
US10262431B2 (en) Three-dimensional measurement device
CN110599450B (en) LED light source position correction method and system
TW201205033A (en) Shape measuring device and calibrating method
US7625100B2 (en) System and method for inside can inspection
JP2007248241A (en) Inspection method and device of surface state
CN102322593B (en) Self-adaptive light source device and control method thereof
WO2011027848A1 (en) Illumination/image-pickup system for surface inspection and data structure
CN110161046A (en) A kind of moulding appearance detecting method and system based on stroboscopic light source
KR102364376B1 (en) Laser marking system with inspection and repair functions
ES2949050T3 (en) Procedure and device for precise alignment of the rotation angle of a tire on a rim
JP7251559B2 (en) Information processing equipment
KR101050711B1 (en) How to adjust optical autofocus for multifocal images
JP2002018687A (en) Lens holding device of image pickup device for spectacle lens
CN220730064U (en) Appearance defect detection device
CN110132999B (en) Imaging system and method for detecting FPD substrate
TWI804865B (en) Method and device for photometricical charting of a license plate for a vehicle
CN213121656U (en) Appearance inspection device and appearance inspection system
US10616545B2 (en) Retroreflective garment photography
CN117665004A (en) White plastic surface detection system and method based on machine vision
JP4045819B2 (en) Illumination optical element inspection apparatus and illumination optical element inspection method
JP3724659B2 (en) Image processing device

Legal Events

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