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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# look this: http://picamera.readthedocs.io/en/release-1.2/recipes1.html | |
import io | |
import os | |
import sys | |
import random | |
import time | |
import struct |
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
import io | |
import socket | |
import struct | |
import time | |
import picamera | |
from PIL import Image | |
import cv2 | |
import numpy as np | |
def photographToFile(): |
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
import io | |
import socket | |
import struct | |
#u should do this: | |
# pip install --upgrade pip | |
# pip install image | |
from PIL import Image | |
# NOTICE: | |
# The server script should be run first (don't run in pi)· | |
# to ensure there’s a listening socket ready to accept a connection from the client script |
NewerOlder