Basics¶
Installation¶
pip install dxcam_cpp
Usage¶
The interface of the Python module of DXCam_CPP is designed to be fully compatible with the original Python DXcam as an alternative.
Therefore, you can simply import this module and use it as DXcam:
import dxcam_cpp as dxcam
See the documentation of DXcam for more details.
Consuming frames from buffer¶
DXCam_CPP provides access to the frame buffer via the frame_buffer() method.
With the context manager, you can obtain a list of frames.
camera = dxcam.create(max_buffer_len=16)
camera.start()
with camera.frame_buffer() as buffer:
# Do something with the buffer
pass
camera.stop()