On RaspberryPi it may take up to 5s to save an image. This may cause your application to run out of memory and cause image losses. This project demonstrates how to handle image saving in the right manner.
This guide will give you hints on how to optimize the image saving on your Raspberry Pi 3 when using the Basler pylon Camera Software Suite and multiple Basler's dart USB3.0 cameras! The instructions in this guide may help you optimize your setup image acquistion process and prevent your application from running out of memory and loss image data.
Note: as image data is saved on the SD card, this may take up to 5 seconds for a single image to be saved. When working with multiple cameras this may become a huge issue. Read further to get that fixed on your Raspberry Pi 3.
#sudo apt-get update
#sudo apt-get dist-upgrade
#sudo apt-get install -y cmake
#sudo apt-get install -y libopencv-dev
#sudo apt-get install -y libboost-all-dev
Pylon contains all the software we need for interacting with Basler cameras. Builds are provided for multiple platforms. This guide assumes that you are using the Basler pylon for Linux for ARM hardfloat version 126.96.36.19900-armhf or newer.
INSTALL file. Do not attempt to run the pylon viewer as it is not bundled with ARM releases
Samples/Grab directory and execute
make, then run
./Grab, you should see some text scrolling with information about pictures being grabbed
Download the sample project and give it a try now!
The images will be saved by default under:
PS: do not forget this is a sample private project without any warranty.