Skip to content

Instantly share code, notes, and snippets.

View benoxoft's full-sized avatar
:shipit:
getting things done

Benoit Paquet benoxoft

:shipit:
getting things done
View GitHub Profile
@benoxoft
benoxoft / Kgxj-1.cpp
Created September 5, 2017 02:28
null created by benoxoft - https://repl.it/Kgxj/1
#include <iostream>
using namespace std;
class Widget {
public:
Widget(int i, bool b); // ctors not declaring
Widget(int i, double d); // std::initializer_list params
};
Widget::Widget(int i, bool b) {
import cv2
import cv2.cv as cv
import sys
#python capture.py | ffmpeg -f rawvideo -pix_fmt rgb24 -s 320x240 -r 30 -i - -an -f mpeg1video -b 800k -r 30 http://127.0.0.1:8082/patate/320/240
video = cv2.VideoCapture(0)
def pipe_images():
run, img = video.read()