Open andrewyguo opened 4 days ago
Waiting for GP_EVENT_FILE_ADDED
before triggering the next exposure will almost certainly deliver less than full speed. I don't know what (if any) event tells you that the camera is ready for the next exposure, it's probably very camera dependent. Try calling camera.trigger_capture()
several times before waiting for any events. (You may need to empty the event queue by calling camera.wait_for_event(0)
repeatedly until it returns GP_EVENT_TIMEOUT
between camera.trigger_capture()
calls.)
However, I don't have a Sony camera, didn't write libgphoto2, and don't use it for capturing, so this question is better directed at the libgphoto2 mailing list.
I'm aware that there is an existing issue for this: https://github.com/jim-easterbrook/python-gphoto2/issues/123
However, I checked the related issue in the gphoto repo as well but the mentioned solution did not work for me. Currently, I have a loop where:
I am noticing that it takes around 1.2 seconds for each capture. However, my Sony A7M4 camera is set to Hi+ continuous shooting mode. When I physically hold down the shutter button, it gets 6 FPS or more.
I also tried to check for
event_type==gp.GP_EVENT_CAPTURE_COMPLETE
and it takes around the same time per shot. Is there a way to take advantage of my camera's continuous shooting mode to take faster images?