Using Gstreamer pipelines in OpenCV to extract better performance from the Google Coral Camera on NavQ

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using Gstreamer pipelines in OpenCV to extract better performance from the Google Coral Camera on NavQ

1,620 Views
Landon_Haugh
NXP Employee
NXP Employee

Typically, with OpenCV, users will find that many guides use the following line of code to open the camera with OpenCV:

cap = cv2.VideoCapture(0)

With NavQ, you can get better performance using the following:

cap = cv2.VideoCapture('v4l2src ! video/x-raw,width=640,height=480 ! decodebin ! videoconvert ! appsink', cv2.CAP_GSTREAMER)

This will be able to pull frames from the camera at about 15fps. We are trying to find a way to extract higher frame-rates from the NavQ's camera. If any of you in the community find a better way, be sure to let us know here!

0 Replies