Skip to content

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

@sunildkumar

Description

@sunildkumar

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'}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions