alliedvision / VimbaPython

Old Allied Vision Vimba Python API. The successor to this API is VmbPy
BSD 2-Clause "Simplified" License
93 stars 40 forks source link

Short exposure times - timeout error #109

Closed ghost closed 2 years ago

ghost commented 2 years ago

Hi,

I am using an Allied Vision Manta G-1620C camera with Vimba Python

Tryiing to use exposure times of below 750x10-6 s via cam.ExposureTimeAbs.set() causes a timeout error. More specifically:

vimba.error.VimbaTimeout: Frame capturing on Camera 'DEV_000F314F2D30' timed out

Is this is a VimbaPython issue?

Thank you

arunprakash-avt commented 2 years ago

With respect to the above issue , I will also like to know which acquisition technique you are using?

ghost commented 2 years ago

Hi,

The acquisition technique is based on the example from page 4 of the VimbaPython manual, ie:

import cv2 from vimba import *

with Vimba.get_instance() as vimba: cams = vimba.get_all_cameras() with cams[0] as cam: cam.ExposureTimeAbs.set(30000) frame = cam.get_frame() frame.convert_pixel_format(PixelFormat.Mono8) cv2.imwrite('frame.jpg', frame.as_opencv_image())

arunprakash-avt commented 2 years ago

The get_frame is a synchronous grab method. Which comes with a default Timeout. This value should be increased if the camera exposuretime or readtime is higher. This can be set as follows frame = cam.get_frame(timeout_ms=3000) # default timeout_ms=2000

ghost commented 2 years ago

Thank you