Exposure method and image sensing device using the same
11223759 · 2022-01-11
Assignee
Inventors
Cpc classification
G01S17/894
PHYSICS
G01S7/4915
PHYSICS
G01S17/36
PHYSICS
International classification
Abstract
An exposure method and an image sensing device using the same are provided. The exposure method includes the following steps: obtaining a first light-intensity confidence value of each pixel unit based on a first exposure time; obtaining a second light-intensity confidence value of each pixel unit based on a second exposure time, wherein the second light-intensity confidence value is different from the first light-intensity confidence value; and taking the phase difference value, corresponding to one of the light-intensity confidence value and the second light-intensity confidence value of each pixel unit, as an output value of the corresponding pixel unit.
Claims
1. An exposure method, for obtaining a plurality of phase difference values of a plurality of pixel units of an image sensor, comprises: obtaining a first light-intensity confidence value of each pixel unit based on a first exposure time; obtaining a second light-intensity confidence value of each pixel unit based on a second exposure time, wherein the second light-intensity confidence value is different from the first light-intensity confidence value; and taking the phase difference value, corresponding to a smaller difference of the first light-intensity confidence value and the second light-intensity confidence value relative to a preset confidence value of each pixel unit, as an output value of the corresponding pixel unit.
2. The exposure method as claimed in claim 1, wherein the first exposure time is less than the second exposure time, and taking the phase difference value as the output value of the corresponding pixel unit comprises: determining whether the second light-intensity confidence value is within a qualified interval of an upper confidence limit and a lower confidence limit; if the second light-intensity confidence value is within the qualified interval, taking the phase difference value, corresponding to the second light-intensity confidence value, as the output value of the corresponding pixel unit; if the second light-intensity confidence value is outside the qualified interval, determining whether the first light-intensity confidence value is within the qualified interval; and if the first light-intensity confidence value is within the qualified interval, taking the phase difference value, corresponding to the first light-intensity confidence value, as the output value of the corresponding pixel unit.
3. The exposure method as claimed in claim 2, wherein taking the phase difference value as the output value of the corresponding pixel unit further comprises: if the first light-intensity confidence value and the second light-intensity confidence value do not fall within the qualified interval, obtaining a third light-intensity confidence value of the corresponding pixel unit based on a third exposure time according to a changing trend of the first light-intensity confidence value and the second light-intensity confidence value, wherein the third light-intensity confidence value is within the qualified interval.
4. The exposure method as claimed in claim 1, wherein taking the phase difference value as the output value of the corresponding pixel unit further comprises: obtaining a plurality of first absolute values of differences between each first light-intensity confidence value and the preset confidence value; obtaining a plurality of second absolute values of differences between each second light-intensity confidence value and the preset confidence value; and for each pixel unit, taking the phase difference value, corresponding to the minimal one of the first absolute value of difference and the second absolute value of difference, as the output value of the corresponding pixel unit.
5. The exposure method as claimed in claim 4, wherein taking the phase difference value as the output value of the corresponding pixel unit further comprises: when the first absolute value of difference and the second absolute value of difference are within a qualified interval of an upper confidence limit and a lower confidence limit, taking the phase difference value, corresponding to the minimal one of the first absolute value of difference and the second absolute value of difference, as the output value of the corresponding pixel unit.
6. The exposure method as claimed in claim 1, wherein taking the phase difference value as the output value of the corresponding pixel unit further comprises: analyzing a changing trend of the first light-intensity confidence value and the second light-intensity confidence value to obtain a third light-intensity confidence value of each pixel unit based on a third exposure time, wherein the third light-intensity confidence value is within the qualified interval.
7. The exposure method as claimed in claim 6, wherein the first exposure time is less than the second exposure time.
8. The exposure method as claimed in claim 6, wherein taking the phase difference value as the output value of the corresponding pixel unit further comprises: for the pixel units, determining whether a ratio of the second light-intensity confidence values which are higher than a light-intensity confidence threshold is higher than a threshold ratio; and if the ratio is higher than the threshold ratio, performing step of obtaining the first light-intensity confidence value of each pixel unit based on the first exposure time.
9. The exposure method as claimed in claim 6, wherein taking the phase difference value as the output value of the corresponding pixel unit further comprises: for the pixel units, determining whether a ratio of the second light-intensity confidence values which are higher than a light-intensity confidence threshold is higher than a threshold ratio; and if the ratio is lower than the threshold ratio, stopping execution of the exposure method.
10. An image sensing device comprises: an image sensor comprising a plurality of pixel units; and a controller configured to: obtain a first light-intensity confidence value of each pixel unit based on a first exposure time; obtain a second light-intensity confidence value of each pixel unit based on a second exposure time, wherein the second light-intensity confidence value is different from the first light-intensity confidence value; and take the phase difference value, corresponding to a smaller difference of the first light-intensity confidence value and the second light-intensity confidence value relative to a preset confidence value of each pixel unit, as an output value of the corresponding pixel unit.
11. The image sensing device as claimed in claim 10, wherein the controller is configured to: obtain a third light-intensity confidence value of each pixel unit based on a third exposure time, wherein the first exposure time is less than the second exposure time, and the second exposure time is less than the third exposure time; and in taking the phase difference value as the output value of the corresponding pixel unit, the controller is further configured to: determine whether the second light-intensity confidence value is within a qualified interval of an upper confidence limit and a lower confidence limit; if the second light-intensity confidence value is within the qualified interval, take the phase difference value, corresponding to the second light-intensity confidence value, as the output value of the corresponding pixel unit; if the second light-intensity confidence value is outside the qualified interval, determine whether the third light-intensity confidence value is within the qualified interval; if the third light-intensity confidence value is within the qualified interval, take the phase difference value, corresponding to the third light-intensity confidence value, as the output value of the corresponding pixel unit; if the third light-intensity confidence value is outside the qualified interval, determine whether the first light-intensity confidence value is within the qualified interval; and if the first light-intensity confidence value is within the qualified interval, take the phase difference value, corresponding to the first light-intensity confidence value, as the output value of the corresponding pixel unit.
12. The image sensing device as claimed in claim 10, wherein in taking the phase difference value as the output value of the corresponding pixel unit, the controller is configured to: obtain a plurality of first absolute values of differences between each first light-intensity confidence value and the preset confidence value; obtain a plurality of second absolute values of differences between each second light-intensity confidence value and the preset confidence value; and for each pixel unit, take the phase difference value, corresponding to the minimal one of the first value of difference and the second absolute value of difference, as the output value of the corresponding pixel unit.
13. The image sensing device as claimed in claim 12, wherein the controller is further configured to: when the first absolute value of difference and the second absolute value of difference are within a qualified interval of an upper confidence limit and a lower confidence limit, take the phase difference value, corresponding to the minimal one of the first value of difference and the second absolute value of difference, as the output value of the corresponding pixel unit.
14. The image sensing device as claimed in claim 10, in taking the phase difference value as the output value of the corresponding pixel unit, the controller is configured to: analyze a changing trend of the first light-intensity confidence value and the second light-intensity confidence value to obtain a third light-intensity confidence value of each pixel unit based on a third exposure time, wherein the third light-intensity confidence value is within the qualified interval.
15. An image sensing device comprises: an image sensor comprising a plurality of pixel units and being configured to receiving a reflected light; and a controller configured to: obtain a first light-intensity confidence value of each pixel unit based on a first exposure time; obtain a second light-intensity confidence value of each pixel unit based on a second exposure time, wherein the second light-intensity confidence value is different from the first light-intensity confidence value; and take a phase difference value, corresponding to one of the first light-intensity confidence value and the second light-intensity confidence value of each pixel unit, as an output value of the corresponding pixel unit; wherein the first light-intensity confidence value and the second light-intensity confidence value are respectively obtained according to the reflected light and proportional to a light intensity of the reflected light.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) The above objects and advantages of the invention will become more readily apparent to those ordinarily skilled in the art after reviewing the following detailed description and accompanying drawings, in which:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS
(17) Referring to
(18) The electronic device 10 is, for example, an imaging capturing device, a distance measuring device, or a face recognition device. The electronic device 10 includes an image sensing device 11 and a processor 12. The processor 12 is electrically coupled to the image sensing device 11 and could process the information provided by the image sensing device 11. The image sensing device 11 includes a light source 110, an image sensor 120, and a controller 130. In an embodiment, the image sensor 120 and the controller 130 may be integrated into one piece. The image sensor 120 and/or the controller 130 is, for example, a physical circuit structure formed using a semiconductor process. In an embodiment, the image sensing device 11 is, for example, a time-of-flight (ToF) device.
(19) The light source 110 is, for example, a light-emitting diode (LED) or a laser diode (LD) that could emit light L1 to illuminate the target O, so that an image (or a picture) of the surface O.sub.S of the target O could be captured. In addition, the light L1 is, for example, infrared light, but the embodiment of the present invention is not limited thereto. The light L1 reflected from the target O becomes the reflected light L2, and the reflected light L2 is received by the image sensor 120. The image sensor 120 converts the received reflected light L2 into a received signal S12. The controller 130 could perform corresponding processing and calculation according to the received signal S12 received by the image sensor 120, and generate an output value S2 to the processor 12. The output value S2 is, for example, a phase difference value between the signal of the light L1 and the signal of the light L2, and the processor 12 could obtain the distance between the electronic device 10 and the target O according to the phase difference values.
(20) As illustrated in
(21) The exposure process of any pixel unit P.sub.N×M based on an exposure time may include the following steps. The switches R1 and R2 are turned on to simultaneously charge the first capacitor C1 and the second capacitor C2. When the first capacitor C1 and the second capacitor C2 are fully charged, the switches R1 and R2 are switched to be turned off. Then, the first switch SW1 and the second switch SW2 could be selectively controlled to be turned on or off alternately. For example, as illustrated in
(22) As illustrated in
(23) The surface O.sub.S of the target O has a stereoscopic (3D) profile, and thus the distances between the corresponding points of the pixel units P.sub.N×M and the surface O.sub.S are not completely equal, and the received signals S12 generated by each pixel unit P.sub.N×M may be different. The processor 12 could obtain an overall three-dimensional contour of the surface O.sub.S of the target O according to the phase difference value corresponding to each pixel unit.
(24) As illustrated in
(25) In order to increase the accuracy of distance measurements, the light source 110 could provide four light signals L1 having different phase delays, and the distance between the electronic device 10 and the target O could be calculated according to the four received signals S12 of the four reflected light L2. For example, the emitted signal S11 of
(26) For example, under an exposure time for exposing the pixel unit (for example, capturing an image), the controller 130 calculates an output value S2 according to the following formulas (1) to (3). The calculations of) Image (0°), Image (90°), Image (180°) and Image (270°) are similar or identical to the above description, and will not be repeated here.
I=Image(0°)−Image(180°) (1)
Q=Image(90°)−Image(270°) (2)
S2=tan.sup.−1(Q/I) (3)
(27) The controller 130 transmits the output value S2 according to the formulas (1) to (3) and transmits the output value S2 to the processor 12. The processor 12 calculates the distance between the electronic device 10 and the target O according to the output value S2. The controller 130 calculates a number of distances between the number of the pixel units and a number of different positions of the surface O.sub.S of the object O, according to the above principle and the formulas (1) to (3), for obtaining a stereoscopic contour of the surface O.sub.S.
(28) In the present embodiment, the controller 130 further obtains the light-intensity confidence value C of each pixel unit according to the four received signals S12 (the signals of the four reflected light L2). For example, the calculation for the light-intensity confidence value C refers to the following formula (4). It can be seen from the formula (4) that the light-intensity confidence value C is proportional to the light intensity of the reflected light L2. Therefore, the light-intensity confidence value C of each pixel unit based on the current exposure time could be obtained under different exposure times, and the output value S2 of each pixel unit could be determined or selected according to a number of the light-intensity confidence values C.
C=(I.sup.2+Q.sup.2).sup.1/2 (4)
(29) Referring to
(30) In step S110, referring to
(31) In step S120, as illustrated in
(32) In step S130, as illustrated in
(33) In step S140, the controller 130 determines whether the first light-intensity confidence value C1, the second light-intensity confidence value C2, and the third light-intensity confidence value C3 all range between an upper confidence limit CU and a lower confidence limit CL (hereinafter referred to as “a qualified interval”). If so, the process proceeds to step S150; if not, the process proceeds to step S160. Here, the light-intensity confidence value in the qualified interval is called “qualified light-intensity confidence value”, and the light-intensity confidence value outside the qualified interval is called “unqualified light-intensity confidence value”.
(34) In step S150, as illustrated in
(35) In step S160, referring to
(36) Then, in step S170, the controller 130 controls the image sensing device 11 to capture the images of the target O based on the fourth exposure time T4 to obtain the output value S2 of the pixel unit based on the fourth exposure time T4.
(37) In step S160 of another embodiment, referring to
(38) It can be seen from the foregoing embodiments of
(39) In addition, in the exposure method of another embodiment, step S130 of
(40)
(41) Referring to
(42) As illustrated in
(43) In step S210 of
(44) In step S220, the controller 130 takes the phase difference value, corresponding to the second light-intensity confidence value C2, as the output value S2 of the corresponding pixel unit. The pixel units illustrated as hatching in
(45) In step S230, for pixel units without hatching in
(46) In step S240, the controller 130 takes the phase difference value, corresponding to the third light-intensity confidence value C3, as the output value S2 of the corresponding pixel unit. The pixel unit without hatching in
(47) In step S250, for the pixel units without hatching in
(48) In step S260, the controller 130 takes the phase difference value, corresponding to the first light-intensity confidence value C1, as the output value S2 of the corresponding pixel unit.
(49) In step S250, if the first light-intensity confidence value C1 is outside the qualified interval (i.e., the determination result is “No”), it means that the pixel unit cannot generate the qualified light-intensity confidence value under the lower, medium and higher exposure times, the controller 130 may determine the qualified light-intensity confidence value of the pixel unit(s) according to the foregoing S160 and S170 of
(50) In summary, in an embodiment, for each pixel unit, the controller 130 is configured to: after obtaining the light-intensity confidence value of each pixel unit at the lower, medium and higher exposure times, the qualified light-intensity confidence value is preferentially taken as the output value of the pixel unit based on the medium exposure time; then, for the pixel units that has not yet determined the output value, the qualified light-intensity confidence value is taken as the output value of the pixel unit based on the higher exposure time; then, for the pixel that has not yet determined the output value, the qualified light-intensity confidence value is taken as the output value of the pixel unit based on the low exposure time; then, for the pixel unit (if any) that cannot generate the qualified light-intensity confidence value at the lower, medium and higher exposure times, the controller 130 could determine the qualified light-intensity confidence value of the pixel unit(s) using the steps S160 and S170 of
(51) In another embodiment, for each pixel unit, the controller 130 is configured to: after obtaining the light-intensity confidence value of each pixel unit at the lower, medium and higher exposure times, the qualified light-intensity confidence value is preferentially taken as the output value of the pixel unit based on the higher exposure time; then, for the pixel units that has not yet determined the output value, the qualified light-intensity confidence value is taken as the output value of the pixel unit based on the low exposure time; then, for the pixel unit (if any) that cannot generate the qualified light-intensity confidence value at the higher and lower exposure times, the controller 130 could determine the qualified light-intensity confidence value of the pixel unit(s) using the steps S160 and S170 of
(52) In other embodiments, for each pixel unit, the controller 130 is configured to: after obtaining the light-intensity confidence values of each pixel unit at a number of different exposure times, the qualified light-intensity confidence value, at arbitrary one of a number of different exposure times, preferentially taken as the output value of the pixel unit; then, for the pixel unit that has not yet determined the output value, the qualified light-intensity confidence value, at another one of the different exposure times, taken as the output value of the pixel unit; then, for the pixel unit (if any) that cannot generate the qualified light-intensity confidence value, the controller 130 may determine the qualified light-intensity confidence value of the pixel unit(s) using the steps S160 and S170 of
(53) Referring to
(54) First, as illustrated in
(55) In step S310 of
(56) In step S320, as illustrated in
(57) In step S330, as illustrated in
(58) In step S340, for each pixel unit, the controller 130 takes the phase difference value, corresponding to the minimal one of the first absolute values of differences ΔC1, the second absolute values of differences ΔC2 and the third absolute values of differences ΔC3, as the output value S2 of the pixel unit. For example, as illustrated in
(59) In the present embodiment, no matter whether the first absolute values of differences ΔC1, the second absolute values of differences ΔC2 and the third absolute values of differences ΔC3 are within the qualified interval, the controller 130 takes the phase difference value, corresponding to the minimal one of the first absolute values of differences ΔC1, the second absolute values of differences ΔC2 and the third absolute values of differences ΔC3, as the output value S2 of the pixel unit.
(60) In another embodiment, the controller 130 only takes the phase difference value, corresponding to the minimal one of a number of the absolute values of differences in the qualified interval, as the output value S2 of the pixel unit. For example, in
(61) Referring to
(62) In step S410, the controller 130 obtains the light-intensity confidence value of each pixel unit based on a higher exposure time. For example, as illustrated in
(63) In step S420, for all second light-intensity confidence values C2, the controller 130 determines whether a ratio of the second light-intensity confidence values C2 which are higher than a light-intensity confidence threshold is higher than a threshold ratio, wherein the ratio determined by the controller 130 indicates the number of the second light-intensity confidence values C2 which are higher than the light-intensity confidence threshold to the number of all second light-intensity confidence values C2. If the ratio is higher than the threshold ratio, the process proceeds to step S430; if not, the process of the exposure method ends. The aforementioned light-intensity confidence threshold is, for example, the upper confidence limit CU, and the threshold ratio is, for example, 5%, higher or lower.
(64) In step S430, the controller 130 obtains the light-intensity confidence value of each pixel unit based on a lower exposure time. For example, as illustrated in
(65) In step S440, the controller 130 may analyze the changing trend of the first light-intensity confidence value C1 and the second light-intensity confidence value C2 by using a suitable mathematical method, such as a linear regression method, and determine the third light-intensity confidence value C3 and the third exposure time T1 thereof of each pixel unit in the qualified interval. In the present embodiment, the light-intensity confidence value C3 is within the qualified interval, or may also be higher than the upper confidence limit CU or lower than the lower confidence limit CL.
(66) In step S450, the controller 130 controls the image sensing device 11 to capture the image of the target O based on the third exposure time T3 to obtain the output value S2 of each pixel unit based on the third exposure time T3.
(67) In summary, a phase difference value of each pixel unit could be obtained based on a single exposure time (e.g., taking one shot of the target). In the embodiments of the present invention, a number of the phase difference values of each pixel unit could be obtained based on a number of the different exposure times (e.g., taking multiple shots of the target), and then one phase difference value is determined (or selected) from these phase difference values, according to the light-intensity confidence value, to represent the suitable phase difference value that is not overexposed or underexposed.
(68) While the invention has been described in terms of what is presently considered to be the most practical and preferred embodiments, it is to be understood that the invention needs not be limited to the disclosed embodiment. On the contrary, it is intended to cover various modifications and similar arrangements included within the spirit and scope of the appended claims which are to be accorded with the broadest interpretation so as to encompass all such modifications and similar structures.