alliedvision / VmbPy

Python API of the Vimba X SDK
BSD 2-Clause "Simplified" License
21 stars 8 forks source link

LIBCSI error and program stuck on cam.stop_acquisition() #27

Open Krissy93 opened 4 months ago

Krissy93 commented 4 months ago

Hello. I am currently running Vimba Python on a Jetson TX2. I followed installation instructions, however when I run examples or custom code the same error periodically appears in the terminal:

LIBCSI: 15:10:20.473372 L:06002 P:13737 T:13741   WARNING: Failed to retrieve driver version.
LIBCSI: 15:10:20.475013 L:01799 P:13737 T:13741  libcsi_get_info ERROR: read_sysfs failed.

Second question is related to asynchronous acquisition. I'm trying to run the opencv example with a bit of extra code in which I'm changing the exposure time to a fixed value set by the user. However, when I add this code the program gets stuck on cam.stop_acquisition() and doesn't exit. Is there a way to fix it?

This is the function I've edited:

def setup_camera(cam: Camera):
    with cam:
        # Enable auto exposure time setting if camera supports it
        try:
            cam.ExposureAuto.set('Off')
            cam.ExposureMode.set('Timed')
            print('Auto Exposure OFF')    
            cam.ExposureTime.set(2000)
            print('Setting Exposure Time to 2000 micro sec')
        except (AttributeError, VmbFeatureError):
            pass

        # Enable white balancing if camera supports it
        try:
            print('Auto White Balance OFF')
            cam.BalanceWhiteAuto.set('Off')
        except (AttributeError, VmbFeatureError):
            pass

        # Try to adjust GeV packet size.
        try:
            stream = cam.get_streams()[0]
            stream.GVSPAdjustPacketSize.run()
            while not stream.GVSPAdjustPacketSize.is_done():
                pass
        except (AttributeError, VmbFeatureError):
            pass
arunprakash-avt commented 2 months ago

I would like to know which Driver version is installed on the TX2 or which jetpack version is installed?