This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io | |
import picamera | |
class MyOutput(object): | |
def __init__(self): | |
self.file_num = 0 | |
self.output = None | |
def write(self, buf): | |
if buf.startswith(b'\xff\xd8'): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import io | |
import time | |
import picamera | |
import picamera.array | |
import numpy as np | |
from PIL import Image, ImageDraw | |