Skip to main content
Skip table of contents

Calibration

Any change of position or orientation as well as zoom, focus or aperture of the TalenTrack cameras makes a new calibration necessary!

1 Distortion and Offset

  1. Start the TalenTrack Calibration

  2. Place the board in the tracking area

calib1jpg2.jpg

Illustration 1: TalenTrack Calibration GUI

The Detection tab includes further settings regarding the pattern detection. However, these are advanced settings where the default values should work fine. Creating a good overall brightness inside the studio or with the camera settings should be the first approach. If the software still struggles to recognize the pattern, change Detector Output to binary and try adjusting the Segmentation threshold.

  1. Click Start Autosampling

  2. Start moving the calibration board while trying to keep it detected in as many cameras as possible. The software will take Samples automatically when the board is in a new position, indicated by a green frame appearing around the videos

calib2jpg.jpg

Illustration 2: Samples are automatically taken when the board is recognized in a new position

calib5jpg.jpg

Illustration 3: A sufficient amount of Samples

  1. Control the Samples taken, indicated by blue dots. The following requirements should be met:

    • The area covered with dots should be at least 25% of the image

    • Dots should cover the area between the center of the image and at least one of the corners of the image (see Illustration 3)

  1. Click Stop Autosampling

  2. Click Run Calibration

  3. After the calibration is finished deactivate Visualize Samples and activate Visualize Distortion

calib7jpg.jpg

Illustration 4: A good calibration result

  1. Control the Distortion grids that are shown in the videos:

    1. The grids should appear centered in the image and not like Illustration 5

    2. The distortion should seem realistic in relation to the focal length of the length of the lens. A wider focal length causes a stronger distortion

    3. The grids should not dissolve as visible in Illustration 6 in the grids corners

    4. All circles on the calibration board should appear green

calib13jpg1.jpg

Illustration 5: Grid indicating a bad calibration

calib14jpg.jpg

Illustration 6: Grid indicating a bad calibration

  1. Control the Info section on the left side

    1. The number of Iterations is depended of the amount of Samples taken. It must be below 500

    2. The RMSE is an average calculation error. It should be below 0.5

    3. Status should say Converged

 

Infosection.jpg

Illustration 7: Info section

 

  1. If the distortion grid of one camera is unsatisfying, try lifting the calibration board up and taking some more samples with the board closer to that camera and running the calibration again

  2. If unsatisfied with the result, you can also click Clear Samples and try the process from the beginning, but covering more area of the videos

2 Coordinate System

Three points must be defined in the studio to create the 3D coordinate system. Ideally the zero plane is the floor. The TalenTrack coordinate system should match the one from the camera tracking system used.

The three points (Origin, Primary, Secondary) are set with the calibration board. They are set while the board is recognized in the images in the calibration window.

  • when Set Origin is clicked, the three points to define the coordinate system are taken from the corners of the calibration board. The lower left one will be the origin, the lower right one the primary axis and the upper left one the secondary axis. The tertiary axis results according to the “right-hand-system” (see 4.2 Worker manual). With this function the entire coordinate system including the scale can be set with one click. It only requires the calibration board to be placed and oriented correctly

  • when clicking Set Primary or Add Secondary, these points will be set wherever the lower left corner of the board is at that moment and replace the respective points taken when the origin was taken. The advantages of setting Primary and Secondary points like this are:

    • greater distances between the points can be achieved, meaning higher precision

    • multiple Secondary points can be added, meaning higher precision

    • negative directions of the axes can be used for defining the orientation

board_coordinates.jpg

Illustration 8: Axes defined by the calibration board when only clicking Set Origin

  • Target Height offsets the points along the tertiary (blue) axis. The board is 2cm thick, so the default value of 0.02m will set the points at the rear corner of the board. For example if the board lies flat on the ground a value of 0.02m will set the origin onto the floor

  • The scale will be set automatically with the board when clicking Set Origin. It can be set manually with Manual Scaling after setting the primary axis point. The value then represents the distance between the origin and the primary axis point

With a greater distance between the points, a higher precision can be achieved for the coordinate system!

  1. Measure the calibration boards height from the ground. In our example the calibration board has wheels underneath to be moved around more easily in the studio

  2. Type the value into the Target Height field

heightmeasure.jpg

Illustration 9: Measure the targets height from the floor

  1. Place the lower left corner of the board above the desired studio origin and click Set Origin

origin_placement.jpg

Illustration 10: The coordinates will be set at the corner of the board lowered by the Target Height

  1. Activate Visualize Coordinate System

calib10jpg.jpg

Illustration 11: Setting the origin point (yellow cross)

  1. Control the grids position

To increase the precision, we will set all three points in this example.

  1. Place the lower left corner of the board over the desired primary axis point and click Set Primary

calib11jpg.jpg

Illustration 12: Setting the primary axis point (red cross)

  1. Control the grids updated position

  2. Place the lower left corner of the board over a secondary axis point and click Add Secondary. The secondary axis point should be as far away from the primary axis as possible

calib12jpg.jpg

Illustration 13: Setting the secondary axis point (green cross) at the wall

  1. Control the grids updated position

  2. Optionally: add more secondary axis points to potentially increase the precision

  3. Optionally: set the Manual Scaling with the measured distance between origin and primary axis point

  4. Click Save

The calibration is saved in the folder /home/tracking/pxTalenTrack/calibration/. If you want to backup a calibration, duplicate this folder and rename it.

  1. Optionally: the orientation and position of the coordinate system can later be modified in the TalenTrack Server window under Preferences and Transformation

traffo.jpg

Illustration 14: Modifying the coordinate system in the Transformation Editor

3 Masks

Masks enable the user to define exactly in what area tracking and image analysis takes place. This is optional but can be useful in case any of the TalenTrack cameras is pointing in a direction where persons are that are not supposed to be tracked, like operators.

There are two methods of masking:

  • Volumetric masks define the 3D space in the studio in which a recognized person is given an ID and tracked with 3D data. Persons standing in the camera view but outside the volumetric mask are still detected but no 3D data is calculated

  • 2D masks define the part of the TalenTrack cameras frames where image analysis is applied. A person standing in the field of view of the camera but in a masked out part of the image will not be detected

3.1 3D Masks

  1. Go to the Masking tab in the Calibration window

  2. Click on New Box to create a new volumetric mask

  3. Define the Size of the mask and move it with Anchor Position in the right position in relation to the studio origin

  4. Angles of the mask can be adjusted with Orientation

If a corner point of the mask lies behind the camera, the mask will not be displayed in the video.

TT_3dmask_2.jpg

Illustration 15: A volumetric mask defining the active tracking area

3.2 2D Masks

  1. Double-click on a video in the Calibration window in the Masking tab

  2. Use the courser as a brush to mask out parts of the area with the left mouse button. Masked out areas are colored in red

  3. The right mouse button removes the mask in the same way

  4. When finished click on Set mask

TT_2dmask.jpg

Illustration 16: A 2D mask defining the part of the image used for image analysis

TT_masks_result.jpg

Illustration 17: Body parts or persons inside a 2D mask area are not detected

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.