Skip to content

Search for USB cams in RoboConUSBCamera instead of just assuming /dev/video0 - #41

Open
scorbett123 wants to merge 4 commits into
systemetric:masterfrom
RoboConOxfordshire:usb_cam_fix
Open

Search for USB cams in RoboConUSBCamera instead of just assuming /dev/video0#41
scorbett123 wants to merge 4 commits into
systemetric:masterfrom
RoboConOxfordshire:usb_cam_fix

Conversation

@scorbett123

Copy link
Copy Markdown

Comment threadrobot/vision.py
Comment threadrobot/vision.py Outdated
Comment threadrobot/vision.py Outdated
Comment threadrobot/vision.py Outdated
Co-authored-by: Skyler <skyler3665@gmail.com>

@Minion3665Minion3665 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've made suggestions that together will dynamically get the number of the camera rather than needing to hardcode video0 and video1 (as well as checking for a USB camera rather than against a pi camera).

Please check them over and commit them if you feel they add value @scorbett123

Comment threadrobot/vision.py Outdated
Comment threadrobot/vision.py
scorbett123and others added 2 commits November 10, 2022 13:38
search all of /dev/videoX
Check whether a camera is a USB cam instead of not being a pi cam
Co-authored-by: Skyler <skyler3665@gmail.com>
Forgot this
Co-authored-by: Skyler <skyler3665@gmail.com>

@Minion3665Minion3665 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me and seems to work. Thank you very much!

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@scorbett123@shardros@Minion3665