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

How to check if camera is not busy #6

Open
grfilimonov opened this issue May 23, 2023 · 1 comment
Open

How to check if camera is not busy #6

grfilimonov opened this issue May 23, 2023 · 1 comment

Comments

@grfilimonov
Copy link

grfilimonov commented May 23, 2023

Hello,

I am working with Alvium USB3 158m connected to Jetson Xavier NX, JetPack 5.1

If my Python code crashes after I start streaming, then the green light on the camera still blinking.
If I after try to run my code again, camera doesn't work properly until I start VimbaViewerX and press Play/Stop to stop blinking.
After that I can run my code and it works properly.

How can I check before start streaming, that something is wrong with camera, and reset it?
cam.is_streaming() returns False

My code is pretty standard:

with VmbSystem.get_instance () as vmb:

with vmb.get_camera_by_id(VMBPY_DEVICE_ID) as cam:

    handler = FrameProcessor()

    try:
        cam.start_streaming(handler=handler, buffer_count=10)
        handler.shutdown_event.wait()
    finally:
        cam.stop_streaming()
@arunprakash-avt
Copy link

During openning the camera ,please check the feature AcquisitionStatus. If this value is TRUE, please create a AcquisitionStop then the camera should be working.

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