Skip to content

Instantly share code, notes, and snippets.

View Misairu-G's full-sized avatar

Misairu G Misairu-G

View GitHub Profile
@Misairu-G
Misairu-G / image-to-v4l2loopback.py
Created November 25, 2016 17:34 — forked from TimSC/image-to-v4l2loopback.py
Send image data to v4l2loopback using python. Remember to do "sudo modprobe v4l2loopback" first! Released under CC0 by Tim Sheerman-Chase, 2013
#Send image data to v4l2loopback using python
#Remember to do sudo modprobe v4l2loopback first!
#Released under CC0 by Tim Sheerman-Chase, 2013
import fcntl, sys, os
from v4l2 import *
import time
import scipy.misc as misc
import numpy as np