Skip to content

Commit a8c6db1

Browse files
committed
Camera + Calibration Docs
1 parent 78aea3b commit a8c6db1

11 files changed

+569
-435
lines changed

docs/camera/auto-calibration.md

Lines changed: 354 additions & 127 deletions
Large diffs are not rendered by default.

docs/camera/camera-calibration.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Camera Calibration
33
layout: default
44
nav_order: 1
5-
parent: Camera
5+
parent: Cameras
66
---
77

88
# PiTrac - Camera Calibration
@@ -16,14 +16,14 @@ Camera 2 Calibration Setup:
1616
**Camera Setup & Calibration Guide**
1717

1818
{: .warning }
19-
🔧 **Difficulty:** Camera calibration is noted in the project errata as being "too difficult and takes too much time." Consider using the [Auto-Calibration]({% link camera/auto-calibration.md %}) process instead for a more streamlined experience.
19+
**Difficulty:** Camera calibration is noted in the project errata as being "too difficult and takes too much time." Consider using the [Auto-Calibration]({% link camera/auto-calibration.md %}) process instead for a more streamlined experience.
2020

2121
NOTE: As of May 6, 2025, the portion of this guide that deals with measuring the focal length and camera angles is deprecated. The focusing and de-distortion information is still correct (and necessary). However, once the cameras are focused and you have generated the de-distortion matrices and entered them into your golf_sim_config.json file, please perform the rest of the calibration by following the [Auto-Calibration Instructions]({% link camera/auto-calibration.md %}).
2222
1. Overview
2323
1. The PiTrac system needs to know the angles of the cameras and the relative distances between them in order to locate the ball in space. Camera calibration helps establish these values.
2424
2. During this calibration, various distances are measured from each camera to a test point in front of the camera. Those values are used, along with the calibration spreadsheet (which computes additional, derived values) to determine a set of calibration values. Those values are then given to the PiTrac monitor by entering them in the golf\_sim\_config.json configuration file, which PiTrac reads when it starts up.
2525

26-
📥 **[Download Calibration Spreadsheet](../assets/PiTrac-Camera-Calibration-Worksheet.xlsx)** - Excel worksheet for calibration calculations
26+
**[Download Calibration Spreadsheet](../assets/PiTrac-Camera-Calibration-Worksheet.xlsx)** - Excel worksheet for calibration calculations
2727
3. The basic idea is to center a known point in 3D space in the camera lens and then measure the distances to that point. That in turn determines the camera’s angles. This process also establishes the effective focal distance of the camera, which in turn is used to establish the distance of the ball from the cameras.
2828
4. After the marker points are used to aim the cameras, an actual golf-ball is used to calibrate focus and focal length.
2929
5. It’s best to calibrate the cameras in the environment in which you expect to use the LM.
@@ -158,7 +158,7 @@ NOTE: As of May 6, 2025, the portion of this guide that deals with measuring th
158158
10. Run the “runCam1Calibration.sh” or “runCam2Calibration.sh” script to get the focal length.
159159
1. It will take multiple measurements and average them.
160160

161-
⏱️ **Time estimate:** About 1 minute for measurement averaging
161+
**Time estimate:** About 1 minute for measurement averaging
162162
11. Set the resulting focal length into the .JSON file.
163163
1. E.g., "kCamera1FocalLength": 5.216 would be typical
164164
8. Determine the x & y (pan and tilt) camera1 angles for the configuration .JSON file
@@ -216,3 +216,19 @@ NOTE: As of May 6, 2025, the portion of this guide that deals with measuring th
216216
5. "kCamera1DistortionVector": \[ \-0.504763 0.173410 0.001554 0.000916 0.355220 \],
217217
16. Do the same for camera 1 and camera 2
218218

219+
[image1]: {{ '/assets/images/camera/image1.jpg' | relative_url }}
220+
[image2]: {{ '/assets/images/camera/image2.jpg' | relative_url }}
221+
[image3]: {{ '/assets/images/camera/image3.jpg' | relative_url }}
222+
[image4]: {{ '/assets/images/camera/image4.jpg' | relative_url }}
223+
[image5]: {{ '/assets/images/camera/image5.jpg' | relative_url }}
224+
[image6]: {{ '/assets/images/camera/image6.png' | relative_url }}
225+
[image7]: {{ '/assets/images/camera/image7.jpg' | relative_url }}
226+
[image8]: {{ '/assets/images/camera/image8.png' | relative_url }}
227+
[image9]: {{ '/assets/images/camera/image9.jpg' | relative_url }}
228+
[image10]: {{ '/assets/images/camera/image10.png' | relative_url }}
229+
[image11]: {{ '/assets/images/camera/image11.jpg' | relative_url }}
230+
[image12]: {{ '/assets/images/camera/image12.png' | relative_url }}
231+
[image13]: {{ '/assets/images/camera/image13.png' | relative_url }}
232+
[image14]: {{ '/assets/images/camera/image14.png' | relative_url }}
233+
[image15]: {{ '/assets/images/camera/image15.png' | relative_url }}
234+

docs/camera/camera_calibration.md

Lines changed: 0 additions & 38 deletions
This file was deleted.

docs/camera/camera_calibration_flight_camera.md

Lines changed: 0 additions & 43 deletions
This file was deleted.

docs/camera/camera_calibration_flight_camera_CCFL.md

Lines changed: 0 additions & 24 deletions
This file was deleted.

docs/camera/camera_calibration_flight_camera_calibration.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

docs/camera/camera_calibration_initial_setup.md

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)