I bought a CSI camera, IMX219, for my OpenCV project.
When I run the below command, there seems to be no delay at all in showing the frames in realtime.
$ nvgstcapture-1.0 -m 2 --prev-res 4
However, when I run my simple python code using the below pipleline, capturing is significantly slow,
pipeline = 'nvarguscamerasrc ! video/x-raw(memory:NVMM), width=1920, height=1080, format=NV12, framerate=30/1 ! nvvidconv flip-method=0 ! video/x-raw, width=1920, height=1080, format=BGRx ! videoconvert ! video/x-raw, format=BGR ! appsink'
cap = cv2.VideoCapture(pipeline, cv2.CAP_GSTREAMER)
What should I do if I need 1920x1080, 30fps VideoCapture() in Opencv?
Appreciate your help!