I connected a Rpi-camera board to the camera socket on my RPi (not a usb webcam). I have been searching the internet on how to call the camera in Python.
The camera works (raspistill
and raspivid
both work).
To be more specific, I'm using the qr-tools library and I'm trying to use the decode_webcam
function.
decode_webcam(self, callback=lambda s:None, device='/dev/video0')
When using /dev/video0
, I get errors saying the device was not found. So what do I fill in after device=
?
Thanks!