Depth maps generated from a single sensor
10839537 ยท 2020-11-17
Assignee
Inventors
Cpc classification
H04N2013/0092
ELECTRICITY
H04N13/271
ELECTRICITY
International classification
H04N13/00
ELECTRICITY
H04N13/271
ELECTRICITY
Abstract
A camera module with a fixed near field focus is configured to capture a single image. That single image is segmented by an image divider a number of regions. A focus metric determiner then determines a focus metric for each of the regions. A depth map generator maps the focus metric into a depth value for each of the regions and combines the depth values to generate a depth map.
Claims
1. An apparatus, comprising: a single camera module with a fixed focus macro mode configured to capture a first single image; an image divider configured to segment the first single image into a plurality of regions; a focus metric determiner configured to determine a focus metric for each region of the plurality of regions; a depth map generator configured to map the focus metric into a depth value for each region of the plurality of regions and combine the depth values to generate a depth map; and an object determiner configured to: determine a certain region of the plurality of regions which has a highest focus metric and a smallest depth value; determine a closest located object within the first single image based on the depth map and the determined certain region; track the closest located object while it stays in a same focal plane as the certain region; and cease to track the closest located object if it exits the same focal plane as the certain region.
2. The apparatus as claimed in claim 1, further comprising a gesture determiner configured to recognize a gesture from the tracking of the closest located object while it stays in the same focal plane as the certain region.
3. A method, comprising: capturing a first single image with a single camera module with a fixed focus macro mode with short depth of field; segmenting the first single image into a plurality of regions; determining a focus metric for each region of the plurality of regions; mapping the focus metric into a depth value for each region of the plurality of regions; combining the depth values to generate a depth map; determining a certain region of the plurality of regions which has a highest focus metric and a smallest depth value; determining a closest located object within the first single image based on the depth map and the determined certain region; tracking the closest located object while it stays in a same focal plane as the certain region; and ceasing to track the closest located object if it exits the same focal plane as the certain region.
4. The method as claimed in claim 3, further comprising recognizing a gesture from the tracking of the closest located object while it stays in the same focal plane as the certain region.
5. A method, comprising: capturing a first single image; segmenting the first single image into regions; determining a focus metric for each of the regions; generating a depth map by mapping the focus metric into a depth value for each region and combining the depth values; identifying a region having a highest focus metric and a smallest depth value; locating a closest object within the first single image based on the depth map and the identified region; and tracking the closest located object while it stays in a same focal plane as the identified region, and otherwise ceasing tracking of the closest located object.
6. The method as claimed in claim 5, further comprising recognizing a gesture from the tracking of the closest located object.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) Reference is now made by way of example only to the accompanying drawings in which:
(2)
(3)
(4)
(5)
(6)
(7)
DETAILED DESCRIPTION OF SOME EMBODIMENTS
(8) The concept associated with embodiments as described herein is the employment of a single camera to determine a depth map from a single image.
(9) A conventional multiple camera or camera array implementation in a mobile phone may, for example, determine an object's motion away from the mobile phone and thus enable gesture control of the mobile phone. First, the multiple cameras may capture images. The Image Signal Processor (ISP) or processor may then post-process the images to construct a 3D map. Although a multi-camera implementation typically does not increase the mobile phone's Z height (or the thickness), which is common problem for higher resolution mobile cameras in the pixel race the use of dual or multiple cameras in a device requires twice (or M times) the volume of a single camera. Furthermore, in some embodiments depth maps may be generated from a single camera augmented with a time of flight or similar optical sensor. Such configurations are problematic and require significant hardware and processing in order to determine the depth map.
(10) In some situations, a single camera may determine a depth map from multiple images. For example, by taking two or more separate images with different focus points or a camera enabled to scan (in other words capture images from 2 separate points of view). In such embodiments there is a problem in that the exposures taken at different times may be images of two different objects (for example when an object is moving very quickly) or images of the same object having moved between the exposures.
(11) The concept as further described hereafter is related to apparatus and methods for generating a depth map from a single image. In such apparatus a single camera with a fixed focus and with a short depth of field is used to capture an image which may be divided into regions (of interest). These image regions or parts or segments may be analyzed to determine a focus metric for each region. Then, using the relationship between the focus metric value and an object distance from the sensor a series of object distance, values for each region are generated to form a depth map. The generated depth map may then be analyzed to determine and classify objects and furthermore the track the objects, for example, tracking a finger or hand position. The tracking of the objects may then be used to perform gesture determination and furthermore to control functions or parameters. For example, in an automotive environment a camera may be set in the car which captures images and determines a hand or finger object from which gesture recognition of the tracking of the object may control the audio volume function. In the following examples the depth maps are employed in object tracking and gesture recognition applications. However, it is understood that depth maps can have many potential applications.
(12) With respect to
(13) An output from the pixel array may be provided to a processor 104. The processor 104 may be configured to run or execute any suitable application or program, such as the single image depth map determination, object determination, object tracking, and gesture control. Furthermore, in some embodiments the device comprises memory 105 configured to store the application or program code and furthermore to store data such as the image data from the pixels 102, or the object classification and/or tracking data.
(14) The output of the processor 104 may control, for example, an audio sub-system 106. However, any suitable output such as a display may be controlled. For example, the display may allow a representation of the depth map and/or the captured image to be displayed. Alternatively, or additionally, the depth map and/or object information and/or gesture control information may be output via an interface 108. The interface 108 may provide an output to another device and/or to a communications link. The communications link may be a radio link, the internet, a wireless local area network, a mobile communications network or any other suitable link.
(15) With respect to
(16)
(17) The RoI divider 301 may then be configured to divide up the image into a number of different regions. The regions may be distributed over the image according to any desired arrangement. For example, in some embodiments the ROI divider is configured to generate a series of non-overlapping regularly distributed regions. However, the regions may be arranged in an irregular distribution, a non-overlapping/partially overlapping or overlapping distribution. The size of the ROIs may be tuned for a specific application.
(18) With respect to
(19) In some embodiments, a focus metric determiner 303 is configured to receive the image values associated with a defined region. The focus metric determiner 303 may be configured to determine a focus metric with respect to the image data for the region. This focus metric can be any suitable focus metric or measurement such as Modulation Transfer Function (MTF) or Spatial Frequency Response (SFR). The focus metric determiner 303 may then output the focus metric values for a region to a depth map generator 305.
(20) In some embodiments, the depth map controller 302 may further control the focus metric determiner 303. For example, the focus metric determiner 303 may be configured to switch between focus metrics when implementing different applications.
(21) In some embodiments, a depth map generator 305 is configured to receive the focus metric values associated with each region and from this value determine a depth or distance value. This, for example, may comprise a mapping from the focused metric value to a depth map value. This mapping may be linear mapping or non-linear mapping. For example,
(22) In some embodiments, a depth map controller 302 may be configured to control the region of interest divider 301 to define the arrangement or configuration of the region of interests.
(23) With respect to
(24)
(25)
(26)
(27) In some embodiments where multiple regions have the same focus metrics, a decision may be made to either take the weighted centroid of the whole image (or regions with focus metrics>a determined threshold value) or locate and track multiple objects.
(28) In some embodiments, the object tracker is configured to track, on a frame to frame basis as the object moves, the object XYZ co-ordinates. In such embodiments, a high frame rate camera may be employed to raise the maximum speed at which an object can travel while still being tracked.
(29) In some embodiments, the determined objects from the object determiner 307b and the object tracking information from the object tracker 307c can be passed to a gesture recognizer 309.
(30) In some embodiments the apparatus may comprise a gesture recognizer 309. The gesture recognizer 309 may be configured to receive the determined object and/or tracked objects and determine whether or not the motion of the tracked object in X, Y, and Z space match a defined gesture.
(31) In some embodiments, the gesture recognizer 309 can be configured to learn new gestures, in other words the gesture recognizer 309 may be trained. The gesture recognizer 309 may be configured to output any identified gestures to a characteristic controller 311.
(32) In some embodiments, the apparatus comprises a characteristic controller 311 configured to respond to a recognized gesture and control a function or characteristic of the apparatus based on the recognized gesture. For example, the characteristic controller may be configured to change the user interface display to display the next page of text or to raise or lower the volume of an audio track.
(33) With respect to
(34) The apparatus is configured to receive the image from the fixed focus camera.
(35) The operation of receiving the image from the fixed focus camera is shown in
(36) The image can then be divided into regions.
(37) The operation of dividing the image into regions (of interest) is shown in
(38) The apparatus may further determine a focus metric for each region.
(39) The operation of determining the focus metric for each region is shown in
(40) Furthermore, the apparatus may be configured to map the determined region focus metrics to a depth value.
(41) The operation of mapping the focus metric to a depth value is shown in
(42) The apparatus may then be configured to determine from the depth map an object location and/or object classification and/or object tracking value. These values may be stored or used in further applications.
(43) The operation of determining characteristics from the depth map for objects is shown in
(44) Furthermore, in some embodiments the apparatus is configured to determine a gesture from the motion of the detected or determined object.
(45) The operation of determining a gesture from the motion of an identified object gestures is shown in
(46) Furthermore, in some embodiments the apparatus may be configured to control characteristics or/and functions of the apparatus based on the detected gestures.
(47) The operation of controlling characteristic/functions based on the gestures is shown in
(48) An example application may be within automotive gesture recognition. As this is effectively machine vision, various different algorithms (for example sharpening, edge enhancement, noise reduction, Canny filter, etc . . . ) may be applied to the image before collecting focus measurements or statistics. In some embodiments the apparatus image array is an IR region of the light spectrum sensitive array. Furthermore in some embodiments the apparatus further comprises an IR illuminator (IR LED) providing a light source.
(49) Some embodiments may be provided in an electronic device. It should be appreciated that the device may be any suitable device. By way of example only and without limitation, that device may be a mobile telephone, smart phone, tablet, computer, camera or the like.
(50) Various embodiments with different variations have been described here above. It should be noted that those skilled in the art may combine various elements of these various embodiments and variations. Such alterations, modifications, and improvements are intended to be part of this disclosure, and are intended to be within the scope of the present invention. Accordingly, the foregoing description is by way of example only and is not intended to be limiting. The present invention is limited only as defined in the following claims and the equivalents thereto.