Skip to content

Add preventive codes when there is a camera connection issue #129

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

Merged
merged 1 commit into from
Mar 5, 2025

Conversation

hannalee2
Copy link
Collaborator

Just in case the camera does not respond, modify the lines below:

  1. Add a try-except block around image = self.camera.GetNextImage(1000).

  2. Remove while image.IsIncomplete(): time.sleep(0.001).

Referenced from the Spinnaker Programmer's Guide.
image

@hannalee2 hannalee2 merged commit dfa5571 into main Mar 5, 2025
2 checks passed
@hannalee2 hannalee2 deleted the bugfix/camera_connection branch April 3, 2025 16:33
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