basler / pypylon

The official python wrapper for the pylon Camera Software Suite
http://www.baslerweb.com
BSD 3-Clause "New" or "Revised" License
567 stars 207 forks source link

How to grab image from multiple cameras un-synchronously #420

Open ababayi opened 3 years ago

ababayi commented 3 years ago

Hello, I have to Basler ace camera and I want to use image feedback of these two cameras for scanning a custom fluid in a tube,

I need to do this process in a loop: step 1- Camera 1 capture an image => save image as cam1-img1.png step 2- Delay (for example 0.05 seconds) step 3- Camera 2 capture an image => save image as cam2-img1.png .... and again

How can I perform this program?

SMA2016a commented 3 years ago

For managing multiple cameras, refer to the sample code: https://github.com/basler/pypylon/blob/master/samples/grabmultiplecameras.py

prepare the for software trigger and execute the software command to specific camera and call retriebresult.

ababayi commented 2 years ago

Thank you for your help. I see that!