Configure capture and processor backends
mainDXcam uses a two-stage pipeline: a Capture Backend to acquire the frame and a Processor Backend to handle color conversion and cropping.
Capture Backends
dxgi(default): Desktop Duplication API. Best for most workloads and one-shot grabs.winrt: Windows Graphics Capture. Use this if you need to render the mouse cursor.
Processor Backends
cv2(default): Uses OpenCV for color conversion. Recommended if OpenCV is installed.numpy: Uses compiled Cython kernels. Best for lean installations without OpenCV.
Example Configuration:
# Using WinRT and NumPy
camera = dxcam.create(backend="winrt", processor_backend="numpy")