Skip to content

Detecting when webcam was unplugged #10

@Boscop

Description

@Boscop

How can I detect when the webcam was unplugged?

In my loop I could check if countCaptureDevices() changed from last frame, and if it did, I can check if the currently opened cam is still in the list of connected ones, but is there a better way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions