Closed jturi closed 3 years ago
Just realized that you are using the inofficial pypylon. This repo is the official Basler Python Binding. Our API is very close to the Basler pylon C++ ask and has thus a complete different way of handling your high performance use case
Take a look in the samples for looped acquisition
Hi,
I hope somebody can help us with this issue.
We have two Basler acA1300-200uc cameras with 25mm lenses. We are trying to save videos with 200 FPS (608x608) in mkv format but no luck so far. We tried to save 608x608 jpg images (95 Kb) as well but the pypylon API does not support JPG or JPEG on Linux. We only had success with the pypylon/samples/save_image.py script :
Somehow it is very slow. With a USB3.0 cable and 40 MB/s write speed 200 jpg images (95 Kb each) (19 Mb total) should take 0.5 seconds. Can somebody help how to set the framerate, resolution and image/video file format and save a 1-sec long video? Or save 200 images in 1 second to a SSD drive? Also is there an option to set the capturing resolution, framerate and format?
I found a solution here: https://stackoverflow.com/questions/49782358/save-video-instead-of-saving-images-while-using-basler-camera-and-python
But the pypylon-1.4.0 library does not have a
grab_images()
function anymore.