Adaptive method for a light source for inspecting an article
AssigneeHiwin Technologies Corp.
InventorMing-Shiou Liu
Life of this patent
Estimating the term…
Abstract
A method includes selecting a candidate image property data set and a corresponding candidate light source parameter set, obtaining multiple adjusted light source parameter sets based on the candidate light source parameter set, projecting light onto an article and capturing images in multiple projecting modes, one by one, according to the adjusted light source parameter sets, obtaining multiple adjusted image property data sets each from the images captured in one projecting mode, and selecting a target image property data set from the adjusted image property data sets and a corresponding target light source parameter set.
Claims16
An adaptive method for a light source that is used for inspecting an article, the adaptive method to be implemented using an automatic adapting system that includes a storage device, a light source, an image capturing device and a processing unit, the light source being configured to project light onto the article in a plurality of initial projecting modes, the storage device storing a plurality of initial light source parameter sets corresponding respectively to the initial projecting modes, and a plurality of initial image property data sets each being obtained by illuminating the article in a respective one of the initial projecting modes and each including a plurality of property value sets that are related respectively to a plurality of image properties, the adaptive method comprising steps of:
- selecting, by the processing unit, a candidate image property data set from the initial image property data sets according to a screening condition, the screening condition being related to the article and to at least one of the image properties;
- selecting, by the processing unit, a candidate light source parameter set that corresponds to the candidate image property data set from the initial light source parameter sets;
- obtaining, by the processing unit, a plurality of adjusted light source parameter sets based on the candidate light source parameter set;
- controlling, by the processing unit, the light source to project light onto the article in a plurality of adjusted projecting modes according to the adjusted light source parameter sets, respectively;
- capturing, by the image capturing device, a plurality of adjusted images of the article when the article is lighted up by the light source in each of the adjusted projecting modes;
- obtaining, by the processing unit, a plurality of adjusted image property data sets each being obtained from the adjusted images that are captured in a respective one of the adjusted projecting modes, and each including a plurality of property value sets that are related respectively to the image properties;
- selecting, by the processing unit, a target image property data set from the adjusted image property data sets according to the screening condition;
- and
- selecting, by the processing unit, a target light source parameter set that corresponds to the target image property data set from the adjusted light source parameter sets;
- wherein the step of selecting a candidate image property data set includes:
- when the screening condition is related to only one of the image properties, for each of the initial image property data sets, calculating an initial score based on one of the property value sets of the initial image property data set according to VS=u1×V+u2×V×σ, where VS is the initial score, u1 and u2 are weights, V is a first property value included in said one of the property value sets, and σ is a second property value included in said one of the property value sets, said one of the property value sets being related to said one of the image properties to which the screening condition is related;
- when the screening condition is related to multiple ones of the image properties and has a plurality of weights respectively for the multiple ones of the image properties, for each of the initial image property data sets, calculating the initial score based on multiple ones of the property value sets of the initial image property data set according to
- V
- S
- =
- ∑
- n
- =
- 1
- N
-
- W
- n
-
- (
- u
- 1
- ×
- V
- n
- +
- u
- 2
- ×
- V
- n
- ×
- σ
- n
- )
- ,
- where N is a number of the multiple ones of the image properties, Wn is a weight for an nth one of the multiple ones of the image properties, Vn is the first property value included in an nth one of the multiple ones of the property value sets that is related to the nth one of the multiple ones of the image properties, and σn is the second property value included in the nth one of the multiple ones of the property value sets, the multiple ones of the property value sets being related respectively to the multiple ones of the image properties to which the screening condition is related;
- and
- selecting one of the initial image property data sets that has the greatest initial score as the candidate image property data set.
An adaptive method for a light source that is used for inspecting an article, the adaptive method to be implemented using an automatic adapting system that includes a storage device, a light source, an image capturing device and a processing unit, the light source being configured to project light onto the article in a plurality of initial projecting modes, the storage device storing a plurality of initial light source parameter sets corresponding respectively to the initial projecting modes, and a plurality of initial image property data sets each being obtained by illuminating the article in a respective one of the initial projecting modes and each including a plurality of property value sets that are related respectively to a plurality of image properties, the adaptive method comprising steps of:
- selecting, by the processing unit, a candidate image property data set from the initial image property data sets according to a screening condition, the screening condition being related to the article and to at least one of the image properties;
- selecting, by the processing unit, a candidate light source parameter set that corresponds to the candidate image property data set from the initial light source parameter sets;
- obtaining, by the processing unit, a plurality of adjusted light source parameter sets based on the candidate light source parameter set;
- controlling, by the processing unit, the light source to project light onto the article in a plurality of adjusted projecting modes according to the adjusted light source parameter sets, respectively;
- capturing, by the image capturing device, a plurality of adjusted images of the article when the article is lighted up by the light source in each of the adjusted projecting modes;
- obtaining, by the processing unit, a plurality of adjusted image property data sets each being obtained from the adjusted images that are captured in a respective one of the adjusted projecting modes, and each including a plurality of property value sets that are related respectively to the image properties;
- selecting, by the processing unit, a target image property data set from the adjusted image property data sets according to the screening condition;
- and
- selecting, by the processing unit, a target light source parameter set that corresponds to the target image property data set from the adjusted light source parameter sets;
- wherein the step of obtaining a plurality of adjusted light source parameter sets based on the candidate light source parameter set includes obtaining a plurality of adjusted light source parameter sets based on calculations made on a candidate brightness value and a candidate tonal value included in the candidate light source parameter set;
- wherein the step of obtaining a plurality of adjusted light source parameter sets based on the candidate light source parameter set further includes:
- obtaining a first brightness upper limit and a first brightness lower limit based on the candidate brightness value and a first allowable brightness variation;
- obtaining a number P of adjusted brightness values according to the first brightness upper limit and the first brightness lower limit;
- obtaining a first tonal upper limit and a first tonal lower limit based on the candidate tonal value and a first allowable tonal variation;
- obtaining a number Q of adjusted tonal values according to the first tonal upper limit and the first tonal lower limit;
- and
- obtaining a number P×Q of the adjusted light source parameter sets each including one of the adjusted brightness values and one of the adjusted tonal values.
Dependencies are inferred from the claim text.