Skip to content
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

When autodetecting cameras, we print a lot of errors: #25

Open
sunildkumar opened this issue Jan 25, 2024 · 0 comments
Open

When autodetecting cameras, we print a lot of errors: #25

sunildkumar opened this issue Jan 25, 2024 · 0 comments

Comments

@sunildkumar
Copy link
Member

It appears opencv knows how many valid cameras there are. I wonder if we can use this to reduce the amount of erroring here.
At the very least we could stop after we encounter the first error.

OpenCV: out device of bound (0-1): 2
OpenCV: camera failed to properly initialize!
OpenCV: out device of bound (0-1): 3
OpenCV: camera failed to properly initialize!
OpenCV: out device of bound (0-1): 4
OpenCV: camera failed to properly initialize!
OpenCV: out device of bound (0-1): 5
OpenCV: camera failed to properly initialize!
OpenCV: out device of bound (0-1): 6
OpenCV: camera failed to properly initialize!
OpenCV: out device of bound (0-1): 7
OpenCV: camera failed to properly initialize!
OpenCV: out device of bound (0-1): 8
OpenCV: camera failed to properly initialize!
OpenCV: out device of bound (0-1): 9
OpenCV: camera failed to properly initialize!
OpenCV: out device of bound (0-1): 10
OpenCV: camera failed to properly initialize!
OpenCV: out device of bound (0-1): 11
OpenCV: camera failed to properly initialize!
OpenCV: out device of bound (0-1): 12
OpenCV: camera failed to properly initialize!
OpenCV: out device of bound (0-1): 13
OpenCV: camera failed to properly initialize!
OpenCV: out device of bound (0-1): 14
OpenCV: camera failed to properly initialize!
OpenCV: out device of bound (0-1): 15
OpenCV: camera failed to properly initialize!
OpenCV: out device of bound (0-1): 16
OpenCV: camera failed to properly initialize!
OpenCV: out device of bound (0-1): 17
OpenCV: camera failed to properly initialize!
OpenCV: out device of bound (0-1): 18
OpenCV: camera failed to properly initialize!
OpenCV: out device of bound (0-1): 19
OpenCV: camera failed to properly initialize!
Found 2 cameras. Here are the configs for each camera:
{'input_type': 'generic_usb', 'options': {}, 'name': 'GENERIC_USB Camera - 1'}
{'input_type': 'generic_usb', 'options': {}, 'name': 'GENERIC_USB Camera - 2'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant