Hello. I have a Tx2 board.
These are the versions of the programs I installed.
- Tensorflow 2.3.1
- cv2 4.5.3
openCV install reference
: Install OpenCV 4.5 on Jetson Nano - Q-engineering
I am currently working on a jupyter notebook.
I am trying to start with something simple,
but the MIPI CSI camera is not recognized in the code I wrote below.
import cv2 cap = cv2.VideoCapture(0) # if cap.isOpened(): print('width : ' , cap.get(cv2.CAP_PROP_FRAME_WIDTH)) print('height : ' , cap.get(cv2.CAP_PROP_FRAME_HEIGHT)) print('fps : ' , cap.get(cv2.CAP_PROP_FPS)) while cap.isOpened(): ret, img = cap.read() if ret : cv2.imshow('Video Capture',img) key = cv2.waitKey(1) &0xFF if key ==27: #ESC break cap.release() cv2.destroyAllWindows()
Is there anything I need to install in advance through sudo to use the onboard camera? I haven’t installed anything except something about tensorflow and OpenCV and jupyter notebook.