I am trying make the raspberry pi camera work with opencv

后端 未结 5 1534
闹比i
闹比i 2021-01-16 10:31

I tried making this code work with the raspberry pi cam. how do you make the cv2.VideoCapture(0) recognise the raspberry pi camera as the designated camera

         


        
5条回答
  •  庸人自扰
    2021-01-16 11:00

    You cannot use cv2.VideoCapture() for RaspiCam.

    The cv2.VideoCapture() is only for USB camera, not for CSI camera.

    If you want to use RaspiCam for capturing, you can refer this tutorial

提交回复
热议问题