Skip to content

Conversation

as-jackson
Copy link

When the input for video device is a 2-digit number, the program failed to open the correct video capture device. This commit fixes the issue by properly handling 1-digit and 2-digit device indices using atoi() to convert them to integers, and ensures the video file path is used correctly when the input is not a number.

Tested with both video device indices and file paths to ensure proper functionality.

Testing the ArmSoM-Sige7 device

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