Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Krissy93 opened this issue May 14, 2024 · 1 comment
Open

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

Krissy93 opened this issue May 14, 2024 · 1 comment

Comments

@Krissy93
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants