空 挡 广 告 位 | 空 挡 广 告 位

Microsoft Patent | Stereoscopic object detection leveraging expected object distance

Patent: Stereoscopic object detection leveraging expected object distance

Drawings: Click to check drawins

Publication Number: 20180197047

Publication Date: 20180712

Applicants: Microsoft Technology Licensing

Assignee: Microsoft Technology Licensing

Abstract

A method of object detection includes receiving a first image taken from a first perspective by a first camera and receiving a second image taken from a second perspective, different from the first perspective, by a second camera. Each pixel in the first image is offset relative to a corresponding pixel in the second image by a predetermined offset distance resulting in offset first and second images. A particular pixel of the offset first image depicts a same object locus as a corresponding pixel in the offset second image only if the object locus is at an expected object-detection distance from the first and second cameras. The method includes recognizing that a target object is imaged by the particular pixel of the offset first image and the corresponding pixel of the offset second image.

Claims

1. A method of object detection, the method comprising; receiving a first image taken from a first perspective by a first camera; receiving a second image taken from a second perspective, different from the first perspective, by a second camera; offsetting each pixel in the first image relative to a corresponding pixel in the second image by a predetermined offset distance resulting in offset first and second images, wherein a particular pixel of the offset first image depicts a same object locus as a corresponding pixel in the offset second image only if the object locus is at an expected object-detection distance from the first and second cameras; and recognizing that a target object is imaged by the particular pixel of the offset first image and the corresponding pixel of the offset second image.

2. The method of claim 1, wherein recognizing includes: applying a machine-learning trained classifier to the offset first image to determine a first confidence of object detection for each pixel in the offset first image; and applying the machine-learning trained classifier to the offset second image to determine a second confidence of object detection for each pixel in the offset second image.

3. The method of claim 2, further comprising smoothing the first and second confidences for each of the offset first and second images.

4. The method of claim 2, wherein the machine-learning trained classifier is one of a plurality of different machine-learning trained classifiers applied to the offset first and second images, each of the plurality of different machine-learning trained classifiers determining first and second confidences of object detection for each pixel in the offset first and second images.

5. The method of claim 4, wherein each of the plurality of different machine-learning trained classifiers are trained for detecting an object at an orientation different than other of the plurality of different machine-learning trained classifiers.

6. The method of claim 4, wherein each of the plurality of different machine-learning trained classifiers are trained for detecting an object of a different size than other of the plurality of different machine-learning trained classifiers.

7. The method of claim 2, wherein the machine-learning trained classifier is applied to a set of differently-scaled offset first and second images.

8. The method of claim 7, further comprising correlating a confidence of object detection to each region of differently-scaled offset first and second images.

9. The method of claim 8, further comprising smoothing a correlated confidence across different resolutions.

10. The method of claim 2, wherein the machine-learning trained classifier is applied to a set of differently-rotated offset first and second images.

11. The method of claim 1, wherein recognizing includes combining a confidence of object detection in the first image and a confidence of object detection in the second image into a combined confidence of object detection for each corresponding pixel in the offset first and second images.

12. The method of claim 11, wherein combining includes averaging the confidence of object detection in the first image and the confidence of object detection in the second image.

13. The method of claim 11, further comprising discarding one or more combined confidences that are less than a threshold confidence.

14. The method of claim 11, further comprising discarding one or more combined confidences if the difference between confidences of object detection in the first image and the second image is greater than a threshold.

15. A head mounted display device, comprising: a see-through display; a first camera configured to capture a first image from a first perspective; a second camera configured to capture a second image from a second perspective, different from the first perspective; a logic machine; and a storage machine including instructions executable by the logic machine to: receive the first image taken by the first camera: receive the second image taken by the second camera; offset each pixel in the first image relative to a corresponding pixel in the second image by a predetermined offset distance resulting in offset first and second images, wherein a particular pixel of the offset first image depicts a same object locus as a corresponding pixel in the offset second image only if the object locus is at an expected object-detection distance from the first and second cameras; and recognize that a target object is imaged by the particular pixel of the offset first image and the corresponding pixel of the offset second image.

