8000 LIBCSI error and program stuck on cam.stop_acquisition() · Issue #27 · alliedvision/VmbPy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
LIBCSI error and program stuck on cam.stop_acquisition() #27
Open
@Krissy93

Description

@Krissy93

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0