New to Jetson Nano, running the latest flash image.
I am following Paul McWhorter’s excellent youtube course, but run into a problem with the RPi Camera v2 where the image is extremely noisy. (Did try a second camera to see if the camera is at fault, but same result.)
Below code gives me this error:
[ WARN:0] global /home/nvidia/host/build_opencv/nv_opencv/modules/videoio/src/cap_gstreamer.cpp (933) open OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1
The camera also doesn’t show up in the Cheese app.
EDIT: Just noticed on the camera board it is a v2.1. Perhaps that is related to the problem?
Any ideas?
Thanks
This is the code I use:
import cv2
print(cv2.__version__)
dispW=640
dispH=480
flip=2
camSet='nvarguscamerasrc ! video/x-raw(memory:NVMM), width=3264, height=2464, format=NV12, framerate=21/1 ! nvvidconv flip-method='+str(flip)+' ! video/x-raw, width='+str(dispW)+', height='+str(dispH)+', format=BGRx ! videoconvert ! video/x-raw, format=BGR ! appsink'
cam=cv2.VideoCapture(camSet)
while True:
ret, frame=cam.read()
cv2.imshow('win',frame)
if cv2.waitKey(1)==ord('q'):
break
cam.release()
cv2.destroyAllWindows()