-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search for USB cams in RoboConUSBCamera instead of just assuming /dev/video0 #41
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: Skyler <[email protected]>
There was a problem hiding this comment.
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
search all of /dev/videoX Check whether a camera is a USB cam instead of not being a pi cam Co-authored-by: Skyler <[email protected]>
Forgot this Co-authored-by: Skyler <[email protected]>
There was a problem hiding this comment.
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!
Based off of https://hydrosysblog.wordpress.com/2018/10/31/rpi-check-if-dev-videon-is-picam-or-usb-camera/