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/auto-calibration.md
+27-17Lines changed: 27 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ last_modified_date: 2025-01-04
11
11
12
12
# Auto-Calibration
13
13
14
-
Auto-calibration is the recommended way to calibrate PiTrac cameras. It automatically determines focal lengths and camera angles through a 4-step web wizard - no tape measures, no manual JSON editing, no shell scripts.
14
+
Auto-calibration is the recommended way to calibrate PiTrac cameras. It automatically determines focal lengths and camera angles through a 4-step web wizard - no tape measures, no manual JSON editing, no shell scripts. These measurements are used by PiTrac during operation to determine the location of the ball in real space relative to the unit.
15
15
16
16
## What Auto-Calibration Does
17
17
@@ -28,13 +28,13 @@ Auto-calibration is the recommended way to calibrate PiTrac cameras. It automati
28
28
29
29
## Physical Setup
30
30
31
-
Before you can run auto-calibration in the web UI, you need a calibration rig with golf balls at known positions.
31
+
Before you can run auto-calibration in the web UI, you need a calibration rig to hold golf balls at known positions.
The rig works with both V1.0 and V2.0 enclosures. Only difference is the measurement values you'll configure.
37
+
The rig works with both V1.0 and V2.0 enclosures, though V1 is not as well-supported and may need custom measurements (ask on Discord). Only difference is the measurement values you'll configure.
38
38
39
39
**Print Settings**:
40
40
- Material: PETG preferred (less warping), PLA works fine
@@ -43,17 +43,22 @@ The rig works with both V1.0 and V2.0 enclosures. Only difference is the measure
43
43
- Filament: < 100 grams
44
44
45
45
**Assembly**:
46
+
- The assembly process will depend on whether your PiTrac has both cameras pointed straight forward, or if Camera 1 (the "Teed Ball Camera") is angled over to the side to accomodate faster shots.
47
+
- The skewed version looks like this:
48
+
-[Skewed Camera Calibration Rig]({{ '/assets/images/enclosure_assembly/Autocalibration_Skewed_Cam1_Option.jpeg' | relative_url }}){: width="300"}
49
+
- The cameras-straight-out version replaces the long arm with two short pieces and looks like this:
50
+
-[Straight-out Camera Calibration Rig]({{ '/assets/images/enclosure_assembly/Autocalibration_Straight-Out_Option.jpeg' | relative_url }}){: width="300"}
46
51
- Push pieces together snugly (can be tight - that's normal)
47
52
- Make sure connections are fully seated for accurate dimensions
48
-
- Ball 1 (right-most) sits on floor, Ball 2 (mid-air)
53
+
- Ball 1 (right-most) sits on floor, Ball 2 (mid-air). NOTE - only place one ball at a time during calibration or the system will get confused.
49
54
50
55
### 2. Position the Rig
51
56
52
57
**Version 2.0 Enclosure**:
53
-
- Insert tab into square hole in bottom front of enclosure
54
-
- Check that rig is square to the enclosure
58
+
- Insert the square tab into the square hole in bottom front of enclosure. You may need to nudge the LED light strip to get at the hole.
59
+
- Check that rig is square to the enclosure and that the arm for the ball on the floor is 90° to the other leg. Also ensure the ball in the air is held straight up.
55
60
56
-
**Version 1.0 Enclosure**:
61
+
**Version 1.0 Enclosure (Deprecated)**:
57
62
- Center tab underneath lowest camera
58
63
- Place tab on diagonal part of enclosure
59
64
- Align end edge of rear part with outside of lower enclosure section
@@ -63,9 +68,8 @@ The rig works with both V1.0 and V2.0 enclosures. Only difference is the measure
63
68
### 3. Aim the Cameras
64
69
65
70
**Camera 1** (Tee Camera):
66
-
- Point directly at Ball 1 (on floor)
67
-
- Doesn't need to be perfect - calibration figures out exact angle
68
-
- Just get it close
71
+
- Point directly at Ball 1 (on floor). For straight-out camera, then move the camera slightly so it is still aimed down, but is aimed straight out along the leg of the rig that attachs to the PiTrac.
72
+
- Doesn't need to be perfect - calibration figures out exact angle. Just get it close.
69
73
70
74
**Camera 2** (Flight Camera):
71
75
- Point straight out from monitor
@@ -76,7 +80,9 @@ The rig works with both V1.0 and V2.0 enclosures. Only difference is the measure
76
80
77
81
### 4. Configure Ball Positions
78
82
79
-
The calibration wizard needs to know where the balls are relative to the cameras. These measurements are in the Configuration page under "Calibration" settings.
83
+
The calibration wizard needs to know where the balls are relative to the cameras. These measurements (for each of the "standard" rig setups) are already store in the system settings for each camera, and can be selected (or modified) in the Configuration page under "Calibration" settings.
84
+
85
+
Use the UI to select one of the three calibration rig options:
80
86
81
87
**For Version 1.0 Enclosure** (with standard rig):
82
88
@@ -108,14 +114,16 @@ If you built your own rig, measure from camera lens center to ball center and en
108
114
109
115
### Step 1: Open Calibration Wizard
110
116
111
-
1. Navigate to web dashboard (usually `http://raspberrypi.local:8080`)
112
-
2. Click menu (3 dots) → **Calibration**
113
-
3. Select which camera(s) to calibrate:
117
+
1. Select the type of calibration rig you will be using (depending on the camera arrangement and enclosure version) in Configuration → Calibration → kCalibrationRigType:
0 commit comments