Skip to content

Instantly share code, notes, and snippets.

@erogol
Last active May 28, 2017 18:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erogol/45d59120bbaf8adf23875bb7d9fe22f8 to your computer and use it in GitHub Desktop.
Save erogol/45d59120bbaf8adf23875bb7d9fe22f8 to your computer and use it in GitHub Desktop.
from picamera.array import PiRGBArray
from picamera import PiCamera
from utils import send_email, TempImage
import argparse
import warnings
import datetime
import json
import time
import cv2
# load some config
conf = json.load(open(args["conf"]))
# initialize the camera
camera = PiCamera()
camera.resolution = tuple(conf["resolution"])
camera.framerate = conf["fps"]
rawCapture = PiRGBArray(camera, size=tuple(conf["resolution"]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment