Method and system for determining optimal exposure of structured light based 3D camera
RE048595 · 2021-06-15
Assignee
Inventors
Cpc classification
G03B7/00
PHYSICS
International classification
Abstract
Provided are a method and system for determining an optimal exposure of a structured light based 3D camera. The system includes a projecting means for illuminating a predetermined pattern on a target object, an image capturing means for capturing an image of the target object with the pattern projected, and a processing means for reconstructing 3D data for the target object by identifying the pattern of the captured images from the image capturing means. The system automatically determines an optimal exposure of the structured light based 3D camera system through analyzing the captured image of the target object.
Claims
1. A method for determining an optimal exposure of a structured light based three dimensional (3D) camera system including a projecting means for illuminating a predetermined pattern on a target object, an image capturing means for capturing an image of the target object with the pattern projected .Iadd.thereon.Iaddend., and a processing means for reconstructing 3D data based on the captured image, wherein the method comprises the steps of: obtaining an image of a target object with a predetermined pattern projected thereon, which is illuminated from a projecting means, and an image of the target object without a predetermined pattern projected thereon; .[.and.]. determining automatically an optimal exposure level of the structured light based 3D camera system using .[.said two kinds of images,.]. .Iadd.said image of the target object with the predetermined pattern projected thereon and said image of the target object without the predetermined pattern projected thereon; and controlling an exposure level of the structured light based 3D camera system based on the determined optimal exposure level, wherein the determining automatically the optimal exposure level of the structured light based 3D camera system using said image of the target object with the predetermined pattern projected thereon and said image of the target object without the predetermined pattern projected thereon includes processing data from at least one characteristic curve associated with the image of the target object with the predetermined pattern projected thereon and processing data from at least one characteristic curve associated with the image of the target object without the predetermined pattern projected thereon to determine the optimal exposure level.Iaddend..
2. The method of claim 1, wherein the step of determining automatically an optimal exposure level comprises a) dividing an intensity of a corresponding pixel into red intensity, green intensity, and blue intensity of three channels (R, G, B) for one same pixel at each of the captured images, and generating a characteristic curve for each of the three channels for showing the intensity of a pixel for each channel according to variation of exposure levels; b) estimating intensity I of the corresponding pixel according to variation of exposure levels using the generated characteristic curves, and calculating an intensity difference ΔI or a brightness ratio SNR between the image of the target object with the predetermined pattern projected and the image of the target object without the predetermined pattern for the corresponding pixel using the estimated intensity; c) collecting brightness data about intensity differences ΔI or brightness ratios SNR according to variation of exposure levels for all pixels by repeating the steps a) and b) for all pixels of each image; d) discriminating pixels with spread phenomenon (saturation) occurred or the pixels without the predetermined pattern projected when the projecting means projects the predetermined pattern from the collected brightness data and excluding the brightness data of the discriminated pixels; and e) calculating the number of pixels having an intensity difference ΔI and a brightness ratio SNR exceeding a predetermined threshold ΔI.sub.th or SNR.sub.th at every exposure levels using the brightness data filtered at the step d) and deciding an exposure level having a largest calculated number of pixels as an optimal exposure level.
3. The method of claim 2, wherein the characteristic curves are created based on proportional relation between an intensity and an exposure, where the intensity denotes brightness of a pixel and the exposure is an amount of incoming light.
4. The method of claim 3, wherein in the step a), proportional factors k.sub.R, k.sub.G, and k.sub.B are calculated by applying an exposure applied for capturing the images in the image obtaining step and red intensity, green intensity, and blue intensity for one same pixel in each of the obtained images to an equation: I.sub.R=k.sub.R*E, I.sub.G=k.sub.G*E, I.sub.B=k.sub.B*E, intensities of a corresponding pixel are calculated for input exposures by inputting various exposures to the equation, and the characteristic curve is created by corresponding the calculated intensities of a corresponding pixel with the input exposures, where I.sub.R, and I.sub.G and I.sub.B denote the intensities in R, G, and B channels, k.sub.R, k.sub.G, and k.sub.B denote a proportional factor, and E denotes an exposure in the equation.
5. The method of claim 4, wherein in the step b), intensity of a gray level of a corresponding pixel is estimated according to variation of exposure levels by transforming the created characteristic curves for red, green, and blue channels to a characteristic curve of a gray level.
6. The method of claim 5, wherein in the step d), an enable term is set as a factor for checking the collected brightness data, is checked as Disable for a pixel in which spread phenomenon (saturation) occurs when the projecting means illuminates the predetermined pattern and an intensity difference ΔI or a brightness ratio SNR of the pixel is classified as unreliable data.
7. The method of claim 6, wherein in the step e), the brightness threshold ΔI.sub.th or SNR.sub.th for the intensity difference or the brightness ratio is set as minimum intensity difference or minimum brightness ratio for discriminating an area with the predetermined pattern illuminated from an area without the predetermined pattern illuminated.
.Iadd.8. The method of claim 1, further comprising adjusting an exposure level of the image capturing means by adjusting at least one of an aperture of an iris and a shutter speed..Iaddend.
.Iadd.9. The method of claim 1, wherein the data from the at least one characteristic curve associated with the image of the target object with the predetermined pattern projected thereon and the data from the at least one characteristic curve associated with the image of the target object without the predetermined pattern projected thereon includes at least one of pixel intensity data and exposure level data..Iaddend.
.Iadd.10. The method of claim 1, wherein the processing data from the at least one characteristic curve associated with the image of the target object with the predetermined pattern projected thereon includes identifying pixels of the image having an intensity difference exceeding a threshold difference..Iaddend.
.Iadd.11. The method of claim 1, wherein the processing data from the at least one characteristic curve associated with the image of the target object without the predetermined pattern projected thereon includes identifying pixels of the image having an intensity difference exceeding a threshold difference..Iaddend.
.Iadd.12. The method of claim 1, wherein the processing data from the at least one characteristic curve associated with the image of the target object with the predetermined pattern projected thereon includes identifying pixels of the image having a signal to brightness ratio exceeding a threshold brightness ratio..Iaddend.
.Iadd.13. The method of claim 1, wherein the processing data from the at least one characteristic curve associated with the image of the target object without the predetermined pattern projected thereon includes identifying pixels of the image having a brightness ratio exceeding a threshold brightness ratio..Iaddend.
.Iadd.14. The method of claim 1, wherein the projecting means comprises a beam projector..Iaddend.
.Iadd.15. The method of claim 1, wherein the image capturing means comprises a camera..Iaddend.
.Iadd.16. The method of claim 1, wherein the processing means comprises a computer..Iaddend.
.Iadd.17. A method comprising: projecting, via a projecting means of a structured light based 3D camera system, a predetermined pattern on a target object; obtaining, via an image capturing means of the structured light based three dimensional (3D) camera system, a first image of the target object without the predetermined pattern projected thereon, the first image including a first pixel and a second pixel; obtaining, via the image capturing means, a second image of the target object with the predetermined pattern projected thereon, the second image including a third pixel corresponding to the first pixel of the first image and a fourth pixel corresponding to the second pixel of the first image, the structured light based 3D camera system including a processing means for reconstructing 3D data based on the first and second images; determining automatically an optimal exposure level of the structured light based 3D camera system using the first image and the second image; and controlling an exposure level of the structured light based 3D camera system based on the determined optimal exposure level, wherein the determining automatically the optimal exposure level of the structured light based 3D camera system using the first image and the second image includes determining, for each of a plurality of exposure levels, a difference between an intensity of the first pixel and an intensity of the second pixel, determining, for each of the plurality of exposure levels, a difference between an intensity of the third pixel and an intensity of the fourth pixel, and determining one of the plurality of exposure levels as the optimal exposure level based on the determined differences..Iaddend.
.Iadd.18. The method of claim 17, wherein the processing means comprises a computer..Iaddend.
.Iadd.19. The method of claim 17, further comprising adjusting an exposure level of the image capturing means by adjusting at least one of an aperture of an iris and a shutter speed..Iaddend.
.Iadd.20. The method of claim 17, wherein the projecting means comprises a beam projector..Iaddend.
.Iadd.21. The method of claim 17, wherein the image capturing means comprises a camera..Iaddend.
.Iadd.22. A method comprising: projecting, via a projecting means of a structured light based 3D camera system, a predetermined pattern on a target object; obtaining, via an image capturing means of the structured light based three dimensional (3D) camera system, a first image of the target object without the predetermined pattern projected thereon, the first image including a first pixel and a second pixel; obtaining, via the image capturing means, a second image of the target object with the predetermined pattern projected thereon, the second image including a third pixel corresponding to the first pixel of the first image and a fourth pixel corresponding to the second pixel of the first image, the structured light based 3D camera system including a processing means for reconstructing 3D data based on the first and second images; determining automatically an optimal exposure level of the structured light based 3D camera system using the first image and the second image; and controlling an exposure level of the structured light based 3D camera system based on the determined optimal exposure level, wherein the determining automatically the optimal exposure level of the structured light base 3D camera system using the first image and the second image includes determining, from the first image and the second image, estimated values of pixel intensities for a plurality of exposure levels, and determining one of the plurality of exposure levels as the optimal exposure level based on the estimated values of pixel intensities..Iaddend.
.Iadd.23. The method of claim 22, wherein the image capturing means comprises a camera..Iaddend.
.Iadd.24. The method of claim 22, wherein the processing means comprises a computer..Iaddend.
.Iadd.25. The method of claim 22, further comprising adjusting an exposure level of the image capturing means by adjusting at least one of an aperture of an iris and a shutter speed..Iaddend.
.Iadd.26. The method of claim 22, wherein the projecting means comprises a beam projector..Iaddend.
Description
DRAWINGS
(1) The patent or application file contains at least one drawings executed in color. Copies of this patent or patent application publication with color drawings will be provided by the Office upon request and payment of the necessary fee.
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
DESCRIPTION
(14) Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
(15) At first, a concept of camera exposure will be briefly described before describing embodiments.
(16) Exposure
(17) Exposure means an amount of light used when a camera captures an image, and an exposure level is controlled by an iris and a shutter speed.
(18) An iris is metal plates disposed at a camera lens. An amount of incoming light is controlled by opening and closing the iris. The size of an iris is expressed as a F-number. The smaller the F-number is, the wider an aperture becomes, thereby receiving more light in a short time. The shutter speed is an opening time of a lens. The shutter speed is controlled by turning on/off a charge coupled device (CCD) sensor at a designated time. An exposure level related to an amount of light is expressed as STOP. One STOP difference increases or decreases an amount of light two times.
(19)
(20) As shown in
(21)
(22) In
E=i×t Eq. 1
(23) In Eq. 1, E denotes exposure, i denotes intensity of light, and t denotes an exposure time.
(24) A structured light based 3D camera system includes a projecting means for illuminating a predetermined pattern on a target object, an image capturing means for capturing an image with the pattern illuminated thereon, and a processor for identifying the pattern from the captured image and calculating 3D data for the target object. For example, the projecting unit may be a typical projector using a code pattern, the image capturing means may be a camera, and the processor may be a computer.
(25) Meanwhile, the precision of the calculated 3D data depends on how accurately the pattern is discriminated from the captured image. In order to obtain optimal exposure for pattern discrimination in the present embodiment, an image captured from a projected pattern without spread phenomenon (saturation) is compared with an image captured from a non-projected reference scene, and a pattern may be optimally discriminated when the intensity difference therebetween becomes the maximum. As a scale for the intensity difference, SNR and ΔI are used in the present embodiment. SNR is a ratio of brightness of an image obtained from a non-projected reference scene and brightness of an image obtained from a projected pattern. ΔI denotes difference between brightness of an image captured from a non-projected reference scene and brightness of an image captured from a projected pattern. In order to determine an optimal exposure level of a camera according to dynamically changing environmental factors, the structured light based camera system employs a method for automatically determining an optimal exposure level by analyzing an image captured at a predetermined exposure level.
(26)
(27) In order to determine an optimal exposure level, the processor according to the present embodiment performs operations as follows. At step S10, the processor obtains a pattern illuminated image and a non pattern illuminated image for a target object one by one. At step S20, the processor generates a characteristic curve for the same predetermined pixel in each of the captured images. At step S30, the processor estimates an intensity of a pixel according to an exposure level using the generated characteristic curve and calculates an intensity difference ΔI or a brightness ratio SNR for a corresponding pixel. Hereinafter, the intensity denotes brightness of a pixel. At step S40, the processor collects ΔI and SNR data according to exposure level variation for all pixels of each image by repeating the steps S20 and S30. At step S50, the processor excludes ΔI or SNR data for an over exposed pixel or a non-pattern illuminated pixel when the projecting means projects the predetermined pattern. At step S60, the processor calculates the number of pixels having the intensity difference and the brightness ratio exceeding a predetermined threshold ΔI.sub.th or SNR.sub.th at every exposure levels and determines an exposure level providing the largest number of pixels as an optimal exposure level.
(28) In the step S10, the processor obtains a non-pattern illuminated image and a pattern illuminated image one by one. The non-pattern illuminated image is a color image obtained with the projecting means turned off, which will be referred as a 0 state, hereinafter. The pattern illuminated image is a color image obtained with the projecting means turned on, which will be referred as a 1 state, hereinafter. Here, the image of the 0 state and the image of the 1 state are captured at an initial exposure level.
(29) In the step S20, the processor selects one pixel at the same position from two obtained images and generates characteristic curves showing intensity variation according to exposure levels.
(30) The characteristic curve is a graph showing intensity of a pixel varying according to exposure using a principle that Eq. 1 and intensity changes in proportion to an amount of incoming light. The characteristic curve is used to determine an optimal exposure level in the present embodiment. The characteristic curve can be expressed as Eq. 2 if color intensity of a corresponding pixel divides into three channels, red intensity (R), green intensity (G), and blue intensity (B).
I.sub.R=k.sub.R*E, I.sub.G=k.sub.G*E, I.sub.B=k.sub.B*E Eq. 2
(31) Eq. 2 is limited to when I.sub.R, I.sub.G, I.sub.B>2.sup.b−1 and I.sub.R, I.sub.G, I.sub.B=2b−1.
(32) In Eq. 2, I.sub.R, I.sub.G, and I.sub.B denote the intensities in R, G, and B channels, k.sub.R, k.sub.G, and k.sub.B denote a proportional factor, E denotes exposure, and b denotes the number of bits expressing the brightness intensity at a camera.
(33) Since the characteristic curve enables to the processor to estimate the intensity of a pixel for various exposure levels although only one image is captured in a predetermined condition, it is not necessary to obtain a plurality of images with various exposures in order to obtain an optimal exposure setting.
(34) Hereinafter, simulations performed for deducing the characteristic curve and confirming the reliability thereof will be described.
(35) Characteristic Curve
(36) A scene image has intensity values varying according to exposure levels. If the scene image pixel is divided to the same property of radiometry information, the pixel intensity increased or decreased at the same proportion as exposure.
(37)
(38) In
(39) Proportional factors k.sub.R, k.sub.G, and k.sub.B are calculated by selecting one image from a plurality of obtained images for measuring intensity of a pixel according to an exposure level in the simulation of
(40) Therefore, the graphs clearly show that reliable estimation values of pixel intensity according to exposure variation can be obtained using only one image obtained from a predetermined exposure based on the method for generating the characteristic curve according to the present embodiment used in the simulations.
(41) Based on the above described simulation, a method for generating a characteristic curve according to an embodiment will be described. In the step S20 shown in
(42) At the step S30, the processor estimates an intensity of a corresponding pixel according to exposure level variation for the 0 state and the 1 state using the created characteristic curve and calculates the intensity difference ΔI or the brightness ratio SNR for a corresponding pixel at the 0 state and the 1 state using the estimated intensity. In the step S30, the characteristic curves of R, G, and B channels for the 0 state and the 1 state can be converted into a characteristic curve of a gray level for each state by adding them together. In this case, the estimated intensity of the pixel is expressed as a gray level.
(43) At the step S40, the processor collects data of the intensity difference ΔI or the brightness ratio SNR in the 0 state and the 1 state according to the exposure level variation for all pixels by repeating the steps S20 and S30 for all pixels in each image.
(44) At the step S50, the processor discriminates pixels having spread phenomenon (saturation) and non-pattern projected pixels from the image of the 1 state among the collected data at the step S40 and excludes the data of intensity difference ΔI or the brightness ratio SNR of the discriminated pixels from the collected data. Here, the processor may set an enable term as a factor for checking the collected data, check the enable term as Disable for a pixel in which spread phenomenon (saturation) occurs in 1 state and classify the intensity difference ΔI or the brightness ratio SNR thereof as unreliable data.
(45) At the step S60, the processor calculates the number pixels having the intensity difference ΔI or the brightness ratio SNR exceeding an intensity difference threshold ΔI.sub.th or a brightness ratio threshold SNR.sub.th using the data of the intensity difference ΔI or the brightness ratio SNR according to exposure level variation per each pixel, and decides an exposure level having the largest number of pixel exceeding the threshold values as an optimal exposure level. Here, it is preferable to use a minimum intensity difference ΔI and a minimum brightness ratio SNR that can discriminate a pattern projected area and a no pattern projected area from the obtained image as the intensity difference threshold ΔI.sub.th or the brightness ratio threshold SNR.sub.th. If the optimal exposure level is decided using a SNR value, a threshold SNR.sub.th may be about 0.1 to 0.2 when the SNR value is standardized to 256 gray levels.
(46)
(47) In
(48) As described above, the intensity difference or the brightness ratio is calculated for all pixels in the images I and II, the number of pixels having the calculated intensity difference or the brightness ratio exceeding a predetermined threshold at every exposure levels using the data of the calculated intensity difference and brightness ratio, and an optimal exposure level is determined by selecting an exposure level having the largest number of pixels exceeding the threshold value, thereby increasing 3D data reconstruction range and improving the reliability thereof
(49)
(50) Images in the first row I show images obtained by photographing target objects. The best exposure level is found by photographing the target objects with all of exposure levels. Images in the second row II are images obtained using the found best exposure level. The number of 3D data obtained in each best exposure level is set to 100% so that it can be used as reference for comparing the number of 3D data obtained at different exposure levels. As shown, the best exposure level is STOP 5-2-3-4. Images in the third row III are images obtained using the method for determining an optimal exposure according to an embodiment of the present invention. Images in the fourth row IV are images captured with a fixed STOP 5, and images in the fifth row V are images captured with a fixed STOP 4. Images in the sixth row VI are images captured with a fixed STOP 3.
(51) As shown in
(52) As described above, the method and system for determining an optimal exposure level of a structured light based 3D camera according to an embodiment can improve a reconstructable range and reliability of 3D data in various applications which need to measure objects with different surface properties and different illumination conditions. Therefore, the method and system for determining an optimal exposure of a structured light based 3D camera according to an embodiment can be applied to various industrial fields such as inspection equipment using a 3D measuring method, 3D image modeling/recognition, and robot vision.
(53) It will be apparent to those skilled in the art that various modifications and variations can be made to embodiments without departing from the spirit or scope of the disclosed embodiments. Thus, it is intended that the present invention covers modifications and variations of this invention provided they come within the scope of the appended claims and their equivalents.
(54) The method and system for determining an optimal exposure of a structured light based 3D camera according to an embodiment can improve a reconstructable range and reliability of 3D data by determining an optimal exposure level that can optimally discriminate patterns according to environmental condition variation.
(55) Also, it is not necessary to obtain a plurality of images for determining an optimal exposure for various environment factors by providing the method for creating a characteristic curve to estimate variation of pixel intensity according to an exposure level.