16. The head mounted display device of claim 15, wherein the storage machine includes further instructions executable by the logic machine to output a heat map that includes a relative confidence of object detection for each pixel in the offset first and second images.

17. A method of finger detection, the method comprising; receiving a first image taken from a first perspective by a first camera of a head mounted display device, the first image including a finger of a wearer of the head mounted display device; receiving a second image taken from a second perspective, different from the first perspective, by a second camera of the head mounted display device, the second image including the finger of the wearer of the head mounted display device; offsetting each pixel in the first image relative to a corresponding pixel in the second image by a predetermined offset distance resulting in offset first and second images, wherein a particular pixel of the offset first image depicts a same finger locus as a corresponding pixel in the offset second image only if the finger locus is at an expected reach distance of the wearer of the head mounted display device; recognizing that the finger of the wearer of the head mounted display device is imaged by the particular pixel of the offset first image and the corresponding pixel of the offset second image.

18. The method of claim 17, wherein recognizing includes: applying a machine-learning trained classifier to the offset first image to determine a first confidence of finger detection for each pixel in the offset first image; and applying the machine-learning trained classifier to the offset second image to determine a second confidence of finger detection for each pixel in the offset second image.

19. The method of claim 18, wherein the machine-learning trained classifier is one of a plurality of different machine-learning trained classifiers applied to the offset first and second images, each of the plurality of different machine-learning trained classifiers determining first and second confidences of object detection for each pixel in the offset first and second images.

20. The method of claim 17, wherein recognizing includes combining a confidence of finger detection in the first image and a confidence of finger detection in the second image into a combined confidence of finger detection for each corresponding pixel in the offset first and second images.

Description

CROSS REFERENCE TO RELATED APPLICATIONS

[0001] This application is a continuation of U.S. patent application Ser. No. 13/926,882, filed Jun. 25, 2013, the entire contents of which are hereby incorporated herein by reference for all purposes.

BACKGROUND

[0002] Computing systems utilize a variety of different input mechanisms for receiving commands from users. For example, many computing systems utilize keyboards and computer mice that allow a user to control the computing system. More natural input mechanisms may be beneficial but have been difficult to implement.

SUMMARY

[0003] This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter. Furthermore, the claimed subject matter is not limited to implementations that solve any or all disadvantages noted in any part of this disclosure.

[0004] A method of object detection includes receiving a first image taken from a first perspective by a first camera and receiving a second image taken from a second perspective, different from the first perspective, by a second camera. Each pixel in the first image is offset relative to a corresponding pixel in the second image by a predetermined offset distance resulting in offset first and second images. A particular pixel of the offset first image depicts a same object locus as a corresponding pixel in the offset second image only if the object locus is at an expected object-detection distance from the first and second cameras. The method includes recognizing that a target object is imaged by the particular pixel of the offset first image and the corresponding pixel of the offset second image.

BRIEF DESCRIPTION OF THE DRAWINGS

[0005] FIG. 1 shows an example head mounted display configured to detect finger gestures.

[0006] FIG. 2 shows an example method of object detection.

[0007] FIGS. 3A-3C shows a first image taken by a first stereo camera, a second image taken by a second stereo camera, and offset first and second images.

[0008] FIG. 4 shows an example method of analyzing offset first and second images.

[0009] FIG. 5A shows a plurality of different machine-learning trained classifiers trained for detecting objects of different sizes in the offset first and second images.

[0010] FIG. 5B shows an example machine-learning trained classifier analyzing differently scaled versions of the same image.

[0011] FIG. 6A shows a plurality of different machine-learning trained classifiers trained for detecting objects of different orientations.

[0012] FIG. 6B shows an example machine-learning trained classifier analyzing differently rotated versions of the same image.

[0013] FIG. 7 shows an example method of combining correlated confidences in the offset first and second images to yield a combined confidence of object detection.

[0014] FIG. 8 shows an example computing system used for object detection.

DETAILED DESCRIPTION

