CN111917971A - Image capturing parameter optimization and adjustment system and method - Google Patents

Image capturing parameter optimization and adjustment system and method Download PDF

Info

Publication number
CN111917971A
CN111917971A CN201910384716.9A CN201910384716A CN111917971A CN 111917971 A CN111917971 A CN 111917971A CN 201910384716 A CN201910384716 A CN 201910384716A CN 111917971 A CN111917971 A CN 111917971A
Authority
CN
China
Prior art keywords
parameter
image capturing
value
adjusting
parameters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910384716.9A
Other languages
Chinese (zh)
Other versions
CN111917971B (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.)
SYNPOWER CO Ltd
Original Assignee
SYNPOWER 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 SYNPOWER CO Ltd filed Critical SYNPOWER CO Ltd
Priority to CN201910384716.9A priority Critical patent/CN111917971B/en
Publication of CN111917971A publication Critical patent/CN111917971A/en
Application granted granted Critical
Publication of CN111917971B publication Critical patent/CN111917971B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/73Circuitry for compensating brightness variation in the scene by influencing the exposure time
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/74Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Studio Devices (AREA)

Abstract

The invention provides an image-taking parameter optimizing and adjusting system and a method, which use an optical image detection system to detect a measurement value at least at a measurement position of an object to be measured, and the method comprises the following steps of: selecting at least one light source; determining an optimal adjustment sequence of a plurality of image capturing parameters; setting a parameter adjusting range of the most preferred image capturing parameter, and setting respective default values of the rest image capturing parameters; acquiring a plurality of detection images to calculate a measurement distribution value based on the default values of the rest of the image capturing parameters and within the parameter adjusting range of the most preferred image capturing parameter, and determining the optimal value of the most preferred image capturing parameter within the parameter adjusting range according to a mathematical statistic stability formula of the measurement distribution value; and sequentially finishing the optimization of the rest imaging parameters, recording the optimal value of each imaging parameter, and enabling the optical image detection system to detect the subsequent object to be detected at the measuring position according to the optimal values of the imaging parameters.

Description

Image capturing parameter optimization and adjustment system and method
Technical Field
The present invention relates to a system and a method for adjusting parameters, and more particularly, to a system and a method for optimizing and adjusting image capturing parameters for an optical image detection system to perform image detection on an object.
Background
The conventional optical image detection system performs image detection on the PCB material to determine whether there is a defect on the PCB material. Since the conventional optical image inspection system has environmental problems due to the assembly of parts and mechanical parts, for example: the flatness of the machine, the characteristics of the PCB material to be detected, the characteristics of the camera, the brightness adjustment of the light source system, and the like all affect the correctness and stability of the image detection of the PCB material by the system, and how to find the optimal state of the parameters affecting the correctness of the detection by matching the characteristics of the PCB material to be detected in the actual detection environment is an important subject to be solved by the industry.
Disclosure of Invention
The present invention is directed to optimizing a plurality of imaging parameters for an optical image detection system to perform image detection on an object to be detected. Therefore, an objective of the present invention is to provide an image capturing parameter optimization and adjustment system and method, which utilize important parameters affecting the detection accuracy in an optical image detection system, obtain measurement distribution values in an actual detection environment according to the order of the importance (sensitivity) of the parameters, and determine the optimal values of the important parameters based on a mathematical statistic stability formula of the measurement distribution values, wherein the mathematical statistic stability formula is, for example, a standard deviation value or a maximum-minimum difference value.
In order to achieve one of the above objectives, the present invention provides an optimized adjustment method for image capturing parameters, which is used in an optical image detection system for detecting a measurement value at least one measurement position of an object to be measured, the method comprising the following steps at the measurement position: a. selecting at least one light source, wherein the light source assists in illuminating the object to be detected for detection; b. determining an optimal adjustment sequence of a plurality of image capturing parameters; c. setting a parameter adjusting range of the most preferred image capturing parameter, and setting respective default values of the rest image capturing parameters; d. acquiring a plurality of detection images to calculate a measurement distribution value based on the default values of the rest of imaging parameters and within the parameter adjustment range of the most preferred imaging parameter, and determining the optimal value of the most preferred imaging parameter within the parameter adjustment range by using a mathematical statistic stability formula of the measurement distribution value, wherein the mathematical statistic stability formula is a standard deviation value or a maximum and minimum difference value; e. respectively setting a parameter adjusting range for optimizing the image capturing parameters according to the optimizing adjusting sequence, acquiring a plurality of detection images to calculate the measurement distribution value based on the optimal value of the most preferred image capturing parameter and the default values of the rest image capturing parameters within the parameter adjusting range for optimizing the image capturing parameters, and determining the optimal value of the optimized image capturing parameters within the adjusting range by a mathematical statistic stabilizing formula of the measurement distribution value, wherein the mathematical statistic stabilizing formula is a standard deviation value or a maximum and minimum difference value; recording the optimal value of each image capturing parameter; the optical image detection system detects the subsequent object to be detected at the measuring position according to the optimal value of the image capturing parameters.
Wherein the image capturing parameters at least comprise: a focus distance, a light source brightness and a camera exposure time, and the optimized adjustment sequence is the focus distance, the light source brightness and the camera exposure time in sequence.
The most preferred image capturing parameter is the focusing distance, and the other image capturing parameters include the light source brightness and the camera exposure time.
The image capturing parameter optimization and adjustment method of the present invention further includes: the adjustment sequence starts with the image capturing parameter with the highest sensitivity: fixing the default value of the light source brightness and the default value of the camera exposure time, firstly adjusting the focus distance, capturing a plurality of detection images to calculate the measurement distribution value when one focus distance is changed in the parameter adjustment range of the focus distance, and determining the optimal value of the focus distance in the parameter adjustment range by a mathematical statistic stability formula of the measurement distribution value, wherein the mathematical statistic stability formula is a standard deviation value or a maximum and minimum difference value.
The image capturing parameter optimization and adjustment method of the present invention further includes: and adjusting the image-taking parameters of the light source brightness after adjusting the image-taking parameters of the focusing distance, wherein in the adjusting and optimizing process, the rest image-taking parameters are fixed, and then adjusting the image-taking parameters of the exposure time of the camera.
The image capturing parameter optimization and adjustment method of the present invention further includes: taking the light source brightness as an optimized image capturing parameter; and fixing the optimal value of the focus distance and the default value of the exposure time of the camera, capturing a plurality of detection images to calculate the measurement distribution value within the parameter adjustment range of the light source brightness, and determining the optimal value of the light source brightness within the parameter adjustment range by a mathematical statistic stability formula of the measurement distribution value, wherein the mathematical statistic stability formula is a standard deviation value or a maximum and minimum difference value.
The image capturing parameter optimization and adjustment method of the present invention further includes: taking the exposure time of the camera as an optimized image capturing parameter; and fixing the optimal value of the focusing distance and the optimal value of the light source brightness, capturing a plurality of detection images to calculate the measurement distribution value within the parameter adjustment range of the camera exposure time, and determining the optimal value of the camera exposure time within the parameter adjustment range by using a mathematical statistic stability formula of the measurement distribution value, wherein the mathematical statistic stability formula is a standard deviation value or a maximum and minimum difference value.
The image capturing parameter optimization and adjustment method of the present invention further includes: the method is popularized to the imaging parameter setting of multiple light sources: after a light source is selected, executing the steps b to f to obtain the optimal values of a plurality of image capturing parameters under the light source; and after selecting another light source, executing the steps b to f to obtain the optimal values of the image capturing parameters under the other light source.
In order to achieve one of the above objectives, the present invention provides an image capturing parameter optimizing and adjusting system for an optical image detecting system, the optical image detecting system captures at least one detected image of at least one measured position of an object to be detected by using a plurality of image capturing parameters, the image capturing parameter optimizing and adjusting system comprising: a parameter setting module for receiving a light source setting, respective default values and respective parameter adjustment ranges of a plurality of image capturing parameters, and an optimized adjustment sequence including the most preferred image capturing parameter; a parameter adjusting module, which controls the optical image detecting system to capture a plurality of detecting images for the object to be detected according to the light source setting, the respective default values and the respective parameter adjusting ranges of the plurality of image capturing parameters; an image detection module for receiving the detection images to calculate the measurement distribution value of the measurement position; and a parameter editing module, calculating a mathematical statistic stability formula of the measurement distribution values according to the measurement distribution values obtained by the light source setting, the respective default values of the plurality of image capturing parameters and the respective parameter adjustment ranges, so as to determine the respective optimal values of the image capturing parameters, wherein the mathematical statistic stability formula is a standard deviation value or a maximum and minimum difference value; the parameter adjusting module fixes default values of the rest of the image capturing parameters according to the optimized adjusting sequence, controls the optical image detecting system to capture a plurality of detection images within the parameter adjusting range of the most preferred image capturing parameter, calculates the measurement distribution value by the image detecting module, and calculates a mathematical statistic stabilizing formula of the measurement distribution value by the parameter editing module to determine the optimal value of the most preferred image capturing parameter within the parameter adjusting range, wherein the mathematical statistic stabilizing formula is a standard deviation value or a maximum and minimum difference value.
The parameter adjusting module fixes the optimal value of the most preferred image capturing parameter and the default values of the rest image capturing parameters according to the optimization adjusting sequence, controls the optical image detecting system to capture a plurality of detection images within the parameter adjusting range of the optimized image capturing parameters, calculates the measurement distribution value by the image detecting module, and calculates a mathematical statistic stabilizing formula of the measurement distribution value by the parameter editing module to determine the optimal value of the optimized image capturing parameter within the parameter adjusting range, wherein the mathematical statistic stabilizing formula is a standard deviation value or a maximum and minimum difference value.
Compared with the prior art, the invention has the beneficial effects that:
according to the image capturing parameter optimizing and adjusting system and method implemented by the invention, under the actual detection environment of an optical image detection system, the measurement distribution data of each image capturing parameter is obtained for an object to be detected, and the optimal value of the image capturing parameter is determined based on the mathematical statistic stability formula such as the standard deviation value or the maximum and minimum difference value, so that the optical image detection system is set by the optimal value of the image capturing parameters, and the stability of the whole system is optimized by detecting the subsequent object to be detected.
Drawings
FIG. 1 is a system architecture diagram of an optical image inspection system according to the present invention;
FIG. 2 is a functional block diagram of an optical image inspection system according to the present invention;
FIG. 3 is a flowchart illustrating an image capturing parameter optimizing and adjusting method according to the present invention;
FIG. 4 is a flow chart of the present invention for automatic parameter tuning optimization;
FIG. 5A is a flowchart of performing automatic adjustment and calculating an optimal value using the focus distance as an optimized image capturing parameter;
FIG. 5B is a flowchart illustrating the process of performing automatic adjustment and calculating an optimal value by using the brightness of the light source as an optimized image capturing parameter;
FIG. 6 is a schematic diagram of measuring the line width distance of the object under measurement at different focus distances;
FIG. 7A is a diagram of measurement distribution values within a parameter adjustment range for an optimized imaging parameter, which is a focus distance;
fig. 7B is a schematic diagram of the measurement distribution values within the parameter adjustment range with the light source brightness as the imaging parameter for optimization.
Detailed Description
Referring to fig. 1 and 2, a system architecture diagram of an optical image inspection system according to the present invention is shown. In an embodiment of the present invention, an optical image detection system detects a measurement value at a plurality of measurement positions of an object 1 to determine whether the measurement positions have defects or are sharp. The optical image detection system comprises an image shooting system 10, a moving platform 2, at least one light source 13 and a processing system 20, wherein the image shooting system 10 comprises a camera 11 and a lens 12, the moving platform 2 bears an object 1 to be detected, a measuring position of the object 1 to be detected is moved on an XY axis and is aligned with the lens 12 of the image shooting system, the auxiliary illumination is provided for the object 1 to be detected through the light source 13, after the Z axis is focused and moved, the camera 11 captures at least one detection image from the measuring position of the object 1 to be detected, and the processing system calculates a measuring value according to the detection image so as to determine whether the measuring position has defects or clear images. In another embodiment of the present invention, the optical image detection system includes a plurality of light sources, which can provide different kinds of light sources according to the characteristics of the object 1.
Referring to fig. 2, a functional block diagram of an optical image inspection system according to the present invention is shown. The processing system 20 of the optical image detection system of the present invention can control the platform XY axis driving mechanism 15 and the Z axis focusing driving mechanism 14 by controlling the axis card 26, wherein the platform XY axis driving mechanism 15 drives the moving platform 2 to move a measuring position of the object 1 to be measured on the XY axis to align with the lens 12 of the image capturing system; the Z-axis focusing driving mechanism 14 can adjust the focusing distance after the lens 12 is aligned to the measuring position of the object 1, so that the camera 11 can clearly shoot the detection image from the measuring position of the object 1. In addition, the processing system 20 of the optical image inspection system of the present invention can control the brightness of the light source 13 through the brightness control 25 to provide the best auxiliary illumination, and control the camera 11 of the image capturing system 10 to receive the inspection image.
Since the external environmental problems such as the assembly of the components and the mechanical components of the optical image inspection system may affect the inspection image captured by the image capturing system 10, the processing system 20 may further affect the measured value calculated according to the inspection image, and accordingly determine whether the measured position has the stability of the image being clear or the accuracy of the defect. Therefore, the processing system 20 of the optical image inspection system of the present invention executes an optimal adjustment method 100 for image capturing parameters to optimize important image capturing parameters affecting the accuracy and stability of the system determination, as shown in fig. 3. As will be described in further detail later. In an embodiment of the present invention, the important image capturing parameters include a light source type, a light source brightness, a camera exposure time and a Z-axis focus distance.
The modules of the processing system 20 executing the image capturing parameter optimizing and adjusting method 100 of the present invention include: a parameter setting module 21, a parameter adjusting module 22, an image detecting module 23 and a parameter editing module 24, wherein the modules are implemented by combining software and hardware to cooperate. The function and operation of each module are further described below. The parameter setting module 21 can receive the parameter setting of the part assembly and mechanism of the optical image detection system by personnel, and comprises: a light source parameter setting, which receives the default values of the light source type and the light source brightness and the parameter adjustment range set by the personnel for the light source 13; a camera parameter setting step, in which a default value of the camera exposure time set by the person for the camera 11 and a parameter adjustment range thereof are received; setting a focusing parameter, and receiving a default value set by a worker for the Z-axis focusing distance and a parameter adjustment range of the default value; and an optimized adjustment sequence, which is to set the optimized adjustment sequence of the image capturing parameters according to the degree of influence on the image capturing system 10 to capture the detected image. In an embodiment of the invention, after the light source type is selected according to the measurement position of the object 1, the optimization adjustment sequence includes the Z-axis focal distance, the light source brightness, and the camera exposure time, wherein the most preferred image capturing parameter is the Z-axis focal distance.
The parameter adjusting module 22 of the processing system 20 controls the component assembly and mechanism of the optical image detecting system according to the respective default values and the respective parameter adjusting ranges of the plurality of image capturing parameters received by the light source parameter setting, the camera parameter setting and the focusing parameter setting of the parameter setting module 21, captures a plurality of detected images for the object 1 to be detected according to the respective default values and the respective parameter adjusting ranges of the respective parameters, wherein the parameter adjusting module 22 controls the camera exposure time of the image capturing system 10, controls the light source brightness of the light source 13 through the brightness control 25, and controls the Z-axis focusing driving mechanism 14 and the platform XY-axis driving mechanism 15 through the control axis card 26. The Z-axis focusing driving mechanism 14 drives the optical image detecting system to capture the focal distance, and the platform XY-axis driving mechanism 15 drives the moving platform 2 to carry the measuring position of the object 1 to be measured and align with the lens 12 captured by the image capturing system 10. In addition, the parameter adjusting module 22 determines an optimized image capturing parameter according to the optimized adjusting sequence. The default values of the other image capturing parameters are fixed, and the image capturing system 10 is controlled to capture a plurality of detection images within the parameter adjustment range set by the optimized image capturing parameters.
After the parameter adjusting module 22 of the image detecting module 23 of the processing system 20 completes setting of all the imaging parameters, the camera 11 of the optical image detecting system 10 is controlled to capture a plurality of detected images from the object 1, and accordingly, the measurement distribution value of the measurement position is calculated. The parameter editing module 24 calculates a mathematical statistic stabilizing formula of a standard deviation value or a maximum and minimum difference value of the measurement distribution values according to the measurement distribution values obtained by the image detection module 23 based on the settings of the image capturing parameters to determine respective optimal values of the optimized image capturing parameters, and stores the respective optimal values of the optimized image capturing parameters in the parameter database 30 as the optical image detection system for detecting the subsequent object to be measured at the measurement position by the optimal values of the image capturing parameters.
Referring to fig. 3, a flowchart of the image capturing parameter optimizing and adjusting method of the present invention is shown. The method 100 for optimizing and adjusting image capturing parameters of the present invention is applied to the optical image detection system shown in fig. 1 and 2, which can detect a measurement value at least at a measurement position of an object 1 to be measured to determine whether the measurement position has defects or has clear images. In an embodiment of the present invention, the optical image inspection system performs the optimal adjustment of the image capturing parameters with the first object 1, such as a PCB, as the parameter setting for the subsequent inspection of the object. The method 100 for optimizing and adjusting image capturing parameters of the present invention comprises the following steps: step 110, setting image capturing parameters: the parameter setting module 21 receives the parameter settings of the parts assembly and mechanism of the optical image inspection system, including the light source parameter setting, the camera parameter setting and the focusing parameter setting. Step 120, moving the platform to a measurement position (x, y): the parameter adjusting module 22 controls the XY axis driving mechanism 15 of the platform through the control axis card 26 to drive the moving platform 2 to bear the measuring position (x, y) of the object 1 to be measured to align with the lens 12 imaged by the image capturing system 10. In step 130, the parameters are automatically adjusted and optimized, as shown in fig. 4. As will be described in further detail later.
Step 140, recording the optimized image capturing parameters of the measurement position (x, y): the respective optimal values of the optimized imaging parameters obtained in step 130 are recorded, so that the optimized imaging parameters are used to control the image detection module 23 to image the object to be detected at each measurement position during the subsequent actual detection, so as to perform the subsequent defect judgment or image detection. Step 150, determining whether there is a next measurement position (x, Y) on the object 1, if there is a next measurement position (Y), going to step 120; if there is no next measurement location (N), go to step 160. Step 160, completing the optimization of image capturing parameters: the optimal value of the optimized image capturing parameter stored in the parameter database 30 is used as the image capturing parameter for the optical image detection system to detect the subsequent object to be detected.
Referring to fig. 4, a flow chart of the present invention for automatically adjusting and optimizing parameters is shown. Step 130 shown in FIG. 3 further comprises the following steps: step 131, selecting the light source type, and determining the adjustment sequence: the optical image detection system of the present invention comprises at least one light source 13, and if the system comprises more than two light sources, the parameter setting module 21 will receive the selection of the light source type by the personnel, and then determine the optimized adjustment sequence of the multiple image capturing parameters, for example: and optimizing and adjusting the Z-axis focal distance, the light source brightness and the camera exposure time. In step 132, the parameter adjusting module 22 performs an optimal adjustment on the focal distance of the Z-axis of the most preferred image capturing parameter according to the optimal adjustment sequence, and fixes the default value of the light source brightness and the default value of the camera exposure time. Step 133, continuously performing image capturing and detection within the adjustment range of the Z-axis focus distance, and determining the optimal Z-axis focus value, as shown in fig. 5A, which will be described in further detail later.
Step 134, after the optimal value of the Z-axis focal distance is obtained in step 133, the parameter adjusting module 22 performs an optimal adjustment on the brightness of the light source according to the optimal adjustment sequence, and fixes the optimal value of the Z-axis focal distance and the default value of the exposure time of the camera. Step 135, continuously performing image capturing and detection within the adjustment range of the light source brightness, and determining the optimal brightness value of the light source, as shown in fig. 5B, which will be described in further detail later. In step 136, after the optimal value of the light source brightness is obtained in step 135, the parameter adjusting module 22 performs an optimal adjustment on the exposure time of the camera according to the optimal adjustment sequence, and fixes the optimal value of the Z-axis focus distance and the optimal value of the light source brightness. In step 137, the image is continuously captured and detected within the adjustment range of the exposure time of the camera, so as to determine the optimal exposure time of the camera, which will be further described in detail later. Step 138, editing the image capturing detection parameters, and editing the image capturing parameters, such as the Z-axis optimal focus value, the light source optimal brightness value, and the camera optimal exposure time, obtained in steps 133, 135, and 137 at the measurement position (x, y) by the parameter editing module 24. Step 139, recording the image capturing detection parameters, and storing the image capturing parameters, such as the optimal focus value of the Z axis, the optimal brightness value of the light source, and the optimal exposure time of the camera, in the parameter database 30 by the parameter editing module 24.
Next, please refer to fig. 5A and fig. 7A, which respectively show a flowchart for performing an automatic adjustment and calculating an optimal value by using the focus distance as an image capturing parameter, and a schematic diagram of a measurement distribution value within a parameter adjustment range. Step 133 shown in fig. 4 is to continuously perform image capturing detection within the adjustment range of the Z-axis focus distance to determine the optimal Z-axis focus value, and further includes the following steps: in step 1331, the parameter adjustment module 22 loads an adjustment range (-Z, + Z) of the Z-axis focus distance from the parameter setting module 21, which is set by a human to determine the optimal focus value of the Z-axis. For example: the person sets the default value of the Z-axis focus distance to 10mm, the difference range to +/-5mm, and the adjustment range (-Z, + Z) — 5mm,15 mm.
In step 1332, the parameter adjusting module 22 adjusts the Z-axis focus distance to be + Z-di distance difference, and controls the Z-axis focus driving mechanism 14 through the control shaft 26 to drive the focus distance captured by the optical image detecting system to the adjusted value zi according to the adjusted value zi of the Z-axis focus distance, wherein the di distance difference depends on the minimum resolution of the focus position of the lens driven by the Z-axis focus driving mechanism 14, for example: if the difference of di distances is 1mm, the adjustment values zi are 15mm, 14mm, … mm, 6mm and 5mm, respectively. In step 1333, based on the default value of the light source brightness and the default value of the camera exposure time fixed in step 132 and the adjustment value zi of the Z-axis focal distance adjusted in step 1332, the image detection module 23 controls the image capturing system 10 to continuously capture N detected images under the adjustment value zi, and calculates and records the measurement value of each detected image. Step 1334, calculating the measurement distribution values of the N detected images, including: the average of the measured values and the values obtained by a mathematical statistical stability formula, such as the maximum minimum difference and the standard deviation. In the embodiment shown in fig. 6, the N detected images captured by the image capturing system 10 have different blurring degrees at the line width edges at different focus distances (mm) (adjustment values zi) Z1, Z2, Z3 and Z4, as indicated by the dashed line. Therefore, the measurement values (m) for calculating the line width distance are affected by different degrees of ambiguity, so that the standard deviation data concentrations of the measurement values are different. The sharper the focusing is, the clearer the sharpness of the line width edge is, and the higher the measurement stability is. Therefore, at different focus distances (adjustment values zi), the standard deviation data concentration of the focus distance (mm) Z3 is better than that of other focus distances, and the measurement stability is the highest.
Step 1335, the parameter adjusting module 22 determines whether the adjustment value zi of the Z-axis focal distance is-Z, if yes, it indicates that the Z-axis focal distance has obtained all measurement distribution values within the adjustment range (-Z, + Z), and then goes to step 1336; if the adjustment value zi is not-Z (N), it indicates that there is no measurement distribution value obtained by the adjustment value zi in the adjustment range (-Z, + Z), and the process returns to step 1332. In step 1336, the parameter editing module 24 searches for the largest minimum difference or standard deviation value (zi) of the minimum values in the measured distribution values obtained within the adjustment range (-Z, + Z). In step 1337, the parameter editing module 24 selects the minimum maximum and minimum difference values or the standard deviation value (zi) from the measurement distribution values, and adjusts the focus distance to the position zi corresponding to the minimum value (zi) to serve as the best focus value (focus distance) of the Z axis in the adjustment range (-Z, + Z), as shown in fig. 7A, the measurement distribution values in the range from + Z to-Z are gradually adjusted to determine the maximum and minimum difference values or the adjustment value zi corresponding to the standard deviation value (zi) of the minimum value, where the maximum and minimum difference values or the standard deviation value (zi) of the minimum value indicate that the error generated by the detection system is relatively small and the stability of the detection result is relatively high when the measurement is performed under the adjustment value zi.
In an embodiment of the present invention, in step 1331, the parameter adjusting module 22 loads the adjustment range (-Z, + Z) of the Z-axis focus distance from the parameter setting module 21, for example, (5mm,15mm), and if the di distance difference in step 1332 is 1mm, the adjustment values zi are 15mm, 14mm, …, 6mm, 5mm, respectively. Taking 20 detected images as an example in steps 1333 and 1334, step 1333 may calculate 20 measured values (m) for each adjustment value zi, and step 1334 may calculate the average, the maximum and the minimum difference, and the standard deviation value (zi) of each adjustment value zi according to the 20 measured values (m) of step 1333.
Therefore, when the adjustment value zi of the Z-axis focal distance is determined to be-Z (Y) in step 1335, all measurement distribution values within the adjustment range (-Z, + Z) shown in the following Table I can be obtained. Step 1336 may calculate the mean (m), maximum (m), minimum (m), maximum-minimum difference (m) and standard deviation (m) for each adjusted value zi (15mm, 14mm, …, 6mm, 5mm) of the focus distance. In step 1337, the maximum and minimum difference of the minimum values 0.2 (i.e., the difference between the maximum and minimum values of the measured values) or the standard deviation value (zi) is selected from the table one to be 0.07, and the focus offset position corresponding to the maximum and minimum difference of the minimum values or the standard deviation value (zi) of the minimum values is determined to be 9mm, so as to be the best focus value of the Z axis within the adjustment range (5mm,15mm), thereby completing step 133 shown in fig. 4.
Watch 1
Measuring value/focal length of arm 15mm 14mm 13mm 12mm 11mm 10mm 9mm 8mm 7mm 6mm 5mm
1 10.5 10.3 10.2 10.3 10.2 10.1 10.1 10 10 9.9 10.4
2 10.8 10.4 9.7 10.2 10.1 9.9 10.1 10 9.9 9.8 10.4
3 10.6 10.5 9.6 10.1 10 9.8 9.9 9.8 9.7 9.6 10.3
4 10.4 10.4 9.8 10 9.9 9.9 10.1 10 9.9 9.8 9.9
5 10.1 10.4 10.2 10 9.9 9.8 10.1 10 9.9 9.8 10.2
6 10.5 10.3 10.1 10.3 10.2 10 10.1 10 9.9 10 9.6
7 10.2 9.9 10 10.4 10.3 10.1 10 9.8 9.7 10.2 9.4
8 9.5 10.4 10.4 10.2 10.1 10 10 9.8 9.7 10.1 10.5
9 9.8 10.3 10.6 9.8 9.7 10 10 9.9 9.8 10 10.5
10 9.5 10.3 9.7 9.8 9.7 9.9 10 10.1 10 10 10.2
11 9.4 10.2 9.8 9.8 9.7 9.9 10 9.9 9.8 10.3 9.5
12 9.8 9.8 9.7 10.1 10 10.1 10 9.8 9.7 10.4 9.8
13 9.7 9.4 10.3 10.2 10.1 10 10.1 9.9 9.8 9.7 10.2
14 10.2 10.2 10.4 9.9 9.8 10.2 10.1 9.8 9.7 9.8 10.1
15 10.4 9.6 10.3 9.8 9.7 10.2 9.9 10 9.9 10.2 10.2
16 9.6 9.4 10.2 9.7 9.6 10.1 10.1 10.1 9.7 10.1 9.7
17 9.9 10.5 9.7 9.8 9.7 9.9 10.1 10 9.8 10.2 9.8
18 9.6 9.7 9.8 9.6 9.9 9.8 9.9 10 10.2 10.1 10.2
19 10.2 10.1 10.2 9.9 9.9 9.9 10.1 10.2 10.1 10.1 10
20 10.3 10.3 10.1 9.9 9.8 9.9 10 10.1 10.2 9.9 10.3
Average 10.1 10.1 10 9.99 9.92 9.98 10 9.96 9.87 10 10.1
Maximum value (um) 10.8 10.5 10.6 10.4 10.3 10.2 10.1 10.2 10.2 10.4 10.5
Minimum value (um) 9.4 9.4 9.6 9.6 9.6 9.8 9.9 9.8 9.7 9.6 9.4
Big-small (um) 1.4 1.1 1 0.8 0.7 0.4 0.2 0.4 0.5 0.8 1.1
Background of the design is poor (um) 0.41 0.35 0.29 0.22 0.2 0.12 0.07 0.12 0.16 0.2 0.32
Next, referring to fig. 5B and fig. 7B, a flowchart for performing automatic adjustment and calculating an optimal value using the light source brightness as an image capturing parameter for optimization and a schematic diagram of measurement distribution values within a parameter adjustment range are respectively shown. Step 135 shown in fig. 4 is to continuously perform image capturing and detection within the adjustment range of the light source brightness to determine the optimal brightness value of the light source, similar to the process of step 133, in which step 135 further includes the following steps: in step 1351, the parameter adjusting module 22 loads the adjustment range (bmin, bmax) of the light source brightness from the parameter setting module 21, wherein the adjustment range (bmin, bmax) is set by the personnel to determine the optimal brightness value of the light source type selected in step 131. In step 1352, the parameter adjusting module 22 adjusts the luminance of the light source to be bmax-di current difference, and controls the luminance of the light source 13 through the luminance control 25 according to the adjusted luminance value bi of the light source, wherein the di current difference represents the minimum resolution of the current passing through the light source 13, so as to gradually adjust the luminance variation of the light source 13. Step 1353, based on the optimal Z-axis focus value and the default value of the camera exposure time fixed in step 134 and the adjustment value bi of the light source brightness adjusted in step 1352, the image detection module 23 controls the image capturing system 10 to continuously capture N detection images under the adjustment value bi, and calculates and records the measurement value of each detection image. Step 1354, calculating the measurement distribution values of the N detected images, including: the average of the measured values and the values calculated by the mathematical statistical stability formula, such as the maximum minimum difference and the standard deviation.
Step 1355, the parameter adjusting module 22 determines whether the adjustment value bi of the light source brightness is bmin, if so (Y), it indicates that the light source brightness has obtained all measurement distribution values within the adjustment range (bmin, bmax), and then step 1356 is performed; if the adjustment value bi is not bmin (N), it indicates that the measurement distribution value is not obtained for the adjustment value bi in the adjustment range (bmin, bmax), and the process returns to step 1352. Step 1356, the parameter editing module 24 searches for the maximum minimum difference or standard deviation value (bi) of the minimum values in the measurement distribution values obtained within the adjustment range (bmin, bmax). Step 1357, the parameter editing module 24 selects the minimum maximum and minimum difference values or the standard deviation value (bi) of the minimum value from the measured distribution values, and adjusts the light source brightness to the minimum maximum and minimum difference values or the bi brightness corresponding to the minimum value (bi) as the light source best brightness value in the adjustment range (bmin, bmax), as shown in fig. 7B, the measured distribution values in the range from bmax to bmin are adjusted step by step to determine the minimum maximum and minimum difference values or the standard deviation value (bi) of the minimum value, where the minimum maximum and minimum difference values or the standard deviation value (bi) of the minimum value indicate that the error generated by the detection system is relatively small when the image capture measurement is performed at the adjustment value bi, and the stability of the detection result is relatively high.
Next, step 137 shown in fig. 4 is performed to continuously perform image capturing detection within the adjustment range of the camera exposure time to determine the optimal camera exposure time, which is similar to the process of steps 133 and 135, and step 137 further includes: the parameter adjustment module 22 loads an adjustment range (Smin, Smax) of the camera exposure time, which is set by a person to determine the optimal exposure time of the camera 11, from the parameter setting module 21; the parameter adjusting module 22 gradually adjusts the adjustment value Si of the exposure time by the time difference to control the exposure time of the camera 11; based on the Z-axis best focus value and the light source best brightness value fixed in step 136, and the adjusted value Si of the adjusted exposure time, the image detection module 23 controls the image capturing system 10 to continuously capture N detection images under the adjusted value Si, and calculates and records the measurement value of each detection image; calculating the measurement distribution values of the N detection images; all measurement distribution values are obtained until the camera exposure time is within the adjustment range (Smin, Smax); the parameter editing module 24 searches for the maximum and minimum difference or standard deviation value (Si) of the minimum values among the measured distribution values obtained within the adjustment range (Smin, Smax); the parameter editing module 24 selects the maximum and minimum difference values or the standard deviation value (Si) of the minimum value from the measurement distribution values, and adjusts the exposure time of the camera to the Si time corresponding to the minimum value (Si) as the optimal exposure time of the camera within the adjustment range (Smin, Smax), where the maximum and minimum difference values or the standard deviation value (Si) of the minimum value indicate that the error generated by the detection system is relatively small and the stability of the detection result is relatively high when the image capture measurement is performed under the adjustment value Si.
In different embodiments of the present invention, when the optical image detection system includes a plurality of light sources and two or more light sources are required to be used for detection at the measurement position of the object 1 to be detected, the automatic parameter adjustment and optimization process shown in fig. 4 is performed for the light sources required to be used one by one. Taking the example that two light sources are required to be used at the measurement position as an illustration, one light source a is set by a default value, the other light source B is automatically adjusted to obtain the optimized parameters, then the light source B is set by the optimized parameters, and the light source a is automatically adjusted to obtain the optimized parameters.
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes will occur to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. An optimized adjustment method for image capturing parameters is characterized in that the method is used in an optical image detection system, the optical image detection system detects a measurement value for at least one measurement position of an object to be measured, and the method comprises the following steps executed at the measurement position:
a. selecting at least one light source, wherein the light source assists in illuminating the object to be detected for detection;
b. determining an optimal adjustment sequence of a plurality of image capturing parameters;
c. setting a parameter adjusting range of the most preferred image capturing parameter, and setting respective default values of the rest image capturing parameters;
d. acquiring a plurality of detection images to calculate a measurement distribution value based on the default values of the rest of image capturing parameters and within the parameter adjusting range of the most preferred image capturing parameter, and determining the optimal value of the most preferred image capturing parameter within the parameter adjusting range according to a mathematical statistic stability formula of the measurement distribution value;
e. respectively setting a parameter adjusting range for optimizing the image capturing parameters according to the optimizing adjusting sequence, acquiring a plurality of detection images to calculate the measurement distribution value in the parameter adjusting range for optimizing the image capturing parameters based on the optimal value of the most preferred image capturing parameter and the default values of the rest image capturing parameters, and optimizing the optimal value of the image capturing parameters in the adjusting range by using a mathematical statistic stabilizing formula of the measurement distribution value; and
f. recording the optimal value of each image capturing parameter;
the optical image detection system detects the subsequent object to be detected at the measuring position according to the optimal value of the image capturing parameters.
2. The method as claimed in claim 1, wherein the image capturing parameters at least comprise: a focus distance, a light source brightness, and a camera exposure time.
3. The image capturing parameter optimizing and adjusting method of claim 2, wherein the optimizing and adjusting sequence is sequentially the focus distance, the light source brightness and the camera exposure time.
4. The image capturing parameter optimizing and adjusting method of claim 3, further comprising:
fixing the default value of the light source brightness and the default value of the camera exposure time, firstly adjusting the focus distance, capturing a plurality of detection images to calculate the measurement distribution value when the focus distance is changed within the parameter adjustment range of the focus distance, and determining the optimal value of the focus distance within the parameter adjustment range by using a mathematical statistic stability formula of the measurement distribution value.
5. The image capturing parameter optimizing and adjusting method of claim 4, further comprising:
and adjusting the image-taking parameters of the light source brightness after adjusting the image-taking parameters of the focusing distance, wherein in the adjusting and optimizing process, the rest image-taking parameters are fixed, and then adjusting the image-taking parameters of the exposure time of the camera.
6. The image capturing parameter optimizing and adjusting method of claim 1, further comprising:
the method is popularized to the imaging parameter setting of multiple light sources: after a light source is selected, executing the steps b to f to obtain the optimal values of a plurality of image capturing parameters under the light source; and
after selecting another light source, executing steps b to f to obtain the optimal values of the image capturing parameters under the another light source.
7. An image capturing parameter optimizing and adjusting system is used in an optical image detecting system, the optical image detecting system captures at least one detecting image of at least one measuring position of an object to be detected by a plurality of image capturing parameters, the image capturing parameter optimizing and adjusting system comprises:
a parameter setting module for receiving a light source parameter setting, respective default values and respective parameter adjustment ranges of a plurality of image capturing parameters, and an optimized adjustment sequence including the most preferred image capturing parameter;
a parameter adjusting module, which controls the optical image detecting system to capture a plurality of detecting images for the object to be detected according to the light source parameter setting, the respective default values and the respective parameter adjusting ranges of the plurality of image capturing parameters;
an image detection module for receiving the detection images to calculate a measurement distribution value of the measurement position; and
a parameter editing module, which calculates the mathematical statistic stability formula of the measurement distribution value according to the measurement distribution value obtained by the light source parameter setting, the respective default values of a plurality of image capturing parameters and the respective parameter adjusting ranges, so as to determine the respective optimal value of each image capturing parameter;
the parameter adjusting module fixes default values of other image capturing parameters according to the optimized adjusting sequence, controls the optical image detection system to capture a plurality of detection images within the parameter adjusting range of the most preferred image capturing parameter, calculates the measurement distribution value by the image detection module, and calculates a mathematical statistic stability formula of the measurement distribution value by the parameter editing module to determine the best value of the most preferred image capturing parameter within the parameter adjusting range.
8. The system of claim 7, wherein the parameter adjusting module fixes the optimal value of the most preferred image capturing parameter and the default values of the other image capturing parameters according to the optimization adjusting sequence, controls the optical image detecting system to capture a plurality of detecting images within the parameter adjusting range for optimizing the image capturing parameters, calculates the measurement distribution value by the image detecting module, and calculates the mathematical statistic stabilizing formula of the measurement distribution value by the parameter editing module to determine the optimal value of the optimized image capturing parameter within the parameter adjusting range.
CN201910384716.9A 2019-05-09 2019-05-09 Image capturing parameter optimization and adjustment system and method Active CN111917971B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910384716.9A CN111917971B (en) 2019-05-09 2019-05-09 Image capturing parameter optimization and adjustment system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910384716.9A CN111917971B (en) 2019-05-09 2019-05-09 Image capturing parameter optimization and adjustment system and method

Publications (2)

Publication Number Publication Date
CN111917971A true CN111917971A (en) 2020-11-10
CN111917971B CN111917971B (en) 2021-10-29

Family

ID=73242115

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910384716.9A Active CN111917971B (en) 2019-05-09 2019-05-09 Image capturing parameter optimization and adjustment system and method

Country Status (1)

Country Link
CN (1) CN111917971B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114025079A (en) * 2021-09-29 2022-02-08 大连中科创达软件有限公司 Method, device and system for processing image quality optimization parameters

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003270163A (en) * 2002-03-15 2003-09-25 Dainippon Printing Co Ltd Inspection method and device
CN101287073A (en) * 2008-05-12 2008-10-15 吉林大学 Adaptive acquiring method of lightness stabilized image from machine vision system in variable irradiation surroundings
CN101359040A (en) * 2007-08-03 2009-02-04 西门子公司 Method and device for optimization of imaging parameters
CN101931749A (en) * 2009-06-25 2010-12-29 原相科技股份有限公司 Shooting parameter adjustment method for face detection and image capturing device for face detection

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003270163A (en) * 2002-03-15 2003-09-25 Dainippon Printing Co Ltd Inspection method and device
CN101359040A (en) * 2007-08-03 2009-02-04 西门子公司 Method and device for optimization of imaging parameters
CN101287073A (en) * 2008-05-12 2008-10-15 吉林大学 Adaptive acquiring method of lightness stabilized image from machine vision system in variable irradiation surroundings
CN101931749A (en) * 2009-06-25 2010-12-29 原相科技股份有限公司 Shooting parameter adjustment method for face detection and image capturing device for face detection

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114025079A (en) * 2021-09-29 2022-02-08 大连中科创达软件有限公司 Method, device and system for processing image quality optimization parameters
CN114025079B (en) * 2021-09-29 2024-02-13 大连中科创达软件有限公司 Image quality optimization parameter processing method, device and system

