A simple but functional system that uses OpenCV to support cameras.
print(OpenCVCamera.availableCameras())
cam = OpenCVCamera(serialNumber="0") # OpenCV allows only 0,1,2 etc... no way of knowing more apparently
cam.initializeDevice()
cam.livePreview()
# or
# frames = cam.captureFrames(n=10)
cam.shutdownDevice()
A simple but functional system that uses OpenCV to support cameras.