[0015] The methods and systems described herein may be used for accurate finger detection using stereo images. The present disclosure leverages an assumed distance (e.g., the length of a user's typical reach) to accurately detect a finger using stereo cameras having a known distance between the cameras.

[0016] FIG. 1 shows an example head mounted display 100 configured to detect finger gestures and/or other objects. The example head mounted display 100 includes a first stereo camera 102 configured to capture a first image of finger 104 and a second stereo camera 106 configured to capture a second image of finger 104. As shown, the first stereo camera 102 has a distance 108 from the second stereo camera 106.

[0017] The head mounted display 100 may also include a see-through display 110 configured to display augmented reality images to the user 112. Such augmented reality images may include interactive targets that may be activated or otherwise engaged by finger gestures from user 112.

[0018] FIG. 2 shows an example method 200 of finger detection using stereo images. Method 200 may be used for finger detection by head mounted display 100 or by any device that receives images from and/or includes a first stereo camera and a second stereo camera. Further, method 200 may be used to detect virtually any type of object. Finger detection is provided as a non-limiting example.

[0019] At 202, method 200 includes receiving a first image taken by a first stereo camera, and at 204, method 200 includes receiving a second image taken by a second stereo camera. In the example shown in FIG. 1, the first stereo camera 102 is a left stereo camera, and the second stereo camera 106 is a right stereo camera. FIG. 3A shows an example of a left image 300 and a right image 302 respectively captured by first stereo camera 102 and second stereo camera 106 of FIG. 1.

[0020] Objects in the relative location of the first image and second image depict a same object locus when the objects are at an assumed distance and the first and second images are offset by an amount derived from this distance. For example, as shown in FIGS. 3A-3C, the assumed distance is the approximate length of the user's reach and the target object is the user's finger 104. Because the target object is finger 104, the left image 300 and the right image 302 may be offset by offset distance 304 so as to depict finger 104 in the same region in offset left image 300' and offset right image 302'. FIG. 3B shows the offset left image 300' and offset right image 302' being cropped by an offset distance 304 that allows the same object locus to be depicted in the same region of the offset images. A left portion of offset left image 300' is cropped, while a right portion of offset right image 302' is cropped. As shown in FIG. 3C, finger 104 is depicted in the same region 306 in the offset left and right images 300' and 302'. However, because the background tree 308 is not at or near the assumed distance, the background tree 308 is not depicted in the same region in the offset left and right images.

[0021] The disparity between objects in the left image and the right image is inversely related to the distance between the stereo cameras and the target object. For example, objects that are relatively near to the stereo cameras will appear to have a greater disparity between depicted objects than objects that are relatively far from the stereo cameras.

[0022] In some examples, region 306 may be a corresponding pixel in the offset left and right images 300' and 302'. For example, region 306 may be the same pixel (e.g., pixel N, N.sub.y) in the left image and the right image after cropping the images by the offset distance 304. Accordingly, at 206, method 200 of FIG. 2 includes offsetting the first image relative to the second image by an offset distance selected such that each corresponding pixel of offset first and second images depict a same object locus if the object locus is at an assumed distance from the first and second stereo cameras.

[0023] Any suitable distance may be used as an assumed distance. In the above example, the assume distance is the approximate length of the user's reach when performing finger gestures. As another example, when augmented reality images are interactive targets activated by the user's finger gestures, the assumed distance may be the apparent distance to such an augmented reality interactive target.

[0024] At 208, method 200 includes locating a target object in the offset first and second images. FIG. 4 shows an example method 400 of locating a target object in the offset first and second images. Locating a target object may include several operations in which the offset first and second images are analyzed independently. Therefore, at 402, method 400 includes analyzing the first image of the offset first and second images, and at 404, method 400 includes analyzing the second image of the offset first and second images.

[0025] Analysis of the offset first and second images may include application of a plurality of different machine-learning trained classifiers trained for object detection using training objects (i.e., a plurality of different fingers). The machine-learning trained classifier may be configured to analyze an image and output a heat map that includes a relative confidence of object detection for each pixel correlated to the corresponding pixel in the analyzed image. When the training object is similar to the object being detected, a high confidence results. However, objects that are different from the training object in shape, size, and orientation may result in low confidences.

[0026] For example, to accommodate variations in object size, the same image may be input to each of a plurality of different machine-learning trained classifiers trained for detecting an object of a different size than other of the plurality of machine-learning trained classifiers. For example, FIG. 5A shows offset left image 300' input into a plurality of different machine-learning trained classifiers trained for detecting various finger sizes (e.g., sizes A-D). FIG. 5A also shows the plurality of different machine learning trained classifiers each outputting a confidence of object detection (e.g., 82%, 96%, 72%, and 69%) for the region of offset left image 300' that is 34% from the left edge of the image in the x-direction and 36% from the top edge of the image in the y direction. As shown, the highest confidence of object detection for the region at 34%, 36% is calculated by the machine-learning trained classifier trained to detect fingers of size B. Such a confidence may be output for each region of the analyzed image. For example, a heat map may record the highest confidence for each pixel or region of the analyzed image.

[0027] As another example, to accommodate variations in object size, a source image may be scaled to a plurality of different resolutions, and the same machine-learning trained classifier may be applied to each image in the scaled set of offset first and second images. For example, FIG. 5B shows an example of resizing the offset left image 300' (shown as resolution J in offset left image (J)) to produce three other corresponding images of varying resolution (resized left image (1.2.times.J), resized left image (0.8.times.J), and resized left image (0.6.times.J)). All four images may be analyzed by the same machine-learning trained classifier 500. As shown, the highest confidence of object detection for the region at 34%, 36% is calculated based on analysis of left image (1.2.times.J). Such a confidence may be output for each region of the analyzed image. For example, a heat map may record the highest confidence for each pixel or region of the analyzed images.

[0028] As yet another example, to accommodate variations in object orientation, the same image may be input to each of a plurality of different machine-learning trained classifiers trained for detecting an object of a different orientation than other of the plurality of machine-learning trained classifiers. For example, FIG. 6A shows offset left image 300' input into a plurality of different machine-learning trained classifiers trained for detecting fingers having different orientations. As shown, the highest confidence of object detection for the region at 34%, 36% is calculated by the machine-learning trained classifier trained to detect fingers having orientation C. Such a confidence may be output for each region of the analyzed image. For example, a heat map may record the highest confidence for each pixel or region of the analyzed image. Further, a sister heat map may be generated to identify, for each pixel or region, which orientation resulted in the highest confidence for that pixel or region.

[0029] Finally, to accommodate variations in object orientation, a source image may be rotated to a plurality of different orientations, and the same machine-learning trained classifier may be applied to each member in the rotated set of offset first and second images. For example, FIG. 6B shows an original orientation for the offset left image, and two rotated orientations (e.g., rotated orientation)(+35.degree.) and rotated orientation))(-35.degree.)) being input into machine-learning trained classifier 502. As shown, the highest confidence of object detection for an analyzed region is calculated based on analysis of the original image. Such a confidence may be output for each region of the analyzed image. For example, a heat map may record the highest confidence for each pixel or region of the analyzed images.

