-
Notifications
You must be signed in to change notification settings - Fork 83
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
fps low #123
Comments
`from time import sleep import threading def camCapture(camera):
if name == 'main':
|
I think the problem is in camCapture. |
would you mind posting your code? |
Im am working with a nvidia jetson xavier too. So the hardware should be no problem. Forfirst steps try to use the examples: streaming images: https://github.com/morefigs/pymba/blob/master/examples/camera/opencv_acquire_streaming_images.py The callback function should be fast enough for 100+ fps. At first you should try to implement it by yourself. To fix the highest framerate:
My code ist to complex for posting it here. Cause i copy the images to gpu and run a cnn. |
I tried your suggestion but I am getting ` But even if I did have access, it wouldn't matter as those values are already at "basic" and max_fps by default (I printed them out). Increasing the exposure time makes the fps go down, but lowering the exposure time didnt help much with the fps in my case. |
in my implementation of _display_frame, I am only getting 15 fps: if name == 'main':
` |
Are you able to change the values with the VimbaViewer? you are still using: camera.arm('SingleFrame') The following example shows how to stream images: |
The problem with the Continuous mode example is that it doesn't include a line like I can somewhat change the values with the vimba viewer, though at the moment it is just giving me one frame at a time (whenever I press play). |
In https://github.com/morefigs/pymba/blob/master/examples/camera/_display_frame.py This is the line you need for processing. So you are not able to view a live stream in VimbaViewer? |
I tried grabbing the frame using the method you suggested, then sending it over to another thread via Queue, but I am not getting anything on the other side: def camCapture(camera,imageHolder):
def camShow(imageHolder): if name == 'main':
' |
Did you resolve this problem? I am using an Alvium 1800U and have the same problem. My camera have 29 max fps but in Vimba Viewer and using python acquire image example I only get 5fps. |
When I am testing the camera (1800U500c) using the vimba viewer, I get 100+ fps for full resolution. When I test the same camera using pymba, I only get ~10 fps. I know it is not an exposure time issue as I have varied that from 40 to 40k with minimal effect on the fps. What does help with the fps is asking the camera for less pixels (e.g. 1200x1200 is returned at 30fps). Any idea how to speed up the fps?
The text was updated successfully, but these errors were encountered: