Before I exit my script via a return from the main, I wish to check that the camera has completed all the script's operations.
At the moment if I call return immediately after a shoot() call, the image associated with that shoot() doesn't appear to be captured.
I can 'solve' the problem by putting a sleep(1000) between the shoot and return.
Is there a better way to detect that shoot has finished writing?