Skip to content

Instantly share code, notes, and snippets.

cebenestelli

Block or report user

Report or block cebenestelli

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@peter-moran
peter-moran / gstreamer_view.cpp
Last active Jul 6, 2018
Bare-bones C++ script for viewing gstreamer video from the CSI port of the Nvidia Jetson TX2.
View gstreamer_view.cpp
/*
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)" +
You can’t perform that action at this time.