Init commit
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
import cv2
|
||||
|
||||
def snapshot(path, index=0):
|
||||
cap=cv2.VideoCapture(index); ok,frame=cap.read(); cap.release()
|
||||
if not ok: raise RuntimeError('Impossible de lire la caméra locale')
|
||||
cv2.imwrite(path,frame); return path
|
||||
Reference in New Issue
Block a user