[0030] One or more of the above described analysis may be performed to estimate a likelihood of object detection for each region of an analyzed image. When two or more different analysis are performed, two or more different corresponding confidences may be produced. In general, if multiple confidences are generated for a pixel or region, the highest confidence for that pixel or region is correlated to that pixel or region. For example, using the examples discussed above, the confidence of 96% corresponding to the machine-learning trained classifier trained to detect objects of size B (of FIG. 5A) would be correlated to the pixel at 34%, 36%.

[0031] Correlated confidences may be used in combination with adjacent correlated confidences to smooth correlated confidences for each of the offset first and second images. For example, the confidence value of 96% for the pixel at 34%, 36% of FIG. 5B may be smoothed with the correlated confidences of the eight nearest neighbor pixels around the pixel at 34%, 36% using a Gaussian smoothing operation.

[0032] Smoothing correlated confidences may also occur across different resolutions. For example, the correlated confidence from the offset left image (J) of 78% may be smoothed with the resized left image (0.8.times.J) correlated confidence of 64% and the resized left image (1.2.times.J) correlated confidence of 92% using a Gaussian smoothing operation. Smoothing correlated confidences across resolutions may include using all eighteen nearest neighbor pixels in the smaller and larger resolution images.

[0033] The above provided examples discuss analysis of the offset left image 300'. The same type of analysis may also be performed on the offset right image 302'. The independent analysis of the left and right images may be followed by a combination operation in which the correlated confidences of object detection in the offset left and right images are combined to determine one or more candidate object locations. As such, returning to FIG. 4, at 406, method 400 includes combining offset first and second images. For example the correlated confidence of object detection in the first image may be combined with the correlated confidence of object detection in the second image to yield a combined confidence of object detection for each corresponding pixel or region in the offset first and second images.

