/pyflycap2

Interface to FlyCapture2

Primary LanguageCythonMIT LicenseMIT

pyflycap2 has been deprecated in favor of https://github.com/matham/rotpy, which is the better interface for these Point Gray cameras.


Project that provides python bindings for the FlyCapture2 library by Point Gray.

For more information: https://matham.github.io/pyflycap2/index.html

To install: https://matham.github.io/pyflycap2/installation.html

Github CI status

Examples

Listing GigE cams:

from pyflycap2.interface import CameraContext
cc = CameraContext()
cc.rescan_bus()
print(cc.get_gige_cams())  # prints list of serial numbers.

Configuring with the GUI:

from pyflycap2.interface import GUI
gui = GUI()
gui.show_selection()

Reading images from a camera:

from pyflycap2.interface import Camera
c = Camera(serial=cam_serial)
c.connect()
c.start_capture()
c.read_next_image()
image = c.get_current_image()  # last image
c.disconnect()