This application claims the priority benefit of Taiwan application serial no. 106127125, filed on Aug. 10, 2017. The entirety of the above-mentioned patent application is hereby incorporated by reference herein and made a part of this specification.
The invention relates to an image depth sensing method and an image depth sensing apparatus.
In recent years, the application of three-dimensional (3D) image capturing device becomes more and more popular. For example, a dual-lens camera is a commonly used 3D image capturing device, which uses a viewing angle difference of two lenses to measure a distance between an object and the camera. Another commonly used technique is, for example, to measure a difference between a time when a laser light is emitted and a time when the laser light is reflected by the object to serve as a time of flight (TOF) of photon, so as to calculate the distance of the object. Moreover, another technique is to use a fixed distance to dispose a light emitting device and a light detecting device. The light emitting device emits a light to the object in an angle of emission, and the light detecting device may detect the light reflected by the object and a reflecting angle thereof. According to the aforementioned angle of emission and the reflecting angle in collaboration with the distance between the two devices, the distance of the object may be calculated according to mathematical principles of triangle. Based on the aforementioned various methods, a distance of a point in a space may be easily measured. However, it has to take a lot of time to measure the distance of the whole area.
Invention of structured light measurement technology decreases a processing time and equipment cost required for measuring the distance of each place in the area. A basic application of the structured light measurement technology is, for example, to sequentially project a plurality of the structured lights with different coding patterns to a specific area in a scanning cycle, and then use the light detecting device to detect reflected patterns corresponding to the structured lights. Based on the different coding patterns and the detected corresponding reflected patterns, a reflecting angle of the reflected light and a projecting angle of the corresponding projected light may be determined, and based on the mathematical principles of triangle, the distances of different places in the area may be deduced.
However, under a design trend of light and slim of the electronic devices, power consumption is one of the most important factors to be considered. Therefore, how to design a mechanism capable of effectively obtaining 3D images in a lower power consumption to prolong a device usage time is one of the targets to be achieved by related technicians of the field.
The disclosure is directed to an image depth sensing method and an image depth sensing apparatus, by which a power required for sensing an object depth is saved to prolong a device usage time.
The disclosure provides an image depth sensing method, which is adapted to an image depth sensing apparatus for obtaining depth information within a field of view. The method includes following steps: determining whether the field of view includes a distant object with a depth greater than a distance threshold; in response to determining that the field of view does not include the distant object, obtaining the depth information within the field of view according to a general mode; and in response to determining that the field of view includes the distant object, obtaining the depth information within the field of view according to an enhanced mode. A maximum depth that can be detected in the general mode is not greater than the distance threshold, and a maximum depth that can be detected in the enhanced mode is greater than the distance threshold.
The disclosure provides an image depth sensing apparatus including a depth image capturing device and a processing device. The depth image capturing device is configured to capture a light signal image within a field of view. The processing device is coupled to the depth image capturing device, and is configured to obtain depth information within the field of view according to a general mode or an enhanced mode by using the depth image capturing device. A maximum depth that can be detected in the general mode is not greater than a distance threshold, and a maximum depth that can be detected in the enhanced mode is greater than the distance threshold. The processing device determines whether the field of view includes a distant object with a depth greater than the distance threshold, obtains the depth information within the field of view according to the general mode by using the depth image capturing device in response to determining that the field of view does not include the distant object, and obtains the depth information within the field of view according to the enhanced mode by using the depth image capturing device in response to determining that the field of view includes the distant object.
According to the above description, the image depth sensing method and the image depth sensing apparatus of the disclosure provide the general mode and the enhanced mode with different sensing abilities, and determine the mode used for image depth sensing according to the distance of the object within the field of view. In this way, the power is saved to prolong the device usage time.
In order to make the aforementioned and other features and advantages of the invention comprehensible, several exemplary embodiments accompanied with figures are described in detail below.
The accompanying drawings are included to provide a further understanding of the invention, and are incorporated in and constitute a part of this specification. The drawings illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
Embodiments of the invention provide an image depth sensing method and an image depth sensing apparatus using the same. In the provided method, two modes used for sensing an object depth including a general mode and an enhanced mode are provided. Compared to the general mode, the enhanced mode may consume more power, and a maximum object depth that can be detected in the enhanced mode is deeper than a maximum object depth that can be detected in the general mode. Particularly, according to the image depth sensing method of the invention, the enhance mode is switched only when a distant object is detected within the field of view (for example, an object with a distance exceeding the maximum depth that can be detected in the general mode), and otherwise the general mode is maintained to save the power of the device.
In an embodiment, the image depth sensing device 100 may further include an image capturing device (not shown), which is coupled to the processing device 130. The image capturing device is, for example, a conventional color camera, and is configured to capture a two-dimensional (2D) color image within the FOV. The processing device 130 combines the depth information within the FOV with the 3D color image to obtain a 3D color image.
In the present embodiment, the processing device 130 is, for example, a central processing unit (CPU), or other programmable microprocessor, etc., though the invention is not limited thereto. In an embodiment, the processing device 130 may further include a lens control unit (not shown) configured to control the depth image capturing device 110.
In the present embodiment, the image depth sensing device 100, for example, determines a depth or a distance of an object through a structured light technique, and the depth image capturing device 110 includes a structured light projecting device 111 and a reflected light detecting device 113. However, in other embodiments, the image depth sensing device 100 may also determine the depth or the distance of the object through other techniques such as a viewing angle difference, etc.
The structured light projecting device 111 is coupled to the processing device 130, and is configured to project a plurality of structured lights within the FOV. In an embodiment, the structured lights projected by the structured light projecting device 111 is an invisible light (for example, an infrared light), and the structured light projecting device 111 is configured with a fine-motion structure, and is controlled by the processing device 130 to project structured lights with different coding patterns to the FOV. The detailed structure of the structured light projecting device 111 is not limited by the invention, and those skilled in the art may implement the structured light projecting device 111 of the invention according to an actual requirement.
The reflected light detecting device 113 is coupled to the processing device 130, and is configured to capture a plurality of light signal images corresponding to the structured lights projected by the structured light projecting device 111 within the FOV. In an embodiment, the structured lights projected by the structured light projecting device 111 are invisible lights (for example, infrared lights), and the reflected light detecting device 113 is, for example, an invisible light (for example, infrared light) detector or camera, which is configured to capture images of the reflected structured lights. Similarly, the detailed structure of the reflected light detecting device 113 is not limited by the invention, and those skilled in the art may implement the reflected light detecting device 113 of the invention according to an actual requirement.
Referring to
Referring to
It should be noted that for clarity's sake, only the first three scan lines S1 to S3, the 36th scan line S36 and the 64th scan line S64 are indicated in
An interval of the scan lines from bright to dark in one structured light is referred to as one spatial period. Therefore, the spatial period of the structured light SL1 is 32 times of the spatial period of the structured light SL6, and the spatial frequency (for example, 32f) of the structured light SL6 is 32 times of the spatial frequency (for example, f) of the structured light SL1. In other words, the spatial frequency of the structured light may represent a number of times that the scan lines of the structured light are switched from bright to dark within the FOV.
Referring to
For example, the reflecting point is detected at a certain pixel position P in the light signal images IMG2, IMG3 and IMG4, and the reflecting point is not detected at the same pixel position in the light signal images IMG1, IMG5 and IMG6. Since the 36th scan lines of the structured lights SL2, SL3 and SL4 are bright scan lines, and the 36th scan lines of the structured lights SL1, SL5 and SL6 are dark scan lines, it is deduced that the 36th scan line S36 is reflected by the object. A projecting angle may be deduced from the 36th scan line, and a reflecting angle may be deduced from the pixel position P, and in collaboration with a known distance between the structured light projecting device 111 and the reflected light detecting device 113, a depth of the pixel position P may be calculated. In this way, after the depths of every pixel positions within the FOV are calculated, the depth information within the FOV is calculated.
In an embodiment of the invention, the processing device 130 may further control the structured light projecting device 111 to project the structured lights of different intensities. For example, in the general mode, the structured light projecting device 111 projects the structured light of a first intensity, and in the enhanced mode, the structured light projecting device 111 projects the structured light of a second intensity greater than the first intensity. Therefore, a maximum depth that can be detected in the enhanced mode is deeper than a maximum depth that can be detected in the general mode.
In an embodiment of the invention, the processing device 130 may further control the reflected light detecting device 113 to amplify a light current using different amplification factors, so as to capture the light signal image. For example, in the general mode, the reflected light detecting device 113 amplifies the light current using a first amplification factor, and in the enhanced mode, the reflected light detecting device 113 amplifies the light current using a second amplification factor greater than the first amplification factor. Therefore, in the enhanced mode, a light sensitivity in the enhanced mode is higher than a light sensitivity in the general mode, and the maximum depth that can be detected in the enhanced mode is deeper than the maximum depth that can be detected in the general mode.
In an embodiment of the invention, the processing device 130 may simultaneously control the structured light projecting device 111 and the reflected light detecting device 113. In the general mode, the structured light projecting device 111 sequentially projects a plurality of structured lights of the first intensity within the FOV, and the reflected light detecting device 113 captures a plurality of first light signal images of the FOV using the first amplification factor. In the enhanced mode, the structured light projecting device 111 sequentially projects a plurality of structured lights of the second intensity within the FOV, and the reflected light detecting device 113 captures a plurality of second light signal images of the FOV using the second amplification factor.
The processing device 130 analyzes the obtained light signal images (for example, the first light signal images or the second light signal images) to obtain the depth information in the FOV according to the aforementioned method.
First of all, the processing device 130 determines whether the FOV of the image depth sensing apparatus 100 includes a distant object with a depth greater than a distance threshold (S410). In the present embodiment, the distance threshold is predetermined as the maximum depth that can be detected in the general mode, though the invention is not limited thereto.
If the FOV does not include the distant object, it represents that a detecting ability of the general mode is enough to detect all object depths in the FOV. Therefore, the processing device 130 obtains the depth information within the FOV according to the general mode by using the depth image capturing device 110 in response to determining that the FOV does not include the distant object (S430).
If the FOV includes the distant object, it represents that the detecting ability of the general mode is not enough to detect all object depths in the FOV. Therefore, the processing device 130 obtains the depth info nation within the FOV according to the enhanced mode by using the depth image capturing device 110 in response to determining that the FOV includes the distant object (S450).
The detailed method for obtaining the depth information within the FOV according to the general mode and the enhanced mode has been described in the aforementioned embodiment, and those skilled in the art may implement the same according to the embodiment of the invention, and detail thereof is not repeated.
Embodiments are provided below to describe how the processing device 130 of the embodiment of the invention determines whether the FOV includes the distance object.
Referring to
On the other hand, in the enhanced mode, if the processing device 130 keeps determining that the FOV does not include the distant object in M structured light processing cycles, the processing device 130 switches back to the general mode to obtain the depth information (S503). Conversely, the processing device 130 maintains in the enhanced mode (S504).
In the present embodiment, by determining whether the FOV includes the distant object every specific period (for example, N structured light processing cycles), the number of times for determination and power consumption are saved. It should be noted that M, N are positive integers, and the actual values of M and N are not limited by the invention.
Referring to
In the present embodiment, the processing device 130, for example, projects the structured lights SL1 to SL5 (the first structured lights) of the first intensity, and obtains the corresponding first images IMG1 to IMG5, and projects the structured light SL6 (the second structured light) of the second intensity, and obtains the corresponding second image IMG6. If only the second image IMG6 has the reflecting point at a certain pixel position, and the first images IMG1 to IMG5 do not have the reflecting point at the certain pixel position, it represents that the reflecting point appeared at the certain pixel position is coming from the reflection of a distant object. Therefore, the processing device 130 determines that the FOV includes the distant object and then obtains the depth information within the FOV in the enhanced mode.
It should be noted that since the 63rd scan line is a dark scan line in each of the structured lights SL1 to SL5, and is a bright scan line in the structured light SL6, in order to avoid confusion, the processing device 130 of the present embodiment may not use the coded 63rd scan line.
Similar to the embodiment of
On the other hand, in an embodiment, the processing device 130 may project the structured lights SL1 to SL5 (the first structured lights) of the second intensity in the enhanced mode and obtain the corresponding first images IMG1 to IMG5, and project the structured light SL6 (the second structured light) of the first intensity and obtain the corresponding second image IMG6. If the reflecting points ever appeared in the first images IMG1 to IMG5 all appear in the second image IMG6, the processing device 130 determines that the FOV does not include the distant object. When the processing device 130 keeps determining that the FOV does not include the distant object in M structured light processing cycles, the processing device 130 switches back to the general mode. Otherwise, the processing device 130 maintains in the enhanced mode.
It should be noted that in some cases of the aforementioned embodiment, when the reflecting points ever appeared in the first images IMG1 to IMG5 do not appear in the second image IMG6, the FOV probably does not include the distant object. For example, when the reflecting point ever appeared in the first images IMG1 to IMG5 is just located at an even numbered scan line (i.e. the dark scan line of the structured light SL6), the reflecting point may not necessarily come from the distant object, which causes that the processing unit 130 fails to make a correct determination. In order to enhance correctness of the determination to further save power, the processing unit 130 may replace all of the dark scan lines of the structured light SL6 by the bright scan lines, i.e. to use the first intensity to project the structured light SL6 with 64 bright scan lines. In this way, the correctness of “determining that the FOV does not include the distant object if the reflecting points ever appeared in the first images IMG1 to IMG5 all appear in the second image IMG6” is improved.
Compared to the embodiment of
Referring to
In the present embodiment, the processing device 130, for example, projects the structured lights SL1 to SL5 (the first structured lights) of the first intensity and obtains the corresponding first images IMG1 to IMG5, and projects the structured light SL6 (the second structured light) of the second intensity and obtains the corresponding second image IMG6.
In the present embodiment, the processing device 130 only requires to compare whether the second image IMG6 has the reflecting point that is not appeared in the first image IMG5, and may determine whether the FOV includes the distant object. When the second image IMG6 has the reflecting point that is not appeared in the first image IMG5, the processing device 130 may determine that the FOV includes the distant object, and obtains the depth information within the FOV in the enhanced mode.
On the other hand, the processing device 130, for example, projects the structured lights SL1 to SL5 (the first structured lights) of the second intensity and obtains the corresponding first images IMG1 to IMG5, and projects the structured light SL6 (the second structured light) of the first intensity and obtains the corresponding second image IMG6. The processing device 130 only requires to compare whether the first image IMG5 has the reflecting point that is not appeared in the second image IMG6, and may determine whether the FOV includes the distant object. When the first image IMG5 has the reflecting point that is not appeared in the second image IMG6, the processing device 130 determines that the FOV includes the distant object, otherwise, the processing device 130 determines that the FOV does not include the distant object.
Particularly, compared to the embodiment of
Similar to the embodiment of
Referring to
Similarly, in the present embodiment, the processing device 130, for example, projects the structured lights SL1 to SL6 (the first structured lights) of the first intensity and obtains the corresponding first images IMG1 to IMG6, and projects the structured light SL7 (the second structured light) of the second intensity and obtains the corresponding second image IMG7.
In the present embodiment, the processing device 130 only requires to compare whether the second image IMG7 has the reflecting point that is not appeared in the first image IMG6, and may determine whether the FOV includes the distant object. When the second image IMG7 has the reflecting point that is not appeared in the first image IMG6, the processing device 130 may determine that the FOV includes the distant object, and obtains the depth information within the FOV in the enhanced mode.
On the other hand, the processing device 130, for example, projects the structured lights SL1 to SL6 (the first structured lights) of the second intensity and obtains the corresponding first images IMG1 to IMG6, and projects the structured light SL7 (the second structured light) of the first intensity and obtains the corresponding second image IMG7. The processing device 130 only requires to compare whether the first image IMG6 has the reflecting point that is not appeared in the second image IMG7, and may determine whether the FOV includes the distant object. When the first image IMG6 has the reflecting point that is not appeared in the second image IMG7, the processing device 130 determines that the FOV includes the distant object, otherwise, the processing device 130 determines that the FOV does not include the distant object.
Particularly, compared to the embodiment of
Similar to the embodiment of
In an embodiment, the image depth sensing apparatus 100 further includes an input device (not shown) coupled to the processing device 130. The input device is configured to receive an input signal to select a region of interest (ROI) in the FOV. The processing device 130 only determines whether the ROI includes the distant object.
For example, the ROI is a region covered by the 10th to 20th scan lines in the FOV. When the processing device 130 determines whether the ROI includes the distant object, the processing device 130, for example, only use the second intensity to project the 10th to 20th scan lines, and maintains the first intensity to project the 1st to 9th scan lines and the 21st-64th scan lines. In this way, besides the power required for projecting the structured lights is decreased, a computation burden of the processing device 130 is also decreased.
It should be noted that the aforementioned embodiments of the invention all take 64 scan lines as an example for description, so that it is only required to project 6 structured lights with different spatial frequencies to calculate the depth information within the FOV. However, the invention is not limited thereto, and in other embodiments, 10 structured lights with different spatial frequencies may be projected within the structured light processing cycle and each structured light includes 1024 scan lines, or 11 structured lights with different spatial frequencies may be projected within the structured light processing cycle and each structure light includes 2048 scan lines, so as to achieve a higher resolution.
In summary, besides the image depth sensing method and the image depth sensing apparatus of the invention, the embodiments of the invention further provide more methods for determining whether the FOV includes the distant object, so as to determine to use the general mode or the enhanced mode, which not only saves the device power, but also decreases a computation burden.
It will be apparent to those skilled in the art that various modifications and variations can be made to the structure of the invention without departing from the scope or spirit of the invention. In view of the foregoing, it is intended that the invention cover modifications and variations of this invention provided they fall within the scope of the following claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
106127125 | Aug 2017 | TW | national |