jetson nano连接csi摄像头opencv读取解决绿屏

pip3 install traitlets==4.3.3

git clone https://github.com/NVIDIA-AI-IOT/jetcam
cd jetcam
sudo python3 setup.py install

from jetcam.csi_camera import CSICamera
import cv2


camera0 = CSICamera(capture_device=0, width=640 height=480)
 

while 1:
    image0 = camera0.read()
    cv2.imshow("CSI Camera0", image0)

    #image1 = camera1.read()
 

    kk=cv2.waitKey(1)
    if kk == ord('q'):
        break 
 

 参考大佬代码(19条消息) 零基础入门Jetson Nano——通过OpenCV调用CSI和USB摄像头_jetson nano调用usb摄像头_哒哒️的博客-CSDN博客

实测有效解决绿屏 

你可能感兴趣的:(opencv,人工智能,计算机视觉)