This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Example code for displaying gstreamer video from the CSI port of the Nvidia Jetson in OpenCV. | |
Created by Peter Moran on 7/29/17. | |
https://gist.github.com/peter-moran/742998d893cd013edf6d0c86cc86ff7f | |
*/ | |
#include <opencv2/opencv.hpp> | |
std::string get_tegra_pipeline(int width, int height, int fps) { | |
return "nvcamerasrc ! video/x-raw(memory:NVMM), width=(int)" + std::to_string(width) + ", height=(int)" + |