安裝traitlets
首先記得查看自己的python版本,以python3.7為分界線,
python3.7以下用traitlets 4.x;
pip3 install traitlets==4.3.3
python3.7以上才可以用traitlets 5.x
pip3 install traitlets
traitlets的歷史版本https://pypi.org/project/traitlets/#history
安裝Jetcam
參考官方github的內容https://github.com/NVIDIA-AI-IOT/jetcam
git clone https://github.com/NVIDIA-AI-IOT/jetcam
cd jetcam
sudo python3 setup.py install
使用CSI攝像頭
參考官方的內容
from jetcam.csi_camera import CSICamera
camera = CSICamera(capture_device=0, width=224, height=224)
frame = camera.read()
這個變數frame便可以送入opencv進行運算處理了,capture_device不一定等于0,根據你的連接攝像頭的埠來,
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/263010.html
標籤:其他
