1 | initial version |
Fix action:
I created a 2nd python script that will be opened using the subprocess module, specifically the Popen() method. The second script will open the camera, take a picture, save the picture, close the camera, and free up the USB resources when the script terminates. I will be able to cycle through each camera from the first script by passing a cameraindex argument which is received as argv[1] in the second script.
Maybe this will help someone in the future.