This sample shows how to track the motion of the camera in 3D space with six degrees of freedom (6DoF). The code included in this example captures and displays a live point cloud of the scene along with 3D camera path.
Download the sample and follow these instructions:
Win64
solutionRelease
Open a terminal and run the following command to clone and build the sample:
git clone https://github.com/stereolabs/zed-tracking-viewer.git
cd zed-tracking-viewer
mkdir build
cd build
cmake ..
make
Or open a terminal in the build directory and run the sample :
./ZED\ Tracking\ Viewer [path to SVO file]
You can optionally provide an SVO file path (recorded stereo video of the ZED)
This sample shows how to capture and display the current scene depth and 3D camera movement:
NOTE: Camera tracking is based on 3D vision only. Quick and sudden camera movements can be difficult to track if the image is blurry or there is no visual information in the scene. To improve tracking performance, we recommend using the ZED in HD720 mode at 60fps.