Skip to content

Commit d39b81a

Browse files
committed
Clarify macOS shortcut behavior for ROI calibration
1 parent 2839309 commit d39b81a

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ If YAML is wrong, loader returns explicit errors. Common examples:
7575
- `lanes[0].px_to_meter must be > 0`
7676

7777
### Key input notes (OpenCV windows)
78-
- macOS: use single keys (`u/z/n/r/s`, `Enter`, `ESC`) instead of modifier combos.
78+
- macOS: try single keys first (`u/z/n/r/s`, `Enter`, `ESC`). If your setup only captures shortcuts with `Cmd`, use `Cmd+u/z/n/r/s`.
7979
- Windows/Linux: make sure the OpenCV window is focused before typing shortcuts.
8080

8181
### Docs

app/calibrate/roi.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,10 @@ def main() -> None:
283283
step_colors = build_step_colors(labels)
284284

285285
print("Point order guidance: click points clockwise around each polygon.")
286-
print("Mac shortcut tip: OpenCV windows reliably support single keys (u/z/n/r/s).")
286+
print(
287+
"Mac shortcut tip: try single keys first (u/z/n/r/s). "
288+
"If not captured, use Cmd+u/z/n/r/s."
289+
)
287290

288291
capture = open_video_source(args.video)
289292
if capture is None or not capture.isOpened():

docs/02_calibration.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ Point direction recommendation:
3030
- Click points clockwise for every polygon (`view`, `calibration`, and each lane).
3131

3232
Mac note:
33-
- In OpenCV windows, modifier shortcuts (for example `Cmd+Z`) are not always captured consistently.
34-
- Use single-key shortcuts above for stable behavior.
33+
- Try single-key shortcuts first.
34+
- On some macOS environments, key input is only detected with `Cmd` pressed.
35+
- If single keys do not work, use `Cmd+u/z/n/r/s`.
3536

3637
## Scale calibration (`px_to_meter`)
3738
Each lane needs `px_to_meter = meters / pixels`.

0 commit comments

Comments
 (0)