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.
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