Gaebobman / Face_Recognition

Face recognition for jetson Nano
0 stars 0 forks source link

cv2.VideoCapture(0) doesn't work on Jetson Nano #2

Closed Gaebobman closed 1 year ago

Gaebobman commented 1 year ago

Then replace cv2.VideoCapture with a code below

cv2.VideoCapture('nvarguscamerasrc ! video/x-raw(memory:NVMM), 
    width=640, height=480, format=(string)NV12, framerate=(fraction)20/1 ! nvvidconv ! video/x-raw, 
    format=(string)BGRx ! videoconvert ! video/x-raw, format=(string)BGR ! appsink' , cv2.CAP_GSTREAMER)