Skip to content

Instantly share code, notes, and snippets.

View johnnylord's full-sized avatar
:octocat:
Believe yourself

johnnylord johnnylord

:octocat:
Believe yourself
View GitHub Profile
import time
import cv2
pipeline = (
"nvarguscamerasrc ! "
"video/x-raw(memory:NVMM), "
"width=(int)1920, height=(int)1080, "
"format=(string)NV12, framerate=(fraction)30/1 ! "
"queue ! "
"nvvidconv ! "
@johnnylord
johnnylord / downloader.c
Last active December 21, 2020 21:51
Using libcurl to download remote file in C
#include <stdio.h>
#include <curl/curl.h>
int main(int argc, char **argv)
{
CURL *curl;
FILE *fp;
int result;
// Output file