Skip to content

Instantly share code, notes, and snippets.

View Franck1333's full-sized avatar
🐍
I'm trying new things

Franck Rochat Franck1333

🐍
I'm trying new things
View GitHub Profile
import picamera, json, requests, os, random
from time import sleep
from PIL import Image, ImageDraw
#capture an image
camera = picamera.PiCamera()
camera.capture('image1.jpg')
print('caputred image')
#make a prediction on the image
@ojii
ojii / set-me-up.py
Created October 17, 2012 16:49
setup py generator
# -*- coding: utf-8 -*-
import re
import distutils.sysconfig as sysconfig
import os
__doc__ = '''set-me-up.
Usage:
set-me-up <projectdir>
'''