Hand-Location Post-Process Refinement In A Tracking System
A tracking system having a depth camera tracks a user's body in a physical space and derives a model of the body, including an initial estimate of a hand position. Temporal smoothing is performed in which some latency is imposed when the initial estimate moves by less than a threshold level from frame to frame, while little or no latency is imposed when the movement is more than the threshold. The smoothed estimate is used to define a local volume for searching for a hand extremity to define a new hand position. Another process generates stabilized upper body points that can be used as reliable reference positions, such as by detecting and accounting for occlusions. The upper body points and a prior estimated hand position are used to define an arm vector. A search is made along the vector to detect a hand extremity to define a new hand position.
Latest Microsoft Patents:
- SYSTEMS, METHODS, AND COMPUTER-READABLE MEDIA FOR IMPROVED TABLE IDENTIFICATION USING A NEURAL NETWORK
- Secure Computer Rack Power Supply Testing
- SELECTING DECODER USED AT QUANTUM COMPUTING DEVICE
- PROTECTING SENSITIVE USER INFORMATION IN DEVELOPING ARTIFICIAL INTELLIGENCE MODELS
- CODE SEARCH FOR EXAMPLES TO AUGMENT MODEL PROMPT
This is a divisional application of U.S. patent application Ser. No. 12/767,126, entitled “Hand-Location Post-Process Refinement In A Tracking System,” by Johnny Chung Lee, filed Apr. 26, 2010, published as US2011/0262002 on Oct. 27, 2011, and incorporated by reference herein in its entirety.
BACKGROUNDMotion capture systems obtain data regarding the location and movement of a human or other subject in a physical space, and can use the data as an input to an application in a computing system. Many applications are possible, such as for military, entertainment, sports and medical purposes. For instance, the motion of humans can be mapped to a three-dimensional (3-D) human skeletal model and used to create an animated character or avatar. Motion capture systems can include optical systems, including those using visible and invisible, e.g., infrared, light, which use cameras to detect the presence of a human in a field of view. However, further refinements are needed in tracking a human with higher fidelity. In particular, it is desirable to track a person's hand with a high degree of fidelity.
SUMMARYA processor-implemented method, motion capture system and tangible computer readable storage are provided for tracking a user's hand with improved fidelity in a motion capture system. For example, the user may make hand gestures to navigate a menu, interact in a browsing or shopping experience, choose a game to play, or access communication features such as sending a message to a friend. The user may use the hand to control a cursor to select an item from an on-screen menu, or to control the movement of an avatar in a 3-D virtual world. Generally, the hand location can be tracked and used as a control input to an application in a motion capture system.
To enhance the ability of the motion capture system to accurately identify the hand location, a number of different techniques are provided. These techniques generally start with an initial estimate of a hand location and refine that estimate. Problems such as jitter, limited camera resolution, camera noise, and occluded body parts are addressed.
In one embodiment, a processor-implemented method for tracking user movement in a motion capture system is provided. The method includes tracking a user's hand in a field of view of the motion capture system over time, including obtaining a 3-D depth image of the hand at different points in time. The 3-D depth image may be used to provide a skeletal model of the user's body, for instance. The method further includes obtaining an initial estimate of a location of the hand in the field of view based on the tracking The initial estimate can be provided by any type of motion tracking system. The initial estimate of the location may be somewhat inaccurate due to errors which may be introduced by the motion tracking system, including noise, jitter and the tracking algorithm used. The method further includes determining a difference of the initial estimate relative to a corresponding estimate of a prior point in time, and determining if the difference is less than a threshold. The threshold may define a 2-D area or a 3-D volume which has the estimate of the prior point in time as its center. If the difference is less than the threshold, a smoothing process applied to the initial estimate to provide a current estimate of the location by changing the initial estimate by an amount which is less than the difference.
On the other hand, if the difference is relatively large so that it is not less than the threshold, the current estimate of the location can be provided substantially as the initial estimate. In this case, no smoothing effect is applied. This technique minimizes latency for large frame-to-frame movements of the hand, while smoothing smaller movements. Based on the current estimate, a volume is defined in the field of view, such as a rectangular (including cubic) or spherical volume, as a search volume. The 3-D depth image is searched in the volume to determine a new estimate of a location of the hand in the field of view. This searching can include identifying locations of edges of the hand in the volume and determining an average of the locations of the edges. The method further includes providing a control input to an application which represents the hand in the field of view based, at least in part, on the new estimate of the location, or a value derived from the new estimate of the location. This control input can be used for navigating a menu, controlling movement of an avatar and so forth.
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the 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.
In the drawings, like-numbered elements correspond to one another.
Techniques are provided for more accurately identifying the position of a hand in a motion tracking system. The techniques can be extended to tracking of other body parts such as the foot or head, or to non-body part objects. Generally, a depth camera system can track the movement of a user's body in a physical space and derive a model of the body, which is updated for each camera frame, several times per second. However, it is often necessary to identify the user's hands with a high degree of fidelity. But, tracking systems which are optimized for full body tracking may lack the ability to track the hands with sufficiently high accuracy. Such systems may provide coarse and potentially unstable guesses for the hand location. Techniques provided herein refine an initial estimate of a hand position which may be generated by an external human tracking system. The techniques include post processing steps that analyze local regions in a depth image, generate stabilized upper body points that can be used as reliable reference positions, search through the depth image for hand extremities, and perform temporal smoothing in a manner that minimizes perceptual latency.
Generally, the motion capture system 10 is used to recognize, analyze, and/or track a human target. The computing environment 12 can include a computer, a gaming system or console, or the like, as well as hardware components and/or software components to execute applications.
The depth camera system 20 may include a camera which is used to visually monitor one or more people, such as the user 8, such that gestures and/or movements performed by the user may be captured, analyzed, and tracked to perform one or more controls or actions within an application, such as animating an avatar or on-screen character or selecting a menu item in a user interface (UI).
The motion capture system 10 may be connected to an audiovisual device such as the display 196, e.g., a television, a monitor, a high-definition television (HDTV), or the like, or even a projection on a wall or other surface that provides a visual and audio output to the user. An audio output can also be provided via a separate device. To drive the display, the computing environment 12 may include a video adapter such as a graphics card and/or an audio adapter such as a sound card that provides audiovisual signals associated with an application. The display 196 may be connected to the computing environment 12 via, for example, an S-Video cable, a coaxial cable, an HDMI cable, a DVI cable, a VGA cable, or the like.
The user 8 may be tracked using the depth camera system 20 such that the gestures and/or movements of the user are captured and used to animate an avatar or on-screen character and/or interpreted as input controls to the application being executed by computer environment 12.
Some movements of the user 8 may be interpreted as controls that may correspond to actions other than controlling an avatar. For example, in one embodiment, the player may use movements to end, pause, or save a game, select a level, view high scores, communicate with a friend, and so forth. The player may use movements to select the game or other application from a main user interface, or to otherwise navigate a menu of options. Thus, a full range of motion of the user 8 may be available, used, and analyzed in any suitable manner to interact with an application.
The person can hold an object such as a prop when interacting with an application. In such embodiments, the movement of the person and the object may be used to control an application. For example, the motion of a player holding a racket may be tracked and used for controlling an on-screen racket in an application which simulates a tennis game. In another example embodiment, the motion of a player holding a toy weapon such as a plastic sword may be tracked and used for controlling a corresponding weapon in the virtual world of an application which provides a pirate ship.
The motion capture system 10 may further be used to interpret target movements as operating system and/or application controls that are outside the realm of games and other applications which are meant for entertainment and leisure. For example, virtually any controllable aspect of an operating system and/or application may be controlled by movements of the user 8.
The depth camera system 20 may include an image camera component 22, such as a depth camera that captures the depth image of a scene in a physical space. The depth image may include a two-dimensional (2-D) pixel area of the captured scene, where each pixel in the 2-D pixel area has an associated depth value which represents a linear distance from the image camera component 22.
The image camera component 22 may include an infrared (IR) light emitter 24, an infrared camera 26, and a red-green-blue (RGB) camera 28 that may be used to capture the depth image of a scene. A 3-D camera is formed by the combination of the infrared emitter 24 and the infrared camera 26. For example, in time-of-flight analysis, the IR light emitter 24 emits infrared light onto the physical space and the infrared camera 26 detects the backscattered light from the surface of one or more targets and objects in the physical space. In some embodiments, pulsed infrared light may be used such that the time between an outgoing light pulse and a corresponding incoming light pulse is measured and used to determine a physical distance from the depth camera system 20 to a particular location on the targets or objects in the physical space. The phase of the outgoing light wave may be compared to the phase of the incoming light wave to determine a phase shift. The phase shift may then be used to determine a physical distance from the depth camera system to a particular location on the targets or objects.
A time-of-flight analysis may also be used to indirectly determine a physical distance from the depth camera system 20 to a particular location on the targets or objects by analyzing the intensity of the reflected beam of light over time via various techniques including, for example, shuttered light pulse imaging.
In another example embodiment, the depth camera system 20 may use a structured light to capture depth information. In such an analysis, patterned light (i.e., light displayed as a known pattern such as grid pattern or a stripe pattern) may be projected onto the scene via, for example, the IR light emitter 24. Upon striking the surface of one or more targets or objects in the scene, the pattern may become deformed in response. Such a deformation of the pattern may be captured by, for example, the infrared camera 26 and/or the RGB camera 28 and may then be analyzed to determine a physical distance from the depth camera system to a particular location on the targets or objects.
The depth camera system 20 may include two or more physically separated cameras that may view a scene from different angles to obtain visual stereo data that may be resolved to generate depth information.
The depth camera system 20 may further include a microphone 30 which includes, e.g., a transducer or sensor that receives and converts sound waves into an electrical signal. Additionally, the microphone 30 may be used to receive audio signals such as sounds that are provided by a person to control an application that is run by the computing environment 12. The audio signals can include vocal sounds of the person such as spoken words, whistling, shouts and other utterances as well as non-vocal sounds such as clapping hands or stomping feet.
The depth camera system 20 may include a processor 32 that is in communication with the image camera component 22. The processor 32 may include a standardized processor, a specialized processor, a microprocessor, or the like that may execute instructions including, for example, instructions for receiving a depth image; generating a grid of voxels based on the depth image; removing a background included in the grid of voxels to isolate one or more voxels associated with a human target; determining a location or position of one or more extremities of the isolated human target; adjusting a model based on the location or position of the one or more extremities, or any other suitable instruction, which will be described in more detail below.
The depth camera system 20 may further include a memory component 34 that may store instructions that are executed by the processor 32, as well as storing images or frames of images captured by the 3-D camera or RGB camera, or any other suitable information, images, or the like. According to an example embodiment, the memory component 34 may include random access memory (RAM), read only memory (ROM), cache, flash memory, a hard disk, or any other suitable tangible computer readable storage component. The memory component 34 may be a separate component in communication with the image capture component 22 and the processor 32 via a bus 21. According to another embodiment, the memory component 34 may be integrated into the processor 32 and/or the image capture component 22.
The depth camera system 20 may be in communication with the computing environment 12 via a communication link 36. The communication link 36 may be a wired and/or a wireless connection. According to one embodiment, the computing environment 12 may provide a clock signal to the depth camera system 20 via the communication link 36 that indicates when to capture image data from the physical space which is in the field of view of the depth camera system 20.
Additionally, the depth camera system 20 may provide the depth information and images captured by, for example, the 3-D camera 26 and/or the RGB camera 28, and/or a skeletal model that may be generated by the depth camera system 20 to the computing environment 12 via the communication link 36. The computing environment 12 may then use the model, depth information, and captured images to control an application. For example, as shown in
The data captured by the depth camera system 20 in the form of the skeletal model and movements associated with it may be compared to the gesture filters in the gesture library 190 to identify when a user (as represented by the skeletal model) has performed one or more specific movements. Those movements may be associated with various controls of an application.
The computing environment may also include a processor 192 for executing instructions which are stored in a memory 194 to provide audio-video output signals to the display device 196 and to achieve other functionality as described herein.
A graphics processing unit (GPU) 108 and a video encoder/video codec (coder/decoder) 114 form a video processing pipeline for high speed and high resolution graphics processing. Data is carried from the graphics processing unit 108 to the video encoder/video codec 114 via a bus. The video processing pipeline outputs data to an A/V (audio/video) port 140 for transmission to a television or other display. A memory controller 110 is connected to the GPU 108 to facilitate processor access to various types of memory 112, such as RAM (Random Access Memory).
The multimedia console 100 includes an I/O controller 120, a system management controller 122, an audio processing unit 123, a network interface 124, a first USB host controller 126, a second USB controller 128 and a front panel I/O subassembly 130 that are preferably implemented on a module 118. The USB controllers 126 and 128 serve as hosts for peripheral controllers 142(1)-142(2), a wireless adapter 148, and an external memory device 146 (e.g., flash memory, external CD/DVD ROM drive, removable media, etc.). The network interface (NW IF) 124 and/or wireless adapter 148 provide access to a network (e.g., the Internet, home network, etc.) and may be any of a wide variety of various wired or wireless adapter components including an Ethernet card, a modem, a Bluetooth module, a cable modem, and the like.
System memory 143 is provided to store application data that is loaded during the boot process. A media drive 144 is provided and may comprise a DVD/CD drive, hard drive, or other removable media drive. The media drive 144 may be internal or external to the multimedia console 100. Application data may be accessed via the media drive 144 for execution, playback, etc. by the multimedia console 100. The media drive 144 is connected to the I/O controller 120 via a bus, such as a Serial ATA bus or other high speed connection.
The system management controller 122 provides a variety of service functions related to assuring availability of the multimedia console 100. The audio processing unit 123 and an audio codec 132 form a corresponding audio processing pipeline with high fidelity and stereo processing. Audio data is carried between the audio processing unit 123 and the audio codec 132 via a communication link. The audio processing pipeline outputs data to the A/V port 140 for reproduction by an external audio player or device having audio capabilities.
The front panel I/O subassembly 130 supports the functionality of the power button 150 and the eject button 152, as well as any LEDs (light emitting diodes) or other indicators exposed on the outer surface of the multimedia console 100. A system power supply module 136 provides power to the components of the multimedia console 100. A fan 138 cools the circuitry within the multimedia console 100.
The CPU 101, GPU 108, memory controller 110, and various other components within the multimedia console 100 are interconnected via one or more buses, including serial and parallel buses, a memory bus, a peripheral bus, and a processor or local bus using any of a variety of bus architectures.
When the multimedia console 100 is powered on, application data may be loaded from the system memory 143 into memory 112 and/or caches 102, 104 and executed on the CPU 101. The application may present a graphical user interface that provides a consistent user experience when navigating to different media types available on the multimedia console 100. In operation, applications and/or other media contained within the media drive 144 may be launched or played from the media drive 144 to provide additional functionalities to the multimedia console 100.
The multimedia console 100 may be operated as a standalone system by simply connecting the system to a television or other display. In this standalone mode, the multimedia console 100 allows one or more users to interact with the system, watch movies, or listen to music. However, with the integration of broadband connectivity made available through the network interface 124 or the wireless adapter 148, the multimedia console 100 may further be operated as a participant in a larger network community.
When the multimedia console 100 is powered on, a specified amount of hardware resources are reserved for system use by the multimedia console operating system. These resources may include a reservation of memory (e.g., 16 MB), CPU and GPU cycles (e.g., 5%), networking bandwidth (e.g., 8 kbs), etc. Because these resources are reserved at system boot time, the reserved resources do not exist from the application's view.
In particular, the memory reservation preferably is large enough to contain the launch kernel, concurrent system applications and drivers. The CPU reservation is preferably constant such that if the reserved CPU usage is not used by the system applications, an idle thread will consume any unused cycles.
With regard to the GPU reservation, lightweight messages generated by the system applications (e.g., popups) are displayed by using a GPU interrupt to schedule code to render popup into an overlay. The amount of memory required for an overlay depends on the overlay area size and the overlay preferably scales with screen resolution. Where a full user interface is used by the concurrent system application, it is preferable to use a resolution independent of application resolution. A scaler may be used to set this resolution such that the need to change frequency and cause a TV resynch is eliminated.
After the multimedia console 100 boots and system resources are reserved, concurrent system applications execute to provide system functionalities. The system functionalities are encapsulated in a set of system applications that execute within the reserved system resources described above. The operating system kernel identifies threads that are system application threads versus gaming application threads. The system applications are preferably scheduled to run on the CPU 101 at predetermined times and intervals in order to provide a consistent system resource view to the application. The scheduling is to minimize cache disruption for the gaming application running on the console.
When a concurrent system application requires audio, audio processing is scheduled asynchronously to the gaming application due to time sensitivity. A multimedia console application manager (described below) controls the gaming application audio level (e.g., mute, attenuate) when system applications are active.
Input devices (e.g., controllers 142(1) and 142(2)) are shared by gaming applications and system applications. The input devices are not reserved resources, but are to be switched between system applications and the gaming application such that each will have a focus of the device. The application manager preferably controls the switching of input stream, without knowledge the gaming application's knowledge and a driver maintains state information regarding focus switches. The console 100 may receive additional inputs from the depth camera system 20 of
In a motion capture system, the computing environment can be used to interpret one or more gestures or other movements and, in response, update a visual space on a display. The computing environment 220 comprises a computer 241, which typically includes a variety of tangible computer readable storage media. This can be any available media that can be accessed by computer 241 and includes both volatile and nonvolatile media, removable and non-removable media. The system memory 222 includes computer storage media in the form of volatile and/or nonvolatile memory such as read only memory (ROM) 223 and random access memory (RAM) 260. A basic input/output system 224 (BIOS), containing the basic routines that help to transfer information between elements within computer 241, such as during start-up, is typically stored in ROM 223. RAM 260 typically contains data and/or program modules that are immediately accessible to and/or presently being operated on by processing unit 259. A graphics interface 231 communicates with a GPU 229. By way of example, and not limitation,
The computer 241 may also include other removable/non-removable, volatile/nonvolatile computer storage media, e.g., a hard disk drive 238 that reads from or writes to non-removable, nonvolatile magnetic media, a magnetic disk drive 239 that reads from or writes to a removable, nonvolatile magnetic disk 254, and an optical disk drive 240 that reads from or writes to a removable, nonvolatile optical disk 253 such as a CD ROM or other optical media. Other removable/non-removable, volatile/nonvolatile tangible computer readable storage media that can be used in the exemplary operating environment include, but are not limited to, magnetic tape cassettes, flash memory cards, digital versatile disks, digital video tape, solid state RAM, solid state ROM, and the like. The hard disk drive 238 is typically connected to the system bus 221 through an non-removable memory interface such as interface 234, and magnetic disk drive 239 and optical disk drive 240 are typically connected to the system bus 221 by a removable memory interface, such as interface 235.
The drives and their associated computer storage media discussed above and depicted in
The computer 241 may operate in a networked environment using logical connections to one or more remote computers, such as a remote computer 246. The remote computer 246 may be a personal computer, a server, a router, a network PC, a peer device or other common network node, and typically includes many or all of the elements described above relative to the computer 241, although only a memory storage device 247 has been depicted in
When used in a LAN networking environment, the computer 241 is connected to the LAN 245 through a network interface or adapter 237. When used in a WAN networking environment, the computer 241 typically includes a modem 250 or other means for establishing communications over the WAN 249, such as the Internet. The modem 250, which may be internal or external, may be connected to the system bus 221 via the user input interface 236, or other appropriate mechanism. In a networked environment, program modules depicted relative to the computer 241, or portions thereof, may be stored in the remote memory storage device. By way of example, and not limitation,
The computing environment can include tangible computer readable storage having computer readable software embodied thereon for programming at least one processor to perform a method for generating proxy training data for human body tracking as described herein. The tangible computer readable storage can include, e.g., one or more of components 222, 234, 235, 230, 253 and 254. Further, one or more processors of the computing environment can provide a processor-implemented method for generating proxy training data for human body tracking, comprising processor-implemented steps as described herein. A processor can include, e.g., one or more of components 229 and 259.
The input can represent the position of a user's hand, for instance, in terms of a point location in the field of view, as expressed by (x, y, z) coordinates in a Cartesian coordinate system, for instance.
The model may then be used to interact with an application that is executed by the computing environment. The scan to generate the model can occur when an application is started or launched, or at other times as controlled by the application of the scanned person.
The person may be scanned to generate a skeletal model that may be tracked such that physical movements or motions of the user may act as a real-time user interface that adjusts and/or controls parameters of an application. For example, the tracked movements of a person may be used to move an avatar or other on-screen character in an electronic role-playing game; to control an on-screen vehicle in an electronic racing game; to control the building or organization of objects in a virtual environment; or to perform any other suitable control of an application.
According to one embodiment, at step 600, depth information is received, e.g., from the depth camera system. The depth camera system may capture or observe a field of view that may include one or more targets. In an example embodiment, the depth camera system may obtain depth information associated with the one or more targets in the capture area using any suitable technique such as time-of-flight analysis, structured light analysis, stereo vision analysis, or the like, as discussed. The depth information may include a depth image or map having a plurality of observed pixels, where each observed pixel has an observed depth value, as discussed.
The depth image may be downsampled to a lower processing resolution so that it can be more easily used and processed with less computing overhead. Additionally, one or more high-variance and/or noisy depth values may be removed and/or smoothed from the depth image; portions of missing and/or removed depth information may be filled in and/or reconstructed; and/or any other suitable processing may be performed on the received depth information such that the depth information may used to generate a model such as a skeletal model, discussed also in connection with
At decision step 604, a determination is made as to whether the depth image includes a human target. This can include flood filling each target or object in the depth image comparing each target or object to a pattern to determine whether the depth image includes a human target. For example, various depth values of pixels in a selected area or point of the depth image may be compared to determine edges that may define targets or objects as described above. The likely Z values of the Z layers may be flood filled based on the determined edges. For example, the pixels associated with the determined edges and the pixels of the area within the edges may be associated with each other to define a target or an object in the capture area that may be compared with a pattern, which will be described in more detail below.
If decision step 604 is true, step 606 is performed. If decision step 604 is false, additional depth information is received at step 600.
The pattern to which each target or object is compared may include one or more data structures having a set of variables that collectively define a typical body of a human. Information associated with the pixels of, for example, a human target and a non-human target in the field of view, may be compared with the variables to identify a human target. In one embodiment, each of the variables in the set may be weighted based on a body part. For example, various body parts such as a head and/or shoulders in the pattern may have weight value associated therewith that may be greater than other body parts such as a leg. According to one embodiment, the weight values may be used when comparing a target with the variables to determine whether and which of the targets may be human. For example, matches between the variables and the target that have larger weight values may yield a greater likelihood of the target being human than matches with smaller weight values.
Step 606 includes scanning the human target for body parts. The human target may be scanned to provide measurements such as length, width, or the like associated with one or more body parts of a person to provide an accurate model of the person. In an example embodiment, the human target may be isolated and a bitmask of the human target may be created to scan for one or more body parts. The bitmask may be created by, for example, flood filling the human target such that the human target may be separated from other targets or objects in the capture area elements. The bitmask may then be analyzed for one or more body parts to generate a model such as a skeletal model, a mesh human model, or the like of the human target. For example, according to one embodiment, measurement values determined by the scanned bitmask may be used to define one or more joints in a skeletal model. The one or more joints may be used to define one or more bones that may correspond to a body part of a human.
For example, the top of the bitmask of the human target may be associated with a location of the top of the head. After determining the top of the head, the bitmask may be scanned downward to then determine a location of a neck, a location of the shoulders and so forth. A width of the bitmask, for example, at a position being scanned, may be compared to a threshold value of a typical width associated with, for example, a neck, shoulders, or the like. In an alternative embodiment, the distance from a previous position scanned and associated with a body part in a bitmask may be used to determine the location of the neck, shoulders or the like. Some body parts such as legs, feet, or the like may be calculated based on, for example, the location of other body parts. Upon determining the values of a body part, a data structure is created that includes measurement values of the body part. The data structure may include scan results averaged from multiple depth images which are provide at different points in time by the depth camera system.
Step 608 includes generating a model of the human target, including an initial estimate of a hand location. In one embodiment, measurement values determined by the scanned bitmask may be used to define one or more joints in a skeletal model. The one or more joints are used to define one or more bones that correspond to a body part of a human.
One or more joints may be adjusted until the joints are within a range of typical distances between a joint and a body part of a human to generate a more accurate skeletal model. The model may further be adjusted based on, for example, a height associated with the human target.
At step 610, the model is tracked by updating the person's location several times per second. As the user moves in the physical space, information from the depth camera system is used to adjust the skeletal model such that the skeletal model represents a person. In particular, one or more forces may be applied to one or more force-receiving aspects of the skeletal model to adjust the skeletal model into a pose that more closely corresponds to the pose of the human target in physical space.
Generally, any known technique for tracking movements of a person can be used.
Since some amount of noise is inherent in the depth image due to the camera sensor, or operating conditions may dramatically increase the amount of noise in the depth image, a further smoothing process may be desirable to further stabilize the hand position. This can be done using a similar interpolation-based tethering technique as described above which smoothes out any small noise resulting from the local averaging.
Note that the steps provided in this and other flowcharts are not all required and the order specified can be varied as well in many cases.
It is possible to adjust T to the environment of the motion capture system. For example, when a relatively large display is used, it may be appropriate to use a smaller value of T, because a given amount of latency will be more apparent to the user. The use of one value of T in a given situation provides two operating regimes based on whether Δ<T or Δ≧T. It is also possible to use two or more values of T so that three or more operating regimes are defined, and a latency can be tailored to each regime. For example, with T2>T1, regimes are provided for Δ<T1, T1≦Δ<T2 and T2≦Δ.
If Δ<T at decision step 712, step 714 includes providing a current estimate of the hand position by applying a latency to the initial estimate, so that the current estimate lags the initial estimate. See
In this interpolation-based tether technique, a trailing point is created that follows the raw input point. The position of the trailing point is updated in a manner that is analogous to an elastic tether attached to the raw input such as the initial estimate. The trailing point moves toward the raw input in proportion to its distance from the raw input. If the raw input is far from the trailing point, the trailing point moves quickly toward the raw input, accommodating fast movements. If the raw input is close to the trailing point, the trailing point moves slowly toward the raw input, smoothing out small jittery movements. One embodiment of this tethering technique is using linear interpolation between the raw input point and trailing point. The interpolation value is equal to the distance between the raw input and trailing point divided by a fixed maximum distance, T. During high velocity movement of the hand, the raw input moves away from the trailing point, causing the interpolation value to approach one, resulting in a computed interpolated point to be near the raw input. During low velocity movement, the interpolation is near zero, resulting in a fairly stationary computer result. This approach minimizes the perceived latency during fast movements while maintaining a strong smoothing effect when moving slowly.
Step 730 includes identifying a set of reference points in a 3-D skeletal model. The reference points can include, e.g., the shoulders, head, elbow, or other points on the upper torso, such as a line between the shoulders and a centerline of the upper torso. These are reference points which can assist in determining a location of the hands. Step 732 includes stabilizing the reference points. For instance, this can include determining if a reference point is occluded by another body part, as discussed in connection with
Moreover, in scenarios where it is known that the user is likely to be facing toward the camera with a line between the shoulder blades largely perpendicular to the camera axis (the z-axis), it may be useful to force this orientation constraint for the sake of added stability. The shoulder blade vector is defined as a perpendicular to the vector extending from the shoulder center to the camera center.
Step 734 includes defining at least one vector starting from a reference point and extending to the hand location which was determined from the prior time point, e.g., at time ti−1. See
After the final extremity guess has been selected, a local average of the high resolution depth map can be taken to smooth out the hand location described above. Similarly, it may be desirable to perform a final interpolation-based tether smoothing to further reduce the noise in the hand position (step 744). The smoothed value of step 744 is an example of a value derived from the new estimate of the location in step 742.
Steps 738, 740, 742 and 744 can be the same as steps 702, 704, 706 and 708, respectively, in
A method of only using the external tracking guess as a reset point when the search method fails make the technique robust to temporary errors in the external tracking system and vice versa. The technique only fails to provide a reasonable hand point when both methods of tracking the hand locations fail simultaneously. This approach could be extended to include a third or forth method of hand tracking, reducing the failure conditions further, given a management system that can properly choose or combine the outputs of multiple tracking processes.
This concept takes advantage of one or more reference points on the body, such as a shoulder or elbow joint, in refining the estimate of the hand position.
Each circle represents an evaluated hand position. The evaluated hand positions can be constrained to being within a certain distance which is offset, perpendicularly, from the one or more vectors, such as based on an expected range of arm thicknesses, and a certain distance which extends beyond the initial estimate of the hand position, in the direction of the at least one vector, such as based on an expected range of arm lengths. Each evaluated hand position is evaluated to determine whether it is part of the 3-D model or not, e.g., whether there is depth map data for the point or not.
The open or white circles represent evaluated hand positions which are part of the 3-D model, and are therefore candidate hand positions. The black circles represent evaluated hand positions which are not part of the 3-D model. A point 1116 is determined to be the candidate hand position with the highest score, in this example, and therefore becomes the new estimate of the hand position.
The model 1200 is facing the depth camera, in the -z direction, so that the cross-section shown is in the x-y plane. The model includes reference points, such as the top of the head 1202, bottom of the head or chin 1213, right shoulder 1204, right elbow 1206, right wrist 1208 and right hand 1210. Point 1210 can be the initial estimate of the hand location. The model also includes a left shoulder 1214, left elbow 1216, left wrist 1218 and left hand 1220. A waist region 1222 is also depicted, along with a right hip 1224, right knew 1226, right foot 1228, left hip 1230, left knee 1232 and left foot 1234. A shoulder line 1212 is a line, typically horizontal, between the shoulders 1204 and 1214. An upper torso centerline 1225, which extends between the points 1222 and 1213, for example, is also depicted. As can be seen, the shoulder 1204 is occluded by the user's raised arm.
When the shoulder 1204 is used as a reference point to define one or more vectors for refining the hand position, such as discussed in connection with
The location of one or more non-occluded points in the 3-D model can be used to determine a position of the shoulder point 1204. For example, the shoulder point 1204 can be assumed to be the same distance from the centerline 1225 as the shoulder point 1214. In some cases, a line 1212 which extends from the shoulder point 1214 to the centerline 1225 can be defined, so that the shoulder point 1204 is further refined as being on the line 1212.
Further, the likelihood that the shoulder point 1204 is occluded can be determined in different ways, such as by determining the position of the right arm based on positions of the wrist 1208 and the elbow 1206. In some cases, the absolute distance from the center line to the wrist 1208 or elbow 1206 can indicate an occlusion. Additionally, the distance from the center line to the opposing side wrist 1218 or elbow 1216 can be compared to the distance from the center line to the wrist 1208 or elbow 1206. Also, the distance from the center line to the wrist 1208 or elbow 1206 can be compared to the approximate distance from the shoulder 1214 to the centerline 1225, i.e., d5. Various other heuristics and metrics can be used as well in determining whether an occlusion condition is present, and in determining a location of an occluded point. An orientation of the model can also be used in determining whether an occlusion condition is present, and in determining a location of an occluded point.
The foregoing detailed description of the technology herein has been presented for purposes of illustration and description. It is not intended to be exhaustive or to limit the technology to the precise form disclosed. Many modifications and variations are possible in light of the above teaching. The described embodiments were chosen to best explain the principles of the technology and its practical application to thereby enable others skilled in the art to best utilize the technology in various embodiments and with various modifications as are suited to the particular use contemplated. It is intended that the scope of the technology be defined by the claims appended hereto.
Claims
1. Tangible computer readable storage device having computer readable software embodied thereon for programming a processor to perform a method for tracking user movement in a motion capture system, the method comprising:
- tracking a body in a field of view of the motion capture system, including obtaining a 3-D depth image and determining a 3-D skeletal model of the body;
- for one point in time, identifying a location of a hand of the 3-D skeletal model in the field of view; and
- for a next point in time: identifying a reference point of the 3-D skeletal model; defining at least one vector from the reference point in the next point in time to the location of the hand in the one point in time; traversing the at least one vector to look for a most probable location of the hand in the next point in time, including scoring candidate locations which are part of the 3-D skeletal model based on their distance along the at least one vector and their distance perpendicularly from the at least one vector; based on the most probable location of the hand, defining a volume in the field of view; searching the 3-D depth image in the volume to determine a location of the hand in the field of view; and providing to an application a control input which represents the hand in the field of view based on the determined location of the hand, or a value derived from the determined location of the hand.
2. The tangible computer readable storage device of claim 1, wherein:
- the scoring candidate locations includes providing a score indicating a more probable location in proportion to the distance along the at least one vector being greater, and in proportion to the distance perpendicularly from the at least one vector being lower.
3. The tangible computer readable storage device of claim 1, wherein:
- the searching includes identifying locations of edges of the hand in the volume and determining an average of the locations of the edges.
4. The tangible computer readable storage device of claim 1, wherein:
- the volume in the field of view is centered at an estimate of the location of the hand in the field of view.
5. The tangible computer readable storage device of claim 1, wherein:
- the reference point of the 3-D skeletal model is a shoulder.
6. The tangible computer readable storage device of claim 1, wherein:
- the reference point of the 3-D skeletal model undergoes temporal smoothing before the at least one vector is defined.
7. The tangible computer readable storage device of claim 1, wherein:
- the reference point of the 3-D skeletal model is identified based on a set of points which are identified from the 3-D skeletal model, the set of points identify at least both shoulders of the 3-D skeletal model.
8. The tangible computer readable storage device of claim 1, wherein:
- the reference point of the 3-D skeletal model is identified based on a set of points which are identified from the 3-D skeletal model; and
- the method further comprises determining when at least one point of the set of points is potentially occluded, and, responsive to determining that the at least one point of the set of points is potentially occluded, determining a location of the at least one point based on another point of the 3-D skeletal model.
9. The tangible computer readable storage device of claim 8, wherein:
- the determining when the at least one point of the set of points is potentially occluded comprises measuring a proximity of an arm joint to an upper body joint in the 3-D skeletal model in a projected camera image.
10. A processor-implemented method for tracking user movement in a motion capture system, comprising the processor-implemented steps of:
- tracking a body in a field of view of the motion capture system, including obtaining a 3-D depth image and determining a 3-D skeletal model of the body;
- for one point in time, identifying a location of a hand of the 3-D skeletal model in the field of view; and
- for a next point in time: identifying a reference point of the 3-D skeletal model; defining at least one vector from the reference point in the next point in time to the location of the hand in the one point in time; traversing the at least one vector to look for a most probable location of the hand in the next point in time, including scoring candidate locations which are part of the 3-D skeletal model based on their distance along the at least one vector and their distance perpendicularly from the at least one vector; based on the most probable location of the hand, defining a volume in the field of view; searching the 3-D depth image in the volume to determine a location of the hand in the field of view; and providing to an application a control input which represents the hand in the field of view based on the determined location of the hand, or a value derived from the determined location of the hand.
11. The processor-implemented method of claim 10, wherein:
- the scoring candidate locations includes providing a score indicating a more probable location in proportion to the distance along the at least one vector being greater, and in proportion to the distance perpendicularly from the at least one vector being lower.
12. The processor-implemented method of claim 10, wherein:
- the reference point of the 3-D skeletal model undergoes temporal smoothing before the at least one vector is defined.
13. The processor-implemented method of claim 10, wherein:
- the reference point of the 3-D skeletal model is identified based on a set of points which are identified from the 3-D skeletal model, the set of points identify at least both shoulders of the 3-D skeletal model.
14. The processor-implemented method of claim 10, wherein:
- the reference point of the 3-D skeletal model is identified based on a set of points which are identified from the 3-D skeletal model; and
- the method further comprises determining when at least one point of the set of points is potentially occluded, and, responsive to determining that the at least one point of the set of points is potentially occluded, determining a location of the at least one point based on another point of the 3-D skeletal model.
15. The processor-implemented method of claim 14, wherein:
- the determining when the at least one point of the set of points is potentially occluded comprises measuring a proximity of an arm joint to an upper body joint in the 3-D skeletal model in a projected camera image.
16. A motion capture system, comprising:
- a depth camera system having a field of view; and
- a processor in communication with the depth camera system, the processor receives images of the field of view and executes instructions to track user movement in the field of view, the instructions cause the processor to track a body in a field of view, including obtaining a 3-D depth image and determining a 3-D skeletal model of the body, for one point in time, identify a location of a hand of the 3-D skeletal model in the field of view, and for a next point in time: identify a reference point of the 3-D skeletal model, define at least one vector from the reference point in the next point in time to the location of the hand in the one point in time, traverse the at least one vector to look for a most probable location of the hand in the next point in time, including providing a score for candidate locations which are part of the 3-D skeletal model based on their distance along the at least one vector and their distance perpendicularly from the at least one vector, based on the most probable location of the hand, define a volume in the field of view, search the 3-D depth image in the volume to determine a location of the hand in the field of view, and provide to an application a control input which represents the hand in the field of view based on the determined location of the hand, or a value derived from the determined location of the hand.
17. The motion capture system of claim 16, wherein:
- the providing a score for the candidate locations includes providing a score indicating a more probable location in proportion to the distance along the at least one vector being greater, and in proportion to the distance perpendicularly from the at least one vector being lower.
18. The motion capture system of claim 16, wherein:
- the search includes identifying locations of edges of the hand in the volume and determining an average of the locations of the edges.
19. The motion capture system of claim 16, wherein:
- the volume in the field of view is centered at an estimate of the location of the hand in the field of view.
20. The motion capture system of claim 16, wherein:
- the reference point of the 3-D skeletal model is a shoulder.
Type: Application
Filed: Dec 18, 2012
Publication Date: May 16, 2013
Applicant: MICROSOFT CORPORATION (Redmond, WA)
Inventor: MICROSOFT CORPORATION (Redmond, WA)
Application Number: 13/718,494
International Classification: G06F 3/01 (20060101);