Compared to a studio installation of a camera tracking system, a Fly tracking system allows precise 3D real time camera tracking without addition hardware on the camera. The Setup is very easy and fast. This is possible because the tracking is solely relying on the video stream of the filming camera.
For an already set up system that meets all requirements please follow the steps from chapter 4 onward.
If you would like to receive a sample drone video together with the corresponding lens file for testing, please contact firstname.lastname@example.org.
1.2 Working Principle
The tracking software uses solely video for reference. When scanning the environment, a 3D point cloud will be created based on well recognizable points in the video. These points are called feature points, indicated by little blue crosses in the video. The orientation of the coordinate system and also the scale have to be defined afterwards. This data is saved as a reconstruction. When a reconstruction is loaded, recognized areas are indicated by blue squares in the video. Blue squares in the Worker video mean that tracking data is being generated and forwarded to the Chief.
The image processing detects high contrast corners. That means that lines, featureless and low-contrast areas do not contribute to the reconstruction.
The camera always has to be able to see a minimum of feature points. In drone applications that means that the drone can often (for example in stadiums) not look straight down, because the grass and marks on the grass alone don’t provide enough stable feature points. The contrast between white lines and grass is often not sufficiently high which reinforces this effect.
Some fixed objects like buildings or tribunes have to be inside the frame at all times!
Pixotope Fly will use the Worker and Chief programs like any other Pixotope Tracking version. The Worker does the video based image processing to calculate the location of the camera. The Chief completes these data and handles the sending.
There are however some differences to other Pixotope Tracking versions:
The Worker uses the video of the aerial camera instead of a sensor camera.
There is no connection to the lens, therefore a fixed lens setup must be used.
No additional hardware like IMU or IR lights are being used.
The Chief window is stripped-down, because many settings are not needed for Fly.
The Chief does not need a video input. The incoming video is only required by the Worker.
2 Technical Requirements
2.1 Hardware requirements
Please read the general Pixotope Tracking Engine Requirements. For Fly only 1 Gbit network port and only 3 USB ports are needed in the tracking engine. Other specifications remain the same.
Besides the tracking workstation the only hardware needed is the Pixotope calibration board. It is needed to create the lens calibration file. It can be done beforehand as soon as the drone that will be used for the production is available. It can also be done on location, since it is a process of only a few minutes.
2.2 Video requirements
The video signal being used needs to be progressive. Interlacing the video frames undermines the image processing. Possible formats are 720p and 1080p.
2.3 Camera requirements
A fast shutter speed is necessary for reliable tracking. A shutter speed that is too slow results in motion blur in the video during fast movements of the camera. Since the tracking is solely relying on the video signal, motion blur should be avoided by keeping the shutter speed at 1/250s or higher.
Digital image stabilization that changes the used area of the image dynamically is not usable because such a mode makes it impossible to capture the lens distortion correctly. However, an image stabilization that crops the image by a fixed factor is possible to use. For using it the lens file has to be made with this image stabilizer being active. Please keep in mind that a digital image stabilization increases the video delay.
2.4 Lens requirements
Pixotope Fly uses a fixed lens calibration. It is therefore necessary that during operation no zoom, focus or auto-focus are being used.
As described earlier, a sufficient amount of feature points must be inside the video frame at all times during on-air mode to ensure a reliable tracking. This fact makes a wide angle lens much more capable.
3.1 Hardware Setup
3.2 Software Setup
For the operating system installation, please follow the respective manual.
For the Fly software installation, please install the pxtrk-VioWorker, the pxtrk-VioChief and the pxtrk-Vision software packages as described in chapter 2.3 or chapter 4 of the operating system manual. Everything else that is needed will be selected automatically and installed with these packages.
3.3 Chief Setup
As described in chapter 2.1 the Chief configuration for Fly is different to a studio application of Pixotope Tracking. The Chief settings are saved in the folder /home/tracking/pxVision/ in the file pxVisionChief.cfg.
In order to configure the Chief for a Fly application follow the steps below:
If there is no Setup button in the Chief window, the Chief package has to be updated as described here
Start the Chief
Click on the Setup button at the bottom of the Chief window
Configure according to Illustration 4
Choose as many Senders as you need for your setup
Click on Save + Quit/Restart
If you are switching from an existing Pixotope Vision Chief setup to Fly, create a backup from the old Chief configuration by saving the pxVisionChief.cfg file in /home/tracking/pxVision/ under a different name. When saving a new Chief setup it will override the file with this exact name.
3.4 Worker Setup
The Worker settings are saved in the folder /home/tracking/pxVision/ in the file VTR2_Registry.json.
At the first start of the program the correct video source has to be selected:
Open the Settings in the Worker window and navigate to the Camera tab.
Select the Interface type.
Select the correct Device name, the Display mode and in case of a BlackMagic video card the correct Connection mode.
Click on Change image source.
If you already have the correct lens file, select it at Calibration file.
4.1 Lens Calibration
When using Pixotope Fly, the lens characteristics of the aerial camera being used have to be a known factor. This is necessary because the lens characteristics change the location of the feature points in the image. For creating an exact 3D point cloud which represents the reality, it is necessary that the lens characteristics are captured and saved before doing the reconstruction.
Create a fixed lens calibration file with the TrackMen calibration target for the Fly setup you are using. If you are not familiar with this process, please refer to the general fixed lens calibration manual in the Pixotope Tracking Help Center, the step-by-step guide in that manual or the video tutorial.
In the Fly version, the same lens file has to be selected in both the Worker and the Chief window:
Select the lens file in the Worker Camera tab for image processing.
Select the same lens file in the Chief Lens tab as well, to send it’s parameters to the graphics engine.
When a new reconstruction of an environment has to be made, the aerial camera needs to be in the air and able to move around to see the tracking area from different positions.
The correct lens file, suitable for the productions settings has to be loaded in the Worker.
Some specific attributes have to be considered when creating a reconstruction with an aerial camera, mostly due to the larger environment dimensions of the tracking area compared to a studio application, the absence of dedicated markers and the influence of weather conditions.
4.2.1 Learning the Environment
1. Fly with the aerial camera while it sees the area that will be used for tracking.
2. Keyframes from different positions of the aerial camera have to be taken
a. either by flying 90 degrees around a certain area
b. or by flying sideways.
Between two consecutive keyframes it is important that the drone flies with only little or no pan or tilt. The drone has to be at a different location in 3D space and pan or tilt should only change a bit.
3. Take the first keyframe and let the aerial camera move to a different location without panning or tilting too much.
4. While still seeing most parts of what was visible in the first keyframe, but now from a different position, take the second keyframe.
The initialization distance between the first two keyframes should be chosen according to the scale of the environment. In a studio half a meter distance between the camera position of keyframe 1 and keyframe 2 is recommended. A drone flying inside a stadium for example needs a larger positional difference between the first two keyframes. If the distance is too high too many feature points get lost while moving.
5. Keep changing the position and perspective of the camera and take other keyframes.
6. Keep adding keyframes from different positions / perspectives until the entire area is reconstructed.
7. After initializing the tracking with the first two keyframes Allow Extension can be used to have keyframes taken automatically.
Compared to a studio application the dimensions of the environment are larger when filming with an aerial camera. The feature points will have greater distances to each other and to the camera. Due to this fact the Distance factor in the Locator tab should in most cases be lowered. This will cause more keyframes being taken automatically, when Allow Extension is active. Values between 0.06 and 0.10 are good in most Fly applications.
4.2.2 Setting transformation and scale
Choose three points inside the tracking area for defining the orientation and the scale. These 3 points must be on the same plane. This will create the zero plane, so ideally they should be on the floor. This is however not always possible (see example fotos).
The three point have to be reconstructed from different perspectives and each one of them must be included in at least two keyframes. It does not matter which keyframes they are in.
Open the Worker settings and click on Refine coordinates in the Locator tab
By clicking into the keyframe pictures the 3D position of the three points can be defined. Click on points from which the exact position can be easily identified:
First click: the origin of the coordinate system (red triangle)
Second click: defines the primary axis from the origin to this point (blue triangle)
Third click: defines the direction of the secondary axis, depending on which side of the primary axis this point lies (green triangle)
Use the mouse wheel to zoom into the keyframes in order to have the triangle point to the location with high precision
Do the same thing in multiple keyframes. These keyframes must have a significant difference in perspective to one another. The position of each point has to be defined in at least two different keyframes
Increase the precision of the tracking
by refining the coordinates in more than two keyframes
by refining the coordinates in keyframes which have significant difference in camera position / perspective.
5. Define primary axis and secondary axis.
6. Define the scale by inserting the actual distance between the first two points in meters.
As in the previous chapter, the larger dimensions of the environment have to be considered when using an aerial camera. While in a studio it might be sufficient for the three coordinate points to have a distance of 2 meters to one another, this would not result in a good precision when tracking with a drone in a stadium. Larger distances between the points usually result in a greater precision of the tracking. In a stadium for example the corners of the outer lines of the field might be a good option. This would also have the benefit of making the determination of the correct scale easy.
7. Control the precision by checking the resulting grid. The red line indicates the X-axis, the blue line the Y-axis and the yellow line the Z-axis.
8. Close the settings window and click on Save Reconstruction to save the point cloud together with the refined coordinates in one new Reconstruction. The Save Reconstruction button will always save the current point cloud and its transformation into a new Reconstruction, so an already existing Reconstruction will never be overwritten.
When using camera tracking outdoors it can make sense to create multiple reconstruction of the same area for different day times or for different lighting or weather situations. Day time and night time make for a big difference in the feature point detection but also the change between cloudy and sunny weather or the change of the direction of the sunlight between morning and afternoon require to have multiple reconstructions. Once they have been created and saved they can easily be switched by clicking on Load Reconstruction.
4.3 Setup after Reconstruction
As soon as there are blue areas in the Worker video, positional and orientational tracking data are being calculated and are available to be sent to the graphics engine. This can be done in the Chief window in the Sender tab. The IP and the Port where the tracking data are wished to be sent to have to be defined with Host and Port. The Options for data format have to be selected depending on your graphic engine vendor.
In the Setup menu of the Chief window the amount of Senders can be chosen.
4.3.2 Graphic Engine
After the tracking data are being received in the graphic engine, create a 3D object and place it in the scene. In this example an angle and the location need to be adjusted in order to align the Logo with the building.
The tracking delay can be adjusted when the graphic engine can output a rendered image that contains a virtual object and the video. The delay setting is in the Chief window in the Delay tab. The value must not be set below 40ms. This is the minimum time needed for the software to calculate the tracking data.
The Send Delay which is used in other Pixotope Tracking is not necessary in the Fly mode, because it is mainly for synchronizing Chief and Worker video.
Fly uses solely the video to calculate the tracking data. Unlike the other camera tracking versions there is no additional motion sensor (IMU) being used. For stability and noise reduction it is therefore necessary to apply a smoothing filter to the tracking data. The Smoothing tab can be found in the Worker settings when activating Show Expert Settings.
Error tolerance defines the amount of smoothing applied. It should be between 0 and 0.03. The lower this value is the less smoothing is applied.
Velocity update increases the effect of the smoothing filter. It should be between 0.3 and 1 and as high as possible.
A smoothing filter results in an effect that looks similar to a wrong delay. To minimize this effect first try increasing the Velocity update closer to 1 and if necessary lowering the Error tolerance. Check with the graphic engines output to find the optimal values for the project.
A good reconstruction and lens file can allow the usage of only a minimal smoothing filter, for example an Error tolerance of 0.005 and a Velocity update of 1.00.
In the Relocator tab the position and orientation of the entire coordinate system as a whole can be changed. Type in positional values in meters. Pan, Tilt and Roll are considered in degrees and looking along the secondary axis. The Relocator applies when the Active check box is checked.
This tab is used in other applications for the Offset between Chief and Worker camera. In Fly the values should be all 0. The Lens Delay can be ignored.
5 Drone Operation
Some best practices for working with an aerial camera have been observed:
Direct voice connection with the drone operator is very helpful during the flight.
Keep in mind that the drone operator is most likely not seeing the tracking interface.
Stay ready to add keyframes manually. This might be needed in tricky areas, for example when flying close to a certain area or object.
Since the flight time of a drone is limited and productions can be busy it can make sense to record a video of a flight and play it back to the tracking engine to have more time for testing.