Skip to content

cam.grab_image() is slow #14

@ZacDiggum

Description

@ZacDiggum

Hi,
I just started using my Ace 3800-14um with Python via PyPylon. I'm developing a 'real time'-ish PyQt app with a separate frame grabbing thread (basically it's just a loop). That worked fine with my old OpenCV based camera. Now I substituted all the OpenCV stuff with the corresponding PyPylon statements and it's working in principle. But frame grabbing is incredibly slow. I set exposure time to the allowed minimum of 35e-6s, bandwith limit to off and the framerate to 15. Pixel depth is Mono8 and I even decreased the resolution. I expected something around 14fps (the camera's max deliverable fps at full res) minus the time for copying to host. But I get 3 (!) fps...In PylonViewer I have 14fps at full res as should be. When I set the exposure time to 100ms I get 2fps. Images look plausible for the mentioned exposures.
Any suggestions? Some cam property to set explicitly? Is grab_frame() in a loop the wrong approach? Could you share some code that works for you when displaying live images?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions