Source code for pymanip.video.pco

"""PCO module (:mod:`pymanip.video.pco`)
========================================

This module is a shortcut for the :class:`pymanip.video.pco.camera.PCO_Camera`
class. It also defines utility functions for PCO camera.

.. autofunction:: PCO_read_binary_file

.. autofunction:: print_available_pco_cameras

"""

import numpy as np
from .camera import PCO_Camera
from . import pixelfly as pf


[docs]def PCO_read_binary_file(f): """This functions reads PCO binary image file. """ return np.fromfile(f, dtype="<i2").reshape((1200, 1600))