Calibration requires that the LM be turned on. When you do so, first check to make sure that the LED strobe is not on. You can tell if it is on because the LEDs will glow a dull red (even for IR LEDs, there’s a little light on the high-frequency end of the visible spectrum).
Next we will calibrate the focal length of the Flight camera by using the known diameter of a golf ball and the diameter of the ball as seen by the camera in terms of pixels.
Use the “Determine the camera’s focal length” process for Tee camera, below
Run runCam2BallCalibration.sh script and take the resulting average focal length. Make sure the ball is well lit with a good contrasting color behind it (use the preview function if necessary)
Certain types of black felt also show up black behind the ball and create great contrast.
If you get errors, such as “Attempted to draw mask area outside image”, check to ensure the golf ball is in the middle of the camera image.
Check for the images in the logging.kLinuxBaseImageLoggingDir directory. Can also try --logging_level=trace instead of info in the script.
After the final average value has been computed, you may have to hit Ctrl-C to stop the program
Also, the Calibrated focal length measurement that is output by the program should remain pretty close to the same number from measurement to measurement. So, for example (ignore the “mm”),
[2024-12-05 15:50:42.048685] (0x0000007fb6135040) [info] Calibrated focal length for distance 0.550000 and Radius: 67.788940 is 6.094049mm.