Skip to content

Check the camera is connected#2

Merged
roggedaniel merged 1 commit intotormach:mainfrom
cerna:camera_connection_checking
Jan 31, 2022
Merged

Check the camera is connected#2
roggedaniel merged 1 commit intotormach:mainfrom
cerna:camera_connection_checking

Conversation

@cerna
Copy link
Copy Markdown
Contributor

@cerna cerna commented Jan 29, 2022

In relation to discussion in Tormach Forums thread, this pull request adds simple checking of the camera connection and few helpful comments.

Targeted at users with minimal Python exposure, so minimal changes, minimal code.

OpenCV creates 'VideoCapture' object even if it cannot connect to the specified camera. That will raise an exception later on when the code tries to access it. This adds a simple check that the camera is connected and fails with notification to the user if it is not.
@roggedaniel roggedaniel merged commit ceb1537 into tormach:main Jan 31, 2022
@cerna cerna deleted the camera_connection_checking branch February 2, 2022 14:08
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

Successfully merging this pull request may close these issues.

2 participants