Skip to content

fix: ensure Mediapipe resources are properly closed#4

Closed
Naitik120gupta wants to merge 1 commit intomainfrom
fix-unreleased-mediapipe-resources-4408111425110880048
Closed

fix: ensure Mediapipe resources are properly closed#4
Naitik120gupta wants to merge 1 commit intomainfrom
fix-unreleased-mediapipe-resources-4408111425110880048

Conversation

@Naitik120gupta
Copy link
Copy Markdown
Owner

Added controller.hands.close() in the main function cleanup. Wrapped the main loop in a try...finally block to ensure that resources (camera, OpenCV windows, and Mediapipe) are released even if an exception occurs.

Added `controller.hands.close()` in the `main` function cleanup.
Wrapped the main loop in a `try...finally` block to ensure that resources (camera, OpenCV windows, and Mediapipe) are released even if an exception occurs.

Co-authored-by: Naitik120gupta <76028128+Naitik120gupta@users.noreply.github.com>
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