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, such systems are subject to vibrations, bumps, jolts and other movements and disturbances that can affect audio and visual performance. Techniques for detecting and responding to such movements are needed.
SUMMARYA processor-implemented method, motion capture system and tangible computer readable storage are provided for detecting motion in a 3-D depth camera in a motion capture system. Such depth cameras are used, for example, to detect movement of a user in a field of view and to translate the movements into control inputs to an application in the 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. Or, the user may use the hands, legs or the entire body to control the movement of an avatar in a 3-D virtual world.
The performance of the depth camera in tracking the user can be disturbed by a variety of sources relating to the environment in which the depth camera is located. Disturbances can include vibrations, e.g., due to a loudspeaker/subwoofer, a truck, train or airplane passing nearby, an earthquake or thunder, a disturbance to a vehicle such as a boat or ship in which the depth camera is located, and user movements such as jumping, running and playing in the room in which the depth camera is located. Disturbances can also include unintentional movements of the depth camera, such as if a user or a house pet were to accidentally brush by and move the depth camera, as well as intentional movements such as if the user were to attempt to reposition the depth camera. To detect and account for such disturbances, signals from an accelerometer in the depth camera can be processed using techniques which are effective in accurately detecting movement of the depth camera.
In one embodiment, a processor-implemented method for detecting motion in a 3-D depth camera is provided. The method includes the processor-implemented steps of obtaining acceleration readings in x-, y- and z-axes from a three-axis accelerometer in the 3-D depth camera at successive time points. The method further includes, for each time point: (a) obtaining short and long term running averages of the acceleration readings in each axis of the x-, y- and z-axes. The short term running average is taken over a number N1 time points, and the long term running average is taken over a number N2 time points. In one approach, N2=N1×1.5. In another approach, 1.3×N1<N2<1.7×N1. Particular definitions of short and long term averages can yield optimal accuracy in detecting movement.
The method further includes: (b) obtaining differences between the short and long term running averages of the acceleration readings for each axis of the x-, y- and z-axes, (c) obtaining absolute values of the differences for each axis of the x-, y- and z-axes, and (d) obtaining a sum based on the absolute values. The method further includes (e) determining if the sum exceeds a threshold level. A particular setting of the threshold level can yield optimal accuracy in detecting movement. If the sum exceeds the threshold level, the method include (f) providing an indication that movement of the 3-D depth camera is detected. Similarly, if the sum does not exceed the threshold level, the method further includes (g) providing an indication that movement of the 3-D depth camera is not detected.
In one possible approach, a motion tracking process is halted in response to the indication that movement of the 3-D depth camera is detected, and the motion tracking process is subsequently resumed in response to the indication that movement of the 3-D depth camera is no longer detected. It is also possible to provide a message via a user interface indicating that the 3-D depth camera has been disturbed, in response to the indication that movement of the 3-D depth camera is detected.
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.
BRIEF DESCRIPTION OF THE DRAWINGSIn the drawings, like-numbered elements correspond to one another.
FIG. 1 depicts an example embodiment of a motion capture system.
FIG. 2A depicts an example block diagram of the motion capture system ofFIG. 1.
FIG. 2B depicts an example of processing blocks of the processor of the motion capture system ofFIG. 2A.
FIG. 2C depicts another example of processing blocks of the processor of the motion capture system ofFIG. 2A.
FIG. 3 depicts an example block diagram of a computing environment that may be used in the motion capture system ofFIG. 1.
FIG. 4 depicts another example block diagram of a computing environment that may be used in the motion capture system ofFIG. 1.
FIG. 5 depicts a method for detecting camera movement in a motion capture system.
FIG. 6 depicts an example method for tracking movement of a person as set forth in step500 ofFIG. 5.
FIG. 7A depicts an example method for processing accelerometer readings for a current time period as set forth instep502 ofFIG. 5.
FIG. 7B depicts another example method for processing accelerometer readings for a current time period as set forth instep502 ofFIG. 5.
FIG. 8 depicts an example model of a user as set forth instep608 ofFIG. 6.
FIG. 9 depicts an example coordinate system used for processing accelerometer readings as set forth inFIGS. 7A and 7B.
FIG. 10A depicts example raw accelerometer readings in a scenario where a player is jumping.
FIG. 10B depicts long and short term average pitch values, based onFIG. 10A.
FIG. 10C depicts a difference between the long and short term average pitch values ofFIG. 10B.
FIG. 10D depicts a sum of differences and comparison to a threshold, based on the averages of the axis data depicted inFIG. 10A indicating when movement is detected that does not meet the threshold and is filtered out.
FIG. 11A depicts example raw accelerometer readings in a scenario where a sensor is moved.
FIG. 11B depicts long and short term average pitch values, and a difference between the long and short term average pitch values, based onFIG. 11A.
FIG. 11C depicts a sum of differences and comparison to a threshold, based on the averages of the axis data depicted inFIG. 11A indicating when movement is detected that meets or exceeds the threshold and is indicated as detected movement.
DETAILED DESCRIPTIONTechniques are provided for accurately detecting when a sensor equipped with an accelerometer has been disturbed. In an example, the sensor is a depth camera in a motion tracking system. In one approach, readings from a three-axis accelerometer are processed to provide short and long term moving averages for each of the x, y and z axes. For each axis, a difference between the short and long term averages is obtained. A sum of the differences is obtained by summing the absolute value of each difference, across all three axes. This sum of differences is then compared to a threshold to determine if movement is detected. In another approach, the short and long term averages of the accelerometer readings are converted to pitch and roll values, and the pitch and roll values are separately compared to a threshold to determine if movement is detected.
Moreover, while the use of an accelerometer is explained particularly in connection with a depth camera in motion tracking system, the techniques provided are generally applicable for detecting movement of any audio or visual sensor peripheral device for a computer host needs which can communicate to the host its physical status regarding vibration, bumps or other physical displacements that could affect audio or visual performance. Input from the device to the host can be used to determine when to automatically recalibrate the sensors, to warn the user of excessive vibration or movement that could affect performance, or to provide independent confirmation that the user has accomplished certain tasks required in setting up the sensor.
FIG. 1 depicts an example embodiment of amotion capture system10 in which aperson8 interacts with an application. This illustrates the real world deployment of a motion capture system, such as in the home of a user. Themotion capture system10 includes adisplay196, adepth camera system20, and a computing environment orapparatus12. Thedepth camera system20 may include animage camera component22 having an infrared (IR)light emitter24, aninfrared camera26 and a red-green-blue (RGB)camera28. Auser8, also referred to as a person or player, stands in a field ofview6 of the depth camera.Lines2 and4 denote a boundary of the field ofview6. In this example, thedepth camera system20, andcomputing environment12 provide an application in which anavatar197 on thedisplay196 track the movements of theuser8. For example, the avatar may raise an arm when the user raises an arm. Theavatar197 is standing on aroad198 in a 3-D virtual world. A Cartesian world coordinate system may be defined which includes a z-axis which extends along the focal length of thedepth camera system20, e.g., horizontally, a y-axis which extends vertically, and an x-axis which extends laterally and horizontally. The perspective of the drawing is modified as a simplification, as thedisplay196 extends vertically in the y-axis direction and the z-axis extends out from the depth camera system, perpendicular to the y-axis and the x-axis, and parallel to a ground surface on which theuser8 stands.
Generally, themotion capture system10 is used to recognize, analyze, and/or track a human target. Thecomputing environment12 can include a computer, a gaming system or console, or the like, as well as hardware components and/or software components to execute applications.
Thedepth camera system20 may include a camera which is used to visually monitor one or more people, such as theuser8, 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).
Themotion capture system10 may be connected to an audiovisual device such as thedisplay196, 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, thecomputing environment12 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. Thedisplay196 may be connected to thecomputing environment12 via, for example, an S-Video cable, a coaxial cable, an HDMI cable, a DVI cable, a VGA cable, or the like.
Theuser8 may be tracked using thedepth camera system20 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 bycomputer environment12.
Some movements of theuser8 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 theuser8 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.
Themotion capture system10 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 theuser8.
FIG. 2A depicts an example block diagram of the motion capture system ofFIG. 1. Thedepth camera system20 may be configured to capture video with depth information including a depth image that may include depth values, via any suitable technique including, for example, time-of-flight, structured light, stereo image, or the like. Thedepth camera system20 may organize the depth information into “Z layers,” or layers that may be perpendicular to a Z axis extending from the depth camera along its line of sight.
Thedepth camera system20 may include animage camera component22, 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 theimage camera component22.
Theimage camera component22 may include an infrared (IR)light emitter24, aninfrared camera26, and a red-green-blue (RGB)camera28 that may be used to capture the depth image of a scene. A 3-D camera is formed by the combination of theinfrared emitter24 and theinfrared camera26. For example, in time-of-flight analysis, theIR light emitter24 emits infrared light onto the physical space and theinfrared camera26 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 thedepth camera system20 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 thedepth camera system20 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, thedepth camera system20 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, theIR light emitter24. 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, theinfrared camera26 and/or theRGB camera28 and may then be analyzed to determine a physical distance from the depth camera system to a particular location on the targets or objects.
Thedepth camera system20 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.
Thedepth camera system20 may further include amicrophone30 which includes, e.g., a transducer or sensor that receives and converts sound waves into an electrical signal. Additionally, themicrophone30 may be used to receive audio signals such as sounds that are provided by a person to control an application that is run by thecomputing environment12. 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.
Thedepth camera system20 may include aprocessor32 that is in communication with theimage camera component22. Theprocessor32 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.
Thedepth camera system20 may further include amemory component34 that may store instructions that are executed by theprocessor32, 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, thememory component34 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. Thememory component34 may be a separate component in communication with theimage capture component22 and theprocessor32 via abus21. According to another embodiment, thememory component34 may be integrated into theprocessor32 and/or theimage capture component22.
Thedepth camera system20 may include apositioning motor35 for repositioning the camera, and anaccelerometer33 for detecting movement of the depth camera. Regarding themotor35, the camera may use the motor to automatically reposition itself in various situations. For instance, the camera may have a tilt motor to adjust the up-down/pitch, that is, how high the camera is looking. This repositioning can occur, e.g., when a different player begins interacting with an application in a motion capture system, at the beginning of a game application, or when the motion capture system starts up and begins searching to find people in a room. The camera may receive commands for activating the motor based on its own control logic and/or from external control logic, such as in thecomputing environment12. The camera can include one ormore accelerometers33. For instance, an accelerometer can be mounted to a printed circuit board on which other circuitry of the camera is mounted. Techniques provided herein are usable with a two-axis accelerometer, where the third axis is fixed to prevent movement. Generally, the accelerometer can be a three-axis accelerometer which detects movement in three orthogonal axes, e.g., x, y, z axes. Typical modern accelerometers use micro electro-mechanical systems (MEMS) which are sensitive only to a direction in the plane of the die. By integrating two devices perpendicularly on a single die, a two-axis accelerometer can be made. By adding an additional out-of-plane device, acceleration in three axes can be measured. The accelerometer can provide samples of data at a specified sampling rate.
Thedepth camera system20 may be in communication with thecomputing environment12 via acommunication link36. Thecommunication link36 may be a wired and/or a wireless connection. According to one embodiment, thecomputing environment12 may provide a clock signal to thedepth camera system20 via thecommunication link36 that indicates when to capture image data from the physical space which is in the field of view of thedepth camera system20.
Additionally, thedepth camera system20 may provide the depth information and images captured by, for example, the 3-D camera26 and/or theRGB camera28, and/or a skeletal model that may be generated by thedepth camera system20 to thecomputing environment12 via thecommunication link36. Thecomputing environment12 may then use the model, depth information, and captured images to control an application. For example, thecomputing environment12 may include agestures library190, such as a collection of gesture filters, each having information concerning a gesture that may be performed by the skeletal model (as the user moves). For example, a gesture filter can be provided for various hand gestures, such as swiping or flinging of the hands. By comparing a detected motion to each filter, a specified gesture or movement which is performed by a person can be identified. An extent to which the movement is performed can also be determined.
The data captured by thedepth camera system20 in the form of the skeletal model and movements associated with it may be compared to the gesture filters in thegesture library190 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 aprocessor192 for executing instructions which are stored in amemory194 to provide audio-video output signals to thedisplay device196 and to achieve other functionality as described herein.
FIG. 2B depicts an example of processing blocks of the processor of the motion capture system ofFIG. 2A. For example, theprocessors32 and/or192 may process readings from theaccelerometer33. The readings can include acceleration readings Ax, Ay, Az in the x, y, z, directions, respectively. The readings can be in units of acceleration, e.g., m/sec2, or in other units, such as voltage or current, which correspond to units of acceleration. This correspondence may be linear. The acceleration readings Ax, Ay, Az are raw data from the accelerometer, before the readings are processed as described herein. The processor can include afunctional block200 which determines a long term running average calculation over N2 time points, such as by using the current time point and the previous N2−1 time points. The running average is essentially a moving average. The output of theblock200 includes the x, y, z long term averages, also referred to as long averages. Similarly, the processor can include a functional block202 which determines a short term running average calculation over N1 time points, such as by using the current time point and the previous N1−1 time points. The output of the block202 includes the x, y, z short term averages, also referred to as short averages. Ablock204 determines a sum of differences based on the long and short averages. Specifically, the sum can be based on the differences between the short and long averages for each of the x, y, z axes. The sum is compared to a threshold at ablock206 to determine whether movement is detected and to provide a corresponding output signal as a movement decision. The output signal can be used by a process which takes a specified action such as temporarily halting a motion tracking algorithm and/or providing a message to the user via a display indicating that a disturbance of the camera has been detected. The number of samples N1 and N2, or the associated time period, can be set based on calculated data values from the camera during experimentation.
FIG. 2C depicts another example of processing blocks of the processor of the motion capture system ofFIG. 2A.Blocks210 and212 are similar toblocks200 and202, respectively, inFIG. 2B. The long and short averages are both processed at apitch calculation block214 and aroll calculation block222. Thepitch calculation block214 provides pitch long and short term averages to adifference block216, which determines the difference between the pitch long and short term average for each time point, and provides this difference to acomparison block218. Similarly, theroll calculation block222 provides roll long and short term averages to adifference block220, which determines the difference between the roll long and short term average for each time point, and provides this difference to thecomparison block218. Thecomparison block218 determines whether movement is detected based on either one or both of the differences, and provides a corresponding output signal as a movement decision.FIG. 9 depicts an example definition of pitch and roll.
FIG. 3 depicts an example block diagram of a computing environment that may be used in the motion capture system ofFIG. 1. 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 such as thecomputing environment12 described above may include amultimedia console100, such as a gaming console. Themultimedia console100 has a central processing unit (CPU)101 having alevel 1cache102, alevel 2cache104, and a flash ROM (Read Only Memory)106. Thelevel 1cache102 and alevel 2cache104 temporarily store data and hence reduce the number of memory access cycles, thereby improving processing speed and throughput. TheCPU101 may be provided having more than one core, and thus,additional level 1 andlevel 2caches102 and104. Thememory106 such as flash ROM may store executable code that is loaded during an initial phase of a boot process when themultimedia console100 is powered on.
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 thegraphics processing unit108 to the video encoder/video codec114 via a bus. The video processing pipeline outputs data to an A/V (audio/video)port140 for transmission to a television or other display. Amemory controller110 is connected to theGPU108 to facilitate processor access to various types ofmemory112, such as RAM (Random Access Memory).
Themultimedia console100 includes an I/O controller120, asystem management controller122, anaudio processing unit123, anetwork interface124, a firstUSB host controller126, asecond USB controller128 and a front panel I/O subassembly130 that are preferably implemented on amodule118. TheUSB controllers126 and128 serve as hosts for peripheral controllers142(1)-142(2), awireless adapter148, and an external memory device146 (e.g., flash memory, external CD/DVD ROM drive, removable media, etc.). The network interface (NW IF)124 and/orwireless adapter148 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 memory143 is provided to store application data that is loaded during the boot process. A media drive144 is provided and may comprise a DVD/CD drive, hard drive, or other removable media drive. The media drive144 may be internal or external to themultimedia console100. Application data may be accessed via the media drive144 for execution, playback, etc. by themultimedia console100. The media drive144 is connected to the I/O controller120 via a bus, such as a Serial ATA bus or other high speed connection.
Thesystem management controller122 provides a variety of service functions related to assuring availability of themultimedia console100. Theaudio processing unit123 and anaudio codec132 form a corresponding audio processing pipeline with high fidelity and stereo processing. Audio data is carried between theaudio processing unit123 and theaudio codec132 via a communication link. The audio processing pipeline outputs data to the A/V port140 for reproduction by an external audio player or device having audio capabilities.
The front panel I/O subassembly130 supports the functionality of thepower button150 and theeject button152, as well as any LEDs (light emitting diodes) or other indicators exposed on the outer surface of themultimedia console100. A systempower supply module136 provides power to the components of themultimedia console100. Afan138 cools the circuitry within themultimedia console100.
TheCPU101,GPU108,memory controller110, and various other components within themultimedia console100 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 themultimedia console100 is powered on, application data may be loaded from thesystem memory143 intomemory112 and/orcaches102,104 and executed on theCPU101. The application may present a graphical user interface that provides a consistent user experience when navigating to different media types available on themultimedia console100. In operation, applications and/or other media contained within the media drive144 may be launched or played from the media drive144 to provide additional functionalities to themultimedia console100.
Themultimedia console100 may be operated as a standalone system by simply connecting the system to a television or other display. In this standalone mode, themultimedia console100 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 thenetwork interface124 or thewireless adapter148, themultimedia console100 may further be operated as a participant in a larger network community.
When themultimedia console100 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 themultimedia console100 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 theCPU101 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., controllers142(1) and142(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. Theconsole100 may receive additional inputs from thedepth camera system20 ofFIG. 2A, including thecameras26 and28.
FIG. 4 depicts another example block diagram of a computing environment that may be used in the motion capture system ofFIG. 1.
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. Thecomputing environment420 comprises acomputer441, which typically includes a variety of tangible computer readable storage media. This can be any available media that can be accessed bycomputer441 and includes both volatile and nonvolatile media, removable and non-removable media. Thesystem memory422 includes computer storage media in the form of volatile and/or nonvolatile memory such as read only memory (ROM)423 and random access memory (RAM)460. A basic input/output system424 (BIOS), containing the basic routines that help to transfer information between elements withincomputer441, such as during start-up, is typically stored inROM423.RAM460 typically contains data and/or program modules that are immediately accessible to and/or presently being operated on by processingunit459. Agraphics interface431 communicates with aGPU429. Anoperating system425,application programs426,other program modules427, andprogram data428 are provided.
Thecomputer441 may also include other removable/non-removable, volatile/nonvolatile computer storage media, e.g., ahard disk drive438 that reads from or writes to non-removable, nonvolatile magnetic media, amagnetic disk drive439 that reads from or writes to a removable, nonvolatilemagnetic disk454, and anoptical disk drive440 that reads from or writes to a removable, nonvolatile optical disk453 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. Thehard disk drive438 is typically connected to the system bus421 through an non-removable memory interface such asinterface434, andmagnetic disk drive439 andoptical disk drive440 are typically connected to the system bus421 by a removable memory interface, such asinterface435.
The drives and their associated computer storage media discussed above and depicted inFIG. 4, provide storage of computer readable instructions, data structures, program modules and other data for thecomputer441. For example,hard disk drive438 is depicted as storingoperating system458,application programs457,other program modules456, andprogram data455. These components can either be the same as or different fromoperating system425,application programs426,other program modules427, andprogram data428.Operating system458,application programs457,other program modules456, andprogram data455 are given different numbers here to depict that, at a minimum, they are different copies. A user may enter commands and information into thecomputer441 through input devices such as akeyboard451 andpointing device452, commonly referred to as a mouse, trackball or touch pad. Other input devices (not shown) may include a microphone, joystick, game pad, satellite dish, scanner, or the like. These and other input devices are often connected to theprocessing unit459 through auser input interface436 that is coupled to the system bus, but may be connected by other interface and bus structures, such as a parallel port, game port or a universal serial bus (USB). Thedepth camera system20 ofFIG. 2A, includingcameras26 and28, may define additional input devices for theconsole100. Amonitor442 or other type of display is also connected to the system bus421 via an interface, such as avideo interface432. In addition to the monitor, computers may also include other peripheral output devices such asspeakers444 andprinter443, which may be connected through a outputperipheral interface433.
Thecomputer441 may operate in a networked environment using logical connections to one or more remote computers, such as aremote computer446. Theremote computer446 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 thecomputer441, although only amemory storage device447 has been depicted inFIG. 4. The logical connections include a local area network (LAN)445 and a wide area network (WAN)449, but may also include other networks. Such networking environments are commonplace in offices, enterprise-wide computer networks, intranets and the Internet.
When used in a LAN networking environment, thecomputer441 is connected to theLAN445 through a network interface oradapter437. When used in a WAN networking environment, thecomputer441 typically includes amodem450 or other means for establishing communications over theWAN449, such as the Internet. Themodem450, which may be internal or external, may be connected to the system bus421 via theuser input interface436, or other appropriate mechanism. In a networked environment, program modules depicted relative to thecomputer441, or portions thereof, may be stored in the remote memory storage device. By way of example, and not limitation,FIG. 4 depictsremote application programs448 as residing onmemory device447. It will be appreciated that the network connections shown are exemplary and other means of establishing a communications link between the computers may be used.
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 as described herein. The tangible computer readable storage can include, e.g., one or more ofcomponents422,434,435,430,453 and454. Further, one or more processors of the computing environment can provide a processor-implemented method, comprising processor-implemented steps as described herein. A processor can include, e.g., one or more ofcomponents429 and459.
FIG. 5 depicts a method for detecting camera movement in a motion capture system. Step500 includes tracking a user in a field of view of a depth camera system. For further details, see, e.g.,FIG. 6. Step502 includes processing accelerometer readings. See, e.g.,FIGS. 7A and 7B for further details. Decision step504 determines if camera movement is detected. If decision step504 is true, then an appropriate action is taken, such as temporarily halting tracking of the user, at step506. This avoids erroneous tracking results which might otherwise occur if tracking were to continue despite the detected movement. Efficient tracking generally requires the camera to be substantially motionless. Decision step504 will be true when the camera is currently moving or when it was previously moving very recently, such as within the time period over which an average is taken (such as described in connection withFIGS. 2B and 2C). If decision step504 is false, then tracking of the user is allowed to continue, at step508. Step510 includes providing a control input to an application based on the tracking. For instance, the control input can be used to update the position of an avatar on a display, where the avatar represents the user. Step512 includes updating the display based on the tracking.
When the tracking algorithm is temporarily halted, data may not be available for updating the display based on the normal update rate. One approach is to continue to display the last image before movement was detected. Another possible action to take when movement is detected at step504 is to provide a message to the user via a display indicating that a disturbance of the camera has been detected. This message could be displayed as text, and/or audibly, such as by a synthesized spoken voice saying “Please reposition the camera” or “the camera has been disturbed.” A warning sound such as a beep or buzzer could also be initiated during the period of detected movement and optionally for a predetermined time after the period of detected movement. The message could instruct the user as to how to avoid further disturbances in the future.
The temporary halting of the tracking algorithm can be achieved, e.g., by turning off the power to the depth camera, or by keeping power to the depth camera while providing a control signal in the logic to temporarily suspend certain tracking processes.
FIG. 6 depicts an example method for tracking movement of a person as set forth in step500 ofFIG. 5. The example method may be implemented using, for example, thedepth camera system20 and/or thecomputing environment12,100 or420 as discussed in connection withFIGS. 2A-4. One or more people can be scanned to generate a model such as a skeletal model, a mesh human model, or any other suitable representation of a person. In a skeletal model, each body part may be characterized as a mathematical vector defining joints and bones of the skeletal model. Body parts can move relative to one another at the joints.
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, atstep600, 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 withFIG. 8.
Atdecision step604, 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.
Ifdecision step604 is true,step606 is performed. Ifdecision step604 is false, additional depth information is received atstep600.
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.
Step606 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.
Step608 includes generating a model of the human target. 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.
Atstep610, 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.
FIG. 7A depicts an example method for processing accelerometer readings for a current time period as set forth instep502 ofFIG. 5. Step700 includes obtaining accelerometer readings Ax, Ay, Az for the x, y and z axes, respectively, for a current time point. For example, for a current time point or sample index t=i, the samples can be represented by Ax(i), Ay(i), Az(i). A sampling interval such as 15 msec. may be used, where additional samples are obtained for each sampled time point. The steps depicted apply to one time point and are repeated for each successive time point. The steps depicted need not necessarily occur discretely, but may occur concurrently, at least in part. For example, steps702,704 and706 may occur concurrently, at least in part. For the x-axis reading,step702 obtains a short term running average over a number N1 time points, and a long term running average over a number N2 time points. For example, the short term running average for the x-axis can be
The long term running average for the x-axis can be
For the y-axis reading,step704 obtains a short term running average over N1 time points, and a long term running average over N2 time points. For the z-axis reading,step706 obtains a short term running average over N1 time points, and a long term running average over N2 time points. In this example, the short and long term averages are defined similarly for the different axes. However, it is also possible to use a different number of time points/averaging period for the short and long term averages for each of the three different axes.
Experimentation can be used to determine the optimal number of time points, or the averaging period, for each axis, and for the long and short averages, for a particular implementation. Furthermore, experimentation can be used to determine the optimal ratio of N2/N1 for a particular implementation. A ratio of N2/N1=1.5 has been found to be successful in some implementations. That is, N2 exceeds N1 by about 50%. Generally, 1.3×N1<N2<1.7×N1 may be used. Furthermore, with a 15 msec. sampling interval, N1=40 and N2=60 have been successfully used, so that the time interval over which to take the short and long averages (the averaging period) is 600 msec. and 900 msec., respectively. N1 and N2 are positive integers, and N2<N1. This is an example implementation and, as mentioned, the optimum values for a particular implementation can be determined by experimentation. Generally, if N2 exceeds N1 by too much, the indication of movement is delayed too long. If N2 and N1 are too close, so that N2 does not sufficiently exceed N1, some indications of movement will be missed. A further consideration is that a minimum length of the short average should generate a sufficiently stable time line to eliminate most spurious vibrations.
Step708 determines a sum of differences based on: |x-axis long average−x-axis short average|+|y-axis long average−y-axis short average|x scaling factor+|z-axis long average−z-axis short average|. |x-axis long average−x-axis short average| represents an absolute value of the difference between the x-axis long term average and the x-axis short term average for the current time point. |y-axis long average−y-axis short average| represents an absolute value of the difference between the y-axis long term average and the y-axis short term average for the current time point. The y-axis may represent a vertical direction. A scaling factor may be used to reduce or attenuate the effects of vertical movements in the decision of whether to indicate camera movement. Vibrations due to sources such as speakers near the camera, people walking or jumping near the camera or any other disturbance that can be communicated through a surface on which the camera rests, are most pronounced on the vertical axis. With a scaling factor, the accelerometer data which represents movement in the vertical axis is attenuated relative to the accelerometer data which represents movement in the x or z axis. This can achieve better results by avoiding false movement detections due to commonplace y-axis vibrations. On the other hand, movements due to the camera moving by its motor, such as by tilting up or down, or from being moved by an external source, such as by a user, tend to be more pronounced or approximately equal in the x and z axes. The scaling factor can be separate from a correction of gravity effects in the vertical direction, or combined with such a correction. The scaling factor can be about 20% (0.2), for instance, or about 10-33% (0.10-0.33), for instance. The scaling factor can be optimized through experimentation.
|z-axis long average−z-axis short average| represents an absolute value of the difference between the z-axis long term average and the z-axis short term average for the current time point. Motions generally appear as vibrations on all three axes, so that averaging readings from all three axes advantageously reduces vibration noise which is inherent in accelerometers. Moreover, the techniques provided herein do not require the camera to be level for movement detection. Techniques which indicate motion based on movement beyond a threshold in a single axis can provide inconsistent results.
Atdecision step710, if the sum is greater than a threshold,step712 provides an indication that movement is detected. On the other hand, atdecision step710, if the sum is not greater than the threshold,step714 provides an indication that movement is not detected. Optionally, the indication atstep712 may not be provided until movement is detected for a specified number of one or more samples. Similarly, the indication atstep714 may not be provided until movement is detected for a specified number of one or more samples. An optimum threshold indecision step710 can be determined based on experimentation. The threshold should be high enough so that movement is not detected in situations where the level of movement is acceptable and the tracking algorithm can continue tracking a user with acceptable performance. On the other hand, the threshold should be low enough so that movement is detected in situations where the level of movement is not acceptable and the tracking algorithm cannot continue tracking a user with acceptable performance. Experimentation which is used to determine an optimal threshold level can use a metric of tracking performance.
SeeFIGS. 10A-11C for example data generated based onFIG. 7A.
FIG. 7B depicts another example method for processing accelerometer readings for a current time period as set forth instep502 ofFIG. 5.Steps720,722,724 and726 correspond tosteps700,702,704 and706, respectively, ofFIG. 7A. Step728 determines a pitch angle based on the long term average values ofsteps724 and726. With the convention ofFIG. 9, the pitch angle of the camera is equal to the inverse tangent of z divided by y, where z and y are Az(i) and Ay(i), respectively, at a sample index i. Thus,step728 determines long pitch=a tan(z-axis long average/y-axis long average). Long pitch is the pitch for the current sample based on the long term averages of Az and Ay for the current sample. A tan is the inverse tangent. Similarly,step730 determines short pitch=a tan(z-axis short average/y-axis short average). Short pitch is the pitch for the current sample based on the short term averages of Az and Ay for the current sample. A change in the pitch angle, Δpitch, can be determined based on the difference between the long and short term pitches ofsteps728 and730, respectively, as Δpitch=|long pitch−short pitch|.
Similarly, with the convention ofFIG. 9, the roll angle of the camera is equal to the inverse tangent of x divided by y, where x and y are Ax(i) and Ay(i), respectively, at a sample index i. Ay(i) can be scaled to remove gravitational effects and/or to attenuate common vertical motions. Step734 determines long roll=a tan(x-axis long average/y-axis long average). Long roll is the roll for the current sample based on the long term averages of Ax and Ay for the current sample. Similarly,step736 determines short roll=a tan(x-axis short average/y-axis short average). Short roll is the roll for the current sample based on the short term averages of Ax and Ay for the current sample. A change in the roll angle, Δroll, can be determined based on the difference between the long and short term roll angles ofsteps734 and736, respectively, as Δroll=|long roll−short roll|.
In one implementation,decision step740 compares both Δpitch and Δroll to an angle threshold, in units of degrees or radians (different thanstep710 ofFIG. 7A). If one or both of Δpitch and Δroll exceed the threshold,step742 provides an indication that movement is detected. If neither of Δpitch and Δroll exceeds the threshold,step744 provides an indication that movement is not detected. In another possible implementation, movement is indicated only if both of Δpitch and Δroll exceed the threshold. Another possible implementation compares Δpitch to one threshold and compares Δroll to another threshold. Movement is indicated if one or more of the thresholds is exceeded. Experimentation can be used to set an optimal threshold. This approach converts acceleration readings into angles so that a comparison to a threshold is made based on angles rather than raw acceleration readings (as inFIG. 7A). Optionally, the indication atstep742 may not be provided until movement is detected for a specified number of one or more samples. Similarly, the indication atstep744 may not be provided until movement is detected for a specified number of one or more samples.
In another possible implementation,decision step740 compares the sum of the absolute values of Δpitch and Δroll to an angle threshold, e.g., |Δpitch|+|Δroll|.
As mentioned in connection withFIG. 2A, the camera may have a motor for repositioning itself. A further approach integrates control signals which indicate whether the camera is repositioning itself with data from the accelerometer. Generally, the accelerometer will indicate movement when the positioning motor is operating. In some cases, the accelerometer will also indicate movement when the positioning motor is not operating. For example, when a motorized positioning is completed, a control signal indicates that the motor is not operating. The control signal can be based, e.g., on a sensor which detects that the positioning motor is not operating. However, due to some play in the positioning motor and/or its attachment to the camera, the camera may continue to move for a short time, e.g., a fraction of a second, after a control signal indicates that the motor is no longer operating. In this case, the accelerometer can detect this movement and provide an appropriate action such as delaying motion tracking.
Thus, the positioning motor and the accelerometer may provide contrary indications. In one approach, an indication is provided that the positioning motor is not operating, while it is detected that the positioning motor is not operating. This approach halts a motion tracking process in response to an indication that movement of the depth camera is detected by the accelerometer, even during the indication that the positioning motor is not operating. Thus, the accelerometer indication takes priority.
In another situation, an indication is provided that the positioning motor is operating, while it is detected that the positioning motor is operating. This approach halts a motion tracking process in response to an indication that the positioning motor is operating, even during an indication that movement of the depth camera is not detected by the accelerometer. Thus, the positioning motor takes priority. Generally, it can be concluded that there is movement of the camera if one or both of the positioning motor and the accelerometer indicate there is movement. This is a conservative approach which seeks to avoid missing an actual movement.
Another possible approach uses multiple accelerometers. One implementation processes the readings collectively from each axis, across the multiple accelerometers. For example, assume two accelerometers are used. For each time point, Ax, Ay and Az samples are obtained from the two accelerometers, e.g., as Ax1(i), Ax2(i), Ay1(i), Ay2(i), Az1(i) and Az2(i). The two Ax samples, Ax1(i) and Ax2(i), can be averaged to obtain a single Ax(i) sample which is treated the same as in the case of a single accelerometer. Similarly, the two Ay samples, Ay1(i) and Ay2(i), can be averaged, and the two Az samples, Az1(i) and Az2(i), can be averaged. Thus, the short and long term running averages are obtained from readings from the multiple three-axis accelerometers, by averaging across readings from the multiple three-axis accelerometers.
In another possible implementation, readings from each accelerometer are used to determine whether motion is detected, and a majority vote is taken to determine whether to provide an indication of motion. For example, three accelerometers may be used in this case, so that a majority vote will be decisive. Thus, movement is indicated if two or three of the accelerometers indicate movement; otherwise, movement is not indicated.
FIG. 8 depicts an example model of a user as set forth instep608 ofFIG. 6. Themodel800 is facing the depth camera, in the −z direction, so that the cross-section shown is in the x-y plane. Note the vertical y-axis and the lateral x-axis. A similar notation is provided in other figures. The model includes a number of reference points, such as the top of thehead802, bottom of the head orchin813,right shoulder804,right elbow806,right wrist808 andright hand810, represented by a fingertip area, for instance. The right and left side is defined from the user's perspective, facing the camera. The model also includes aleft shoulder814,left elbow816,left wrist818 andleft hand820. Awaist region822 is also depicted, along with aright hip824, right knew826,right foot828,left hip830,left knee832 and leftfoot834. Ashoulder line812 is a line, typically horizontal, between theshoulders804 and814. Anupper torso centerline825, which extends between thepoints822 and813, for example, is also depicted.
FIG. 9 depicts an example coordinate system used for processing accelerometer readings as set forth inFIGS. 7A and 7B. Any desired coordinate system can be used. In this example, the y-axis is a vertical axis, the z axis is parallel to the camera axis, e.g., the direction in which the camera looks, and the x axis extends laterally to the camera axis. A vector extending for the origin represents an acceleration vector for a given reading, where the acceleration vector has components Ax, Ay, Az along the x, y, z directions respectively. A pitch angle can be defined based on the tangent of Az/Ay. A roll angle can be defined based on the tangent of Ax/Ay. A yaw angle can be defined based on the tangent of Ax/Az. In one approach, the x axis runs horizontally sideways through the camera, the y axis is vertical and the z axis runs horizontally from the front to the back of the camera. Generally, changes in pitch, roll and yaw can be detected.
FIG. 10A depicts example raw accelerometer readings in a scenario where a player is jumping. For example, one or more players may be jumping around, running or otherwise playing in a room in which the depth camera is located. The camera is resting on a surface which receives vibrations from the floor of the room when the players are jumping. Waveforms1000,1002 and1004 depict the raw accelerometer readings in the y, x and z axes, respectively, for successive time points. The horizontal axis indicates progressing time, from left to right, and the vertical axis indicates amplitude. Ay is substantially higher than Ax and Az because it is not yet corrected for gravity in this example. It can be seen that there are three separate disturbances. Some noise is present at the other times.
FIG. 10B depicts long and short term average pitch values, atwaveforms1008 and1006, respectively, based onFIG. 10A. It can be seen that some of the peaks inwaveform1008 occur later relative to corresponding peaks in thewaveform1006 due to the nature of a long-term average vs. a short-term average.
FIG. 10C depicts a difference between the long and short term average pitch values ofFIG. 10B. The corresponding data for roll and/or yaw is not depicted but would be similar in nature to the waveform ofFIG. 10C. Waveform1010 depicts a difference betweenwaveforms1008 and1006, andthreshold1016 is an angle threshold such as instep740 ofFIG. 7B. The waveform1010 does not exceed theangle threshold1016, indicating that no motion is detected. In comparingFIG. 10C andFIG. 10D, it can be seen that the results are consistent in that movement is not detected with either technique.
FIG. 10D depicts a sum of differences and comparison to a threshold, based onFIG. 10A indicating when movement is detected. Thewaveform1012 depicts the sum of the differences (step708,FIG. 7A). This is |x-axis long average−x-axis short average|+|y-axis long average−y-axis short average|x scaling factor+|z-axis long average−z-axis short average|. In this example, thewaveform1012 does not exceed a threshold level1014 (step710,FIG. 7A), so that movement is not detected for the time period depicted. Thus, in one approach, thewaveform1012 is the sum of three waveforms, which are based on the average of the individual axes represented bywaveforms1000,1002 and1004.FIGS. 10A-D are roughly time-aligned with one another.
FIG. 11A depicts example raw accelerometer readings in a scenario where a sensor is moved. For example, a user may manually alter the position of the depth camera while it is operating. Waveforms1100,1102 and1104 depicts the raw accelerometer readings in the y, x and z axes, respectively, for successive time points. The horizontal axis indicates progressing time, and the vertical axis indicates amplitude. As before, Ay is substantially higher than Ax and Az because it is not yet corrected for gravity in this example.
FIG. 11B depicts long and short term average pitch values, atwaveforms1110 and1108, respectively, and a difference between the long and short term average pitch values atwaveform1106, based onFIG. 11A. The corresponding data for roll and/or yaw is not depicted but would be analogous to the waveform ofFIG. 11B. Waveforms1108 and1110 are shown as being offset slightly from zero at the start of the waveforms, on the left hand side, so that their detail can be seen. An angle threshold1107 (step740,FIG. 7B) is also depicted. Aportion1117 of thewaveform1106 exceeds thethreshold1107, indicating that movement is detected.
FIG. 11C depicts a sum of differences and comparison to a threshold, based onFIG. 11B and corresponding data for roll and/or yaw, indicating when movement is detected. Thewaveform1012 depicts the sum of the differences (step708,FIG. 7A). Thewaveform1112 exceeds a threshold level1114 (step710,FIG. 7A) atwaveform portions1116,1118,1120 and1122, so that movement is detected for these waveform portions and the respective time ranges. Thus, in one approach, thewaveform1112 is the sum of three waveforms, which are based on the average of the individual axes represented bywaveforms1100,1102 and1104.FIGS. 11A-C are roughly time-aligned with one another.
In comparingFIG. 11B andFIG. 11C, it can be seen that the results can differ in that movement can be detected at different times. Although, the effects of roll and/or yaw are not depicted separately.
FIGS. 10A-11C are examples of the implementation ofFIG. 7A. Corresponding waveforms can be provided for the implementation ofFIG. 7B by processing the raw data ofFIG. 10A or11A according to the steps ofFIG. 7B.
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.