[0034] FIG. 7 shows an example method 700 of combining correlated confidences of the first image and the second image. At 702, method 700 includes combining the correlated confidence in the offset first image and the correlated confidence in the offset second image (e.g., offset left image 300' and offset right image 302' of FIG. 3B). In some examples, combining may include averaging the correlated confidence of object detection in the offset first image and the correlated confidence of object detection in the offset second image. However, other combining techniques may also be used without departing from the scope of this disclosure.

[0035] Following combination of correlated confidences a suppression may be performed on the combined confidence. As such, at 704, method 700 includes determining if a given pixel has a combined confidence that is less than a combined confidence of any neighboring pixels. If the combined confidence is less than the combined confidence of one or more neighboring pixels, the combined confidence may be set to zero, as shown at 706 in method 700. However, if the combined confidence is greater than the combined confidence of all neighboring pixels, the combined confidence may be used in further analysis.

[0036] At 708, method 700 includes determining if the combined confidence is less than a threshold confidence. As shown at 710, if the combined confidence is less than the threshold confidence, method 700 includes discarding combined confidences that are less than the threshold. For example, if the threshold confidence is 75%, the correlated confidence in the first image is 80%, and the correlated confidence in the second image is 65%, the averaged combined confidence of 72.5% does not meet the threshold confidence and may be discarded. However, if the combined confidence is greater than the threshold confidence, the combined confidence may be used for further analysis.

[0037] At 712, method 700 includes determining if the difference between correlated confidences of object detection in the first and second images is greater than a threshold. Such a threshold may describe the maximum allowable disparity between the correlated confidence in the first image and the correlated confidence in the second image. When the disparity between the correlated confidences is greater than the threshold, at 714, method 700 includes discarding the combined confidence. For example, the threshold may be 25%, the correlated confidence in the first image may be 99%, and the correlated confidence in the second image may be 70%. Therefore, the disparity between correlated confidences of 29% is greater than the threshold and the combined confidence may be discarded. However, if disparity between correlated confidences is less than the threshold the combined confidence may be used for further analysis.

[0038] In contrast, if both thresholds are met, at 716, method 700 includes using the combined confidence to identify candidate regions in one or both of the first image or the second image that may include a target object. A finger location may be recognized based upon the confidence of finger detection from the image compared to the combined confidence heat map.

[0039] In some embodiments, the methods and processes described herein may be tied to a computing system of one or more computing devices. In particular, such methods and processes may be implemented as a computer-application program or service, an application-programming interface (API), a library, and/or other computer-program product.

[0040] FIG. 8 schematically shows a non-limiting embodiment of a computing system 800 that can enact one or more of the methods and processes described above. Computing system 800 is shown in simplified form. Computing system 800 may take the form of one or more personal computers, server computers, tablet computers, home-entertainment computers, network computing devices, gaming devices, mobile computing devices, mobile communication devices (e.g., smart phone), and/or other computing devices.

[0041] Computing system 800 includes a logic machine 802 and a storage machine 804, and a display subsystem 806 (e.g., see-through display 110 of FIG. 1). Computing system 800 may optionally include an input subsystem 808, communication subsystem 810, and/or other components not shown in FIG. 8.

[0042] Logic machine 802 includes one or more physical devices configured to execute instructions. For example, the logic machine may be configured to execute instructions that are part of one or more applications, services, programs, routines, libraries, objects, components, data structures, or other logical constructs. Such instructions may be implemented to perform a task, implement a data type, transform the state of one or more components, achieve a technical effect, or otherwise arrive at a desired result.

