working model

This commit is contained in:
glmdev
2019-02-09 03:05:07 -06:00
parent 7b69abdd9d
commit 9d1b159e83
23 changed files with 2480 additions and 110 deletions

14
camera.py Normal file
View File

@@ -0,0 +1,14 @@
import pygame
import pygame.camera
def capture():
pygame.camera.init()
pygame.camera.list_cameras()
cam = pygame.camera.Camera('/dev/video4', (640, 480))
cam.start()
img = cam.get_image()
pygame.image.save(img, './capture.jpg')
return './capture.jpg'