cameralink.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:PPPLCalibrationFramework 作者: timothyhollabaugh 项目源码 文件源码
def init(self):
        """
        Does one time initing of the dll
        """
        self._background = np.zeros(dtype=ctypes.c_uint16, shape=(512, 640))
        self._clib = ctypes.cdll.LoadLibrary('pdvlib.dll')
        self._pdv = self._clib.pdv_open(b'pdv', 0)
        self._clib.pdv_multibuf(self._pdv, 4)

        self._clib.pdv_wait_image.restype = np.ctypeslib.ndpointer(
            dtype=ctypes.c_uint16, shape=(512, 1280))
        self._clib.pdv_image.restype = np.ctypeslib.ndpointer(
            dtype=ctypes.c_uint16, shape=(512, 1280))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号