Skip to content

Instantly share code, notes, and snippets.

Konstantin Kirik snegovick

Block or report user

Report or block snegovick

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
snegovick / sutil.lua
Created Sep 10, 2015
Serial utils for lua
View sutil.lua
local sutil = {}
function sutil.getchar(ttyfile)
return ttyfile:read(1)
function sutil.readall_timeout(ttyfile, n, time)
local data = ""
local ret = true
local ctr = 0
victorbstan /
Created Mar 20, 2012 — forked from kriben/
Python opencv feed from webcam
import opencv
#this is important for capturing/displaying images
from opencv import highgui
import pygame
import sys
camera = highgui.cvCreateCameraCapture(0)
def get_image():
im = highgui.cvQueryFrame(camera)
# Add the line below if you need it (Ubuntu 8.04+)
You can’t perform that action at this time.