semvec/pypi-packages huggingface dataset:
pyflycap2 0.3.1
Cython bindings for Point Gray Fly Capture 2.
License: MIT

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

.. image:: https://github.com/matham/pyflycap2/workflows/Python%20application/badge.svg
    :target: https://github.com/matham/pyflycap2/actions
    :alt: Github CI status

.. warning::

    Due to the licensing restrictions, Fly Capture dlls cannot be redistributed,
    therefore the wheels only include the compiled bindings. To use, the Fly Capture
    dlls must be provided independently, e.g. by placing them on the system PATH.

Examples
=============

Listing GigE cams:

.. code-block:: python

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


Configuring with the GUI:

.. code-block:: python

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


Reading images from a camera:

.. code-block:: python

    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()