Skip to content

Instantly share code, notes, and snippets.

View jonwitts's full-sized avatar

Jon Witts jonwitts

View GitHub Profile
@waveform80
waveform80 / color_detect.py
Last active October 1, 2016 12:55
A list of little demos for picademy - see https://github.com/waveform80/picamera_demos for updated versions
import picamera
import numpy as np
from picamera.array import PiRGBAnalysis
from picamera.color import Color
class MyColorAnalyzer(PiRGBAnalysis):
def __init__(self, camera):
super(MyColorAnalyzer, self).__init__(camera)
self.last_color = 'none'