Are there existing python bindings to the FlyCapture API?

4.4k Views Asked by At

I'm trying to write some code using OpenCV. My sensor is from Point Grey Systems, and it uses the FlyCapture API to grab images. I'd like to grab those images and do some stuff in OpenCV to them, using Python. FlyCapture is all C/C++, so I'm firing up SWIG to create the bindings. Am I reinventing the wheel? Do python bindings for FlyCapture already exist somewhere that I don't know about?

3

There are 3 best solutions below

0
On BEST ANSWER

As of FlyCapture 2.11 there are official Point Grey / FLIR python wrappers. I've used the python 2.7 so far.

enter image description here

the pyflycapture2 is still available as well... just started using this wrapper last week pyflycapture2 working well so far with my FireFly MV USB

0
On

Here's a new Cython wrapper I started for the FlyCapture V1 API:

https://github.com/kbrafford/pyfly1

It also has some wx.Python demos showing it working and allowing you to assess performance.

1
On

If the Python language is your only restriction, you may use the wrappers for FlyCapture from the JavaCPP Presets by calling the appropriate functions via Jython.