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))
cameralink.py 文件源码
python
阅读 25
收藏 0
点赞 0
评论 0
评论列表
文章目录