Also Published As

Publication number Publication date
CN111917971B (en) 2021-10-29

Similar Documents

Publication Publication Date Title
CN106814083B (en) Filter defect detection system and detection method thereof
JP4859958B2 (en) Light intensity adjustment system
US10746980B2 (en) Calibration of microscopy systems
CN108885089B (en) Focusing system for telecentric optical measuring machine
US20130155415A1 (en) Height-measuring method and height-measuring device
US9646374B2 (en) Line width error obtaining method, line width error obtaining apparatus, and inspection system
KR101204617B1 (en) Inspection apparatus
CN116433780B (en) Automatic calibration method for laser structured light based on machine vision
CN109580658B (en) Inspection method and inspection apparatus
CN111917971B (en) Image capturing parameter optimization and adjustment system and method
CN111970500A (en) Automatic distance step calibration method and system for projection equipment
JP4906174B2 (en) Beam automation in charged particle beam systems.
CN116709046A (en) Fixed pattern noise calculation and compensation method
CN116342435B (en) Distortion correction method for line scanning camera, computing equipment and storage medium
JP2008096395A (en) Foreign matter inspection device and method
US10317665B2 (en) Method for correcting illumination-dependent aberrations in a modular digital microscope, digital microscope and data-processing program
CN116668831A (en) Consistency adjusting method and device for multi-camera system
TWI693386B (en) System and method for optimally adjusting imaging parameters
CN114071133B (en) Semiconductor chip detection image imaging method
CN103905762B (en) Method for automatically detecting projection picture for projection module
US20150253128A1 (en) Measurement apparatus, measurement method, and method of manufacturing article
JP4594772B2 (en) Inspection device
JP2009192358A (en) Defect inspection device
CN111521617B (en) Optical detection device, control method for optical detection device, and storage medium
Edwards et al. NextGen calibration utility for tool setup and matching in real-time automated visual inspection systems

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