Last active
May 28, 2017 18:41
-
-
Save erogol/45d59120bbaf8adf23875bb7d9fe22f8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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