Thanks. That helped. There is a little burst of trigger pulses between picam2.start() and picam2.stop(). In part, I can reduce these by setting a long framerate value, but I am not sure it is an elegant solution.
Ultimately, I would like to capture individual images at a reasonable rate (say, 30 images per second) but correlate those images with the externally triggered hardware. For example, trigger red light and record 'red' image; next trigger blue light and record 'blue' image; and so forth with a code that looks something like
I can see that using XVS pin might not be the way to go to do this (as I might need a short delay between trigger and capture to allow hardware to respond) so I will investigate alternatives.
Ultimately, I would like to capture individual images at a reasonable rate (say, 30 images per second) but correlate those images with the externally triggered hardware. For example, trigger red light and record 'red' image; next trigger blue light and record 'blue' image; and so forth with a code that looks something like
Code:
for i in range(30):picam2.capture_file(f"{i}.jpg") # XVS triggers hardware and records resulting image to filetime.sleep(0.03) # rough 30 images per second (assuming no internal delays)
Statistics: Posted by dwh — Wed Aug 21, 2024 4:06 pm