Skip to content

Instantly share code, notes, and snippets.

@denstilwell
denstilwell / pygame_cam.py
Created July 16, 2017 13:28
test_cameras pygame_cam.py
import pygame
import pygame.camera
from pygame.locals import *
import sys
pygame.init()
pygame.camera.init()
x=0
#create fullscreen display 640x480
screen = pygame.display.set_mode((640,480),0)
@denstilwell
denstilwell / check_for_cameras.py
Created July 16, 2017 13:25
check_for_cameras.py
import pygame
import pygame.camera
pygame.init()
pygame.camera.init()
#find, list cameras
cam_list = pygame.camera.list_cameras()
print(cam_list)
import PIL
from PIL import Image
import glob
import numpy as np
import tensorflow as tf
import os
import imghdr
# Load the data set
newwidth = 64
newhieght = 64
;ANNA
; STARTED 20 September 2015
; MODIFIED 17 July 2016
__CONFIG _CP_OFF & _BODEN_OFF & _PWRTE_ON & _WDT_OFF & _XT_OSC & _LVP_OFF
list p=16f874A
#include p16f874A.inc
#include web.inc
;
;*******************************************************************************
;On start up goto setup