You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/camera/camera-calibration.md
+20-4Lines changed: 20 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Camera Calibration
3
3
layout: default
4
4
nav_order: 1
5
-
parent: Camera
5
+
parent: Cameras
6
6
---
7
7
8
8
# PiTrac - Camera Calibration
@@ -16,14 +16,14 @@ Camera 2 Calibration Setup:
16
16
**Camera Setup & Calibration Guide**
17
17
18
18
{: .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.
20
20
21
21
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 %}).
22
22
1. Overview
23
23
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.
24
24
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.
25
25
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
27
27
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.
28
28
4. After the marker points are used to aim the cameras, an actual golf-ball is used to calibrate focus and focal length.
29
29
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
158
158
10. Run the “runCam1Calibration.sh” or “runCam2Calibration.sh” script to get the focal length.
159
159
1. It will take multiple measurements and average them.
160
160
161
-
⏱️ **Time estimate:** About 1 minute for measurement averaging
161
+
**Time estimate:** About 1 minute for measurement averaging
162
162
11. Set the resulting focal length into the .JSON file.
163
163
1. E.g., "kCamera1FocalLength": 5.216 would be typical
164
164
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
0 commit comments