Add camera-id option for stable camera selection#25
Conversation
Add support for selecting cameras by unique ID instead of index, which is more reliable when multiple cameras are connected or cameras are plugged/unplugged. - Add --camera-id / CAMERA_ID option to select camera by unique identifier - Support macOS (system_profiler), Linux (/dev/v4l/by-id/), and Windows (PowerShell) - Print camera name and unique ID when opening by index for easy discovery Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
I think I know what to change in it. |
|
@claude can you fix this PR linting error |
2 similar comments
|
@claude can you fix this PR linting error |
|
@claude can you fix this PR linting error |
|
Claude finished @haixuanTao's task in 2m 18s —— View job Fixing PR Linting Errors ✓
Fixed the following linting issues in
Changes have been committed and pushed to the --- | |
- Add proper module and function docstrings for pydocstyle compliance - Fix dictionary formatting - Split long lines to comply with line length limits - Improve string formatting for better readability Co-authored-by: Haixuan Xavier Tao <haixuanTao@users.noreply.github.com>
|
@claude can you fix this PR linting error |
|
Claude finished @haixuanTao's task in 2m 55s —— View job Fixing PR Linting Errors ✓
Fixed the following linting issues in
Changes have been committed and pushed to the --- | |
- Move json import to top-level imports for proper import ordering - Simplify ternary expression for RUNNER_CI assignment Co-authored-by: Haixuan Xavier Tao <haixuanTao@users.noreply.github.com>
|
@haixuanTao Can I do it,,,,,, |
|
Sure! @kush124k |
|
@haixuanTao Bash |
|
@kush124k Thanks! |
Summary
--camera-id/CAMERA_IDoption to select camera by unique identifier instead of indexsystem_profiler), Linux (/dev/v4l/by-id/), and Windows (PowerShellGet-PnpDevice)This makes camera selection more reliable when multiple cameras are connected or when cameras are plugged/unplugged (which can change indices).
Usage
Test plan
🤖 Generated with Claude Code