[0043] The logic machine may include one or more processors configured to execute software instructions. Additionally or alternatively, the logic machine may include one or more hardware or firmware logic machines configured to execute hardware or firmware instructions. Processors of the logic machine may be single-core or multi-core, and the instructions executed thereon may be configured for sequential, parallel, and/or distributed processing. Individual components of the logic machine optionally may be distributed among two or more separate devices, which may be remotely located and/or configured for coordinated processing. Aspects of the logic machine may be virtualized and executed by remotely accessible, networked computing devices configured in a cloud-computing configuration.

[0044] Storage machine 804 includes one or more physical devices configured to hold instructions executable by the logic machine to implement the methods and processes described herein. When such methods and processes are implemented, the state of storage machine 804 may be transformed--e.g., to hold different data.

[0045] Storage machine 804 may include removable and/or built-in devices. Storage machine 804 may include optical memory (e.g., CD, DVD, HD-DVD, Blu-Ray Disc, etc.), semiconductor memory (e.g., RAM, EPROM, EEPROM, etc.), and/or magnetic memory (e.g., hard-disk drive, floppy-disk drive, tape drive, MRAM, etc.), among others. Storage machine 804 may include volatile, nonvolatile, dynamic, static, read/write, read-only, random-access, sequential-access, location-addressable, file-addressable, and/or content-addressable devices.

[0046] It will be appreciated that storage machine 804 includes one or more physical devices. However, aspects of the instructions described herein alternatively may be propagated by a communication medium (e.g., an electromagnetic signal, an optical signal, etc.) that is not held by a physical device for a finite duration.

[0047] Aspects of logic machine 802 and storage machine 804 may be integrated together into one or more hardware-logic components. Such hardware-logic components may include field-programmable gate arrays (FPGAs), program- and application-specific integrated circuits (PASIC/ASICs), program- and application-specific standard products (PSSP/ASSPs), system-on-a-chip (SOC), and complex programmable logic devices (CPLDs), for example.

[0048] When included, display subsystem 806 may be used to present a visual representation of data held by storage machine 804. This visual representation may take the form of a graphical user interface (GUI). As the herein described methods and processes change the data held by the storage machine, and thus transform the state of the storage machine, the state of display subsystem 806 may likewise be transformed to visually represent changes in the underlying data. Display subsystem 806 may include one or more display devices utilizing virtually any type of virtual or augmented reality display technology. Such display devices may be combined with logic machine 802 and/or storage machine 804 in a shared enclosure, or such display devices may be peripheral display devices.

[0049] When included, input subsystem 808 may comprise or interface with one or more user-input devices. In some embodiments, the input subsystem may comprise or interface with selected natural user input (NUI) componentry. Such componentry may be integrated or peripheral, and the transduction and/or processing of input actions may be handled on- or off-board. Example NUI componentry may include a microphone for speech and/or voice recognition; an infrared, color, stereoscopic, and/or depth camera for machine vision and/or gesture recognition; a head tracker, eye tracker, accelerometer, and/or gyroscope for motion detection and/or intent recognition; as well as electric-field sensing componentry for assessing brain activity.

[0050] When included, communication subsystem 810 may be configured to communicatively couple computing system 800 with one or more other computing devices. Communication subsystem 810 may include wired and/or wireless communication devices compatible with one or more different communication protocols. As non-limiting examples, the communication subsystem may be configured for communication via a wireless telephone network, or a wired or wireless local- or wide-area network. In some embodiments, the communication subsystem may allow computing system 800 to send and/or receive messages to and/or from other devices via a network such as the Internet.

[0051] It will be understood that the configurations and/or approaches described herein are exemplary in nature, and that these specific embodiments or examples are not to be considered in a limiting sense, because numerous variations are possible. The specific routines or methods described herein may represent one or more of any number of processing strategies. As such, various acts illustrated and/or described may be performed in the sequence illustrated and/or described, in other sequences, in parallel, or omitted. Likewise, the order of the above-described processes may be changed.

[0052] The subject matter of the present disclosure includes all novel and nonobvious combinations and subcombinations of the various processes, systems and configurations, and other features, functions, acts, and/or properties disclosed herein, as well as any and all equivalents thereof.

您可能还喜欢...