Skip to content

Conversation

@anuragnayak01
Copy link

  • Added initialize_camera() function with error handling
  • Fixed camera validation order (check before reading frames)
  • Added support for multiple camera indices (0,1,2,-1)
  • Added runtime camera disconnection recovery
  • Resolves issue cv2.VideoCapture(0) fails if built in camera is not working #75 where cv2.VideoCapture(0) crashes on camera failure

- Added initialize_camera() function with error handling
- Fixed camera validation order (check before reading frames)
- Added support for multiple camera indices (0,1,2,-1)
- Added runtime camera disconnection recovery
- Resolves issue Gagandeep-2003#75 where cv2.VideoCapture(0) crashes on camera failure
@github-actions
Copy link

Thanks for creating a PR for your Issue! ☺️

We'll review it as soon as possible.
In the meantime, please double-check the file changes and ensure that all commits are accurate.

If there are any unresolved review comments, feel free to resolve them. 🙌🏼

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.

1 participant