NEW!  Version 3 of iPi Motion Capture is available. iPi Motion Capture 3 delivers new features for improved workflow including support of Kinect 2, improved arms tracking, simplified calibration and others. Read more >>

This documentation corresponds to version 2 of iPi Motion Capture. The latest documentation for version 3 can be found at https://docs.ipisoft.com/

Quick Start Guide for Dual Depth Sensor Configuration

From iPiSoft Wiki
(Difference between revisions)
Jump to: navigation, search
(Processing)
(Tracking)
Line 213: Line 213:
 
== Tracking ==
 
== Tracking ==
  
Recording and processing of performance video is mostly like ones for single Kinect solution: [[Quick Start Guide with MS Kinect Sensor#Processing Video from Depth Sensor]].
+
Recording and processing of performance video is generally the same as for single Kinect solution: [[Quick Start Guide with MS Kinect Sensor#Processing Video from Depth Sensor]].
  
The main difference is that after loading of performance video into '''iPi Studio''' you should load your scene parameters:
+
The main difference is that after loading captured video into '''iPi Studio''' you should load your scene parameters:
 
* switch to the '''Scene''' tab
 
* switch to the '''Scene''' tab
 
* click "Load scene..." button
 
* click "Load scene..." button
* select file with scene parameters which was saved during calibration process
+
* select file with scene parameters which has been saved during calibration process
  
 
That's all. After that you're ready for the processing:
 
That's all. After that you're ready for the processing:

Revision as of 18:29, 14 October 2011


  BETA STATUS  


Contents

Prerequisites


Note that before you start working with two Kinects it's highly recommended to get appropriate results with single Kinect solution: Quick Start Guide with MS Kinect Sensor.


Drivers Update

If you have used previous version of iPi Recorder (1.5.0.x) with Microsoft Kinect Sensor, then it is highly recommended to update PrimeSense drivers for Kinect. To do it, please, download and run the following MSI-installation package:


You’ll be asked about License Agreement for “PrimeSensor Driver (psdrv3) Registration for MS Kinect”:
PSensor-install-step2.png
Please read the license agreement and accept it by checking the appropriate checkbox. Then press “Install” button. As soon as you get the Windows Security screen, please select “Install this driver software anyway”:
KSensor-install-step3.png
At this point the driver will complete its installation and should not give any other errors:
PSensor-install-step4.png


Note that there is no need to manually uninstall the previous version of the driver - the installation package will do it by itself. The only thing which is desirable is to unplug Kinect Sensors from computer during installation.

Recording with 2 Kinects

Important! Each Kinect Sensor must be plugged in through separate USB controllers. If both Kinects are plugged in through one USB controller then the second Kinect will not work. How it looks in the Device Manager:

Dual-kinect-device-manager-good.png
Dual-kinect-device-manager-bad.png
Good
Bad
Both Kinects are plugged correctly
Both Kinects are plugged through one and the same USB controller

Run iPi Recorder and mark both MS Kinect Sensors in the Camera Selector dialog:
Click to enlarge

Press “Ok” button. As a result you should see something like this:
Click to enlarge


Make sure that you can see correct colored “depth video” from both sensors and

  1. that you can change motor position for each sensor using appropriate slider and “Motor of” combobox
  2. that you can switch between RGB and “depth” video using “View RGB/Depth” button
  3. that actual frame rate is 30 fps (or 29.9) and frames drop is in range from 0 to 5 for each sensor

Note that you can turn off RGB streaming using appropriate checkbox in the Advanced Options section of Camera Selector dialog. Also you can change the position of cameras output and motor controls in the interface in case they are positioned in the wrong order:
Click to enlarge

Please don't forget to set output directory for recorded video:
Click to enlarge

Calibration

Preparations

There are two possible arrangements of the two sensors:

  1. angle between sensors is between 60 and 90 degrees;
  2. angle between sensors in near to 180 degrees that means that sensors are placed opposite to each other.


For current version we strongly recommend to use the first configuration:

Click to enlarge
Click to enlarge
Top view
Side view


For calibration purposes flat rectangular veneer/plywood/cardboard/pasteboard is used:

  • horizontal size should be at least 0.5m (1m - 1.3m is recommended);
  • vertical size should be at least 0.7m (1m - 1.5m is recommended);
  • hold it vertically in front of yourself on outstretched arms;
  • make sure that this calibration plane is good visible in both sensors (the amount of yellow is low in the area of the veneer/plywood/cardboard/pasteboard).
Dual-kinect-calibration-good.png
Dual-kinect-calibration-bad.png
Good
Bad
good size
good depth data
too many yellow (no depth data) points
too small
too close to human body


Important! Yellow color in the depth map means "depth here is unknown". Thus it is important to minimize the amount of yellow points using appropriate materials and clothes.

Recording

After you finished preparations and sensors setup you're ready to record the calibration video:

  • Start recording by pressing the "Start Video Recording" button.
  • Initial two seconds of video should contain only background and static objects. Presence of actor or any moving objects in the initial two seconds of recorded video is unacceptable.
  • Go to the capture area with prepared calibration plane (flat rectangular veneer/plywood/cardboard/pasteboard).
  • Turn the veneer/plywood/cardboard/pasteboard to the left and to the right thus view angle is changing but the veneer/plywood/cardboard/pasteboard is still visible in both sensors.
  • Stop the recording by pressing the "Stop Video Recording" button.
Dual-kinect-calibration-pos-0.jpg
Dual-kinect-calibration-pos-1.jpg
Dual-kinect-calibration-pos-2.jpg
Dual-kinect-calibration-pos-3.jpg
Dual-kinect-calibration-pos-2.jpg
Dual-kinect-calibration-pos-1.jpg
Dual-kinect-calibration-pos-0.jpg
Dual-kinect-calibration-pos-4.jpg
Dual-kinect-calibration-pos-5.jpg
Dual-kinect-calibration-pos-6.jpg
Dual-kinect-calibration-pos-4.jpg
Dual-kinect-calibration-pos-5.jpg


Note that is important to have variety in angles from one hand and good visibility of the calibration plane in each camera from the other hand. It is not so easy to reach good results for 90 degrees angle thus 60-80 degrees angles could be more practical.

Dual-kinect-calibration-pos-good.jpg
Dual-kinect-calibration-pos-bad.jpg
Good
Bad
the calibration plane is good visible in both sensors
the calibration plane is not visible in the left sensor


Please open the captured video in the iPi Studio and check the following:

  • At least two initial seconds of video contains only background and static objects (no actor, no calibration plane)
  • The floor (ground) is good visible on the depth maps from both sensors
  • The calibration plane is good visible on the depth maps most the time
  • The calibration plane is moving and has at least 30 degrees variety in the horizontal view angle
  • The amount of yellow points is relatively small

Processing

  • Please make sure that the ground plane is determined correctly for both sensors after calibration video opening in the iPi Studio (to switch between sensors use buttons "Camera 1" and "Camera 2" in the top toolbar).

KSensor-process-step2.png


  • After that it is convenient to turn off visualization of background points (View -> Hide Background).

Dual-kinect-hide-background.png


  • Set the beginning of Region of Interest (ROI) to the point where calibration plane is good visible in both sensors.

Dual-kinect-calibration-roi-beg.png


  • Adjust the end of ROI:
    • the length of ROI should be at leat 5 seconds (150 frames)
    • ROI should contain good variety of horizontal view angles for the calibration plane
  • Go to the Calibration tab, select "Angle between sensors is 30 - 90 degrees" option and click "Calibrate Based on 3D Plane" button

Dual-kinect-calibration-start.png


  • Please wait for the end of calibration process
  • Evaluate the result:
    • turn on "Show Depth From All Sensors" option in the "View" menu
    • rotate the scene and check how 3D-points from different sensors fit with each other

Dual-kinect-calibration-res-eval.jpg


  • Save the result:
    • go to the Scene tab
    • click "Save scene..." button
    • choose file name for your scene parameters

Dual-kinect-calibration-save.png

Tracking

Recording and processing of performance video is generally the same as for single Kinect solution: Quick Start Guide with MS Kinect Sensor#Processing Video from Depth Sensor.

The main difference is that after loading captured video into iPi Studio you should load your scene parameters:

  • switch to the Scene tab
  • click "Load scene..." button
  • select file with scene parameters which has been saved during calibration process

That's all. After that you're ready for the processing:

  • Position timeline slider to the frame where actor is in T-pose
  • Adjust actor height using appropriate slider on tab “Actor”
  • Select “Move” tool on toolbar.
  • Move actor model to left or right to match roughly actor silhouette on video.
  • etc.

Next Steps

Personal tools