The present invention relates to an image calibration method for an imaging system, and in particular, relates to an image calibration method in which a detection area including a unit to be tested is photographed for many times to obtain a calibration figure so as to apply the calibration figure to an image captured subsequently for calibration.
In the field of industrial production, many automated product inspection procedures (e.g., Automated Optical Inspection) are needed to ensure production quality and accelerate production efficiency. If the image light intensity is used as the detection basis, then the same object to be tested in different locations of the detection plane should produce the same image light intensity when it is detected so that the detection results are consistent and accurate. However, when taking an image with an image sensor, due to the vignetting effect of the lens, the light intensity of the same object to be tested at different locations in the image will be different (it is darker at the periphery of the image and brighter at the inside of the image), and the difference is more obvious when taking an image with a lens with a wide field of view, so it is necessary to calibrate the image before detection.
As shown in
However, when the object to be tested is a luminescent sample 40 (e.g., a photoluminescent substance, an electroluminescent substance or a fluorescent substance.), unlike the calibration piece 10 which directly reflects light to the image sensor (as shown in
Accordingly, an urgent need exists in the art to maintain the detection accuracy in response to different sizes of objects to be tested.
An objective of the present invention is to provide an image calibration method for an imaging system, which can detect objects to be tested of different sizes while maintaining detection accuracy.
To achieve the above objective, an image calibration method provided by the present invention comprises: specifying a detection area located in an image capture scope, the detection area comprising at least one unit to be tested; capturing respective detection images when the detection area is located in at least two locations within the image capture scope; combining the plurality of detection images and calculating to obtain a calibration figure; and applying the calibration figure to a captured image to complete the calibration.
In an embodiment, the step of capturing respective detection images when the detection area is located in at least two locations within the image capture scope comprises: moving an imaging lens group and a detection platform relative to each other to move the unit to be tested in the image capture scope.
In an embodiment, the step of capturing respective detection images when the detection area is located in at least two locations within the image capture scope comprises: capturing a detection image each time the unit to be tested moves to a different location in the image capture scope.
In an embodiment, the step of moving an imaging lens group and a detection platform relative to each other comprises: moving the imaging lens group in a serpentine manner relative to the detection platform or moving the detection platform in a serpentine manner relative to the imaging lens group.
In an embodiment, the detection image comprises a plurality of light intensity values, and the step of capturing respective detection images when the detection area is located in at least two locations within the image capture scope further comprises: respectively obtaining an average light intensity value of the light intensity values of the detection areas in the detection images.
In an embodiment, the step of combining the plurality of detection images and calculating to obtain a calibration figure comprises: obtaining a plurality of light intensity values between the average light intensity values of the detection areas by means of an arithmetic method.
In an embodiment, in the step of specifying a detection area located in an image capture scope, the detection area comprises at least two units to be tested.
In an embodiment, the unit to be tested is a light emitting part of a photoluminescent substance, an electroluminescent substance or a fluorescent substance.
In an embodiment, the at least two locations are separated from each other.
In an embodiment, the image calibration method provided by the present invention further comprises specifying another detection area located in an image capture scope, wherein the another detection area comprises another unit to be tested.
In an embodiment, the step of capturing respective detection images when the detection area is located in at least two locations within the image capture scope in the present invention further comprises: respectively obtaining a specified value of the light intensity values of the detection areas in the detection images, wherein the specified value includes a mode gray scale value or a specific gray scale range.
The detailed technology and preferred embodiments implemented for the subject invention are described in the following paragraphs accompanying the appended drawings for people skilled in this field to well appreciate the features of the claimed invention.
Hereinafter, specific embodiments according to the present invention will be specifically described; however, without departing from the spirit of the present invention, the present invention may be practiced in many different forms of embodiments, and the scope claimed in the present invention should not be interpreted as being limited to what stated in the specification. In addition, the technical content of each implementation in the above summary may also be used as the technical content of an embodiment, or as a possible variation of an embodiment.
Unless the context clearly indicates otherwise, singular forms “a” and “an” as used herein also include plural forms. When terms “including” or “comprising” are used in this specification, they are used to indicate the presence of the stated features, elements or components, and do not exclude the presence or addition of one or more other features, elements and components.
Referring to
The image calibration method of the present invention may comprise the following main steps: (1) specifying a detection area 120 located in an image capture scope 110, the detection area 120 comprising at least one unit 130 to be tested; (2) capturing respective detection images when the detection area 120 is located in at least two locations Pn within the image capture scope 110; (3) combining the plurality of detection images and calculating to obtain a calibration figure; and (4) applying the calibration figure to a captured image to complete the calibration. The technical content of each step is described hereinafter by taking a light emitting diode (LED) as an example of the object 600 to be tested.
Please refer to
Please refer to
Basically, the detection images of the unit 130 to be tested captured at different locations in the image capture scope 110 spaced apart by a certain distance may be provided to the electronic apparatus 500 for calculation, and the locations may be for example located at diagonal locations in the image capture scope 110. Preferably, the unit 130 to be tested repeatedly appears at a plurality of different locations Pn (n may be replaced by any symbol or number, meaning different locations) in the image capture scope 110 to obtain a plurality of detection images. In detail, the unit 130 to be tested appears in a first location P1, a second location P2, . . . , a nth location Pn in sequence, N detection images are captured, and the locations Pn are separated from each other by a distance, e.g., a distance of the size of at least one unit 130 to be tested, and do not overlap with each other, so as to obtain a better capture speed. However, according to different detection requirements, adjacent locations Pn may also be close to or adjacent to each other, or even partially overlap with each other, so as to obtain better detection accuracy.
The detection image obtained after capturing contains a plurality of light intensity values (gray scale values), and the specified detection area 120 may be larger than, smaller than or equal to the unit 130 to be tested. After transmitting the data of the light intensity values of the detection area 120 to the electronic apparatus 500, an average light intensity value (average gray scale value) representing the center coordinates (Xn, Yn) (n may be replaced by any symbol or number corresponding to the capture location, which also means different locations) of the detection area 120 in each detection image may be obtained after calculation to form a data table. As shown in
As shown in
Please continue to refer to
In addition, after the data of the above-mentioned light intensity values (gray scale values) are transmitted to the electronic apparatus 500 for calculation, a specified value representing each detection area 120 may also be obtained, and the specified value may be a mode gray scale value or a specific gray scale range, and a data table is formed for further calculation to obtain a calibration figure.
After obtaining the calibration figure, the calibration figure may be applied to a captured image of the unit 130 to be tested with the same size and luminescent type (the coverage area of this image may be equal to the image capture scope 110 or the size thereof is not limited) during formal detection so as to obtain the calibrated result. In this way, the screening operation of products to be tested may be carried out accurately according to the calibrated image.
The method of the present invention may further comprise specifying another detection area located in an image capture scope, wherein the another detection area comprises another unit to be tested. Furthermore, before the step (4) is executed, the steps (1) to (3) are repeated with another unit to be tested that is known to be qualified. Taking the first embodiment as an example, after capturing respective detection images when the unit 130 to be tested is located in at least two locations within the image capture scope 120, another unit 140 to be tested that is located in the image capture scope 110 is specified to capture respective detection images of the unit 140 to be tested in at least two locations in the image capture scope 110. Multiple detection mages may be obtained respectively at different locations in the image capture scope 110 for the unit 130 to be tested and the unit 140 to be tested. For example, N detection images may be obtained for the unit 130 to be tested from locations P1a, P2a, . . . , Pna and calculated to obtain a calibration figure, while N detection images may be further obtained for the unit 140 to be tested from locations P1b, P2b, . . . , Pnb and calculated to obtain another calibration figure. In this way, the calibration figures obtained from the units 130 and 140 to be tested are further averaged to improve the calibration accuracy. In other words, the user may specify a plurality of units to be tested according to the requirement of accuracy, and obtain two or more calibration figures to complete the calibration figures for formal detection, thereby achieving more accurate and precise detection requirements.
The above steps may also be applied to the second embodiment: for example, specifying and controlling a plurality of units 130 and 140 to be tested to appear at a plurality of locations Pna in the image capture scope 110 to obtain N detection images and calculate to obtain a calibration figure, specifying and controlling a plurality of units 150 and 160 to be tested to appear at a plurality of locations Pnb in the image capture scope 110 to further obtain N detection images and calculate to obtain another calibration figure. In other words, the detection area 120′ of this embodiment has a larger coverage area without changing the number of times of capturing, so that a calibration figure of the image capturing scope 110 may be obtained more efficiently without excessively sacrificing detection accuracy, with only the coverage area of the detection image being larger.
According to the above descriptions, the present invention specifies the detection area including one or more units to be tested, and the detection area appears in the different locations of the image capture scope to provide the data which may be calculated to obtain a calibration figure. As compared to the prior art in which the calibration figure is obtained by using a calibration piece, the method of the present invention may obtain the calibration figure adaptable for the different luminescent types and size of the unit to be tested during formal detection, thereby providing better detection accuracy.
This application claims priority to U.S. Provisional Patent Application No. 62/989,101 filed on Mar. 13, 2020, which is hereby incorporated by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
62989101 | Mar 2020 | US |