Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The main program relies on a (at compile-time present) transformation matrix definition which can be generated and tested with a small standalone tool. Testing requires recompilation of the tool. As there is no depth information available, points in the image that are in the same 2D position of an orthographic parallel view onto the playing field will be in different positions with the generated transformation, so this solution is certainly not exact.

Calibration

Compiling

make calibrationcalibrate

This produces a binary file calibration calibrate in the same directory.

Usage

ButtonFunction
1-4Choose the index of the point to set
tEnters a test mode, which prints clicked pixel coordinates in the world coordinate system via the configured transformation matrix in the console. This matrix must be present in the file calibration_config.h at compile time.
wGenerates and writes a transformation matrix from the four points (if all are present) into the file calibration_config.h 
qQuits the program

Reference Points

Point #Point in ImageDescription (when looking at flipper)Position in World Coordinates (Measured in meters)
1top rightTop of the left outlane detector wire-0.203, 0.106
2bottom rightHorizontal middle of the top edge of the black square on the tube shaped graphic-0.164, 0.685
3bottom leftBottom right corner of the letter 'E' trigger (right side of the ramp)0.199, 0.637
4top leftBottom of the right outlane detector wire0.200, 0.103

...

Expand
titleUncropped Image

Image Added

Expand
titleGeogebra File

View file
nameFlipper.ggb
height250

The reference points used in the calibration (see table) were empirically corrected to the left, as the coordinate system resulting from the generated transformation was slightly shifted to the right. This may have been the case because it is hard to exactly match the reference points to pixels in the image. Subsequent calibrations may yield different errors in the coordinate system.