v2 - new interface, many new page for fine tuning
This commit is contained in:
@@ -13,7 +13,7 @@ _CAMERA_LOCK = threading.Lock()
|
||||
def snapshot(path, index=0):
|
||||
import cv2
|
||||
if not _CAMERA_LOCK.acquire(blocking=False):
|
||||
raise RuntimeError('Caméra déjà utilisée par la prévisualisation Alfred')
|
||||
raise RuntimeError('Caméra déjà utilisée par la prévisualisation de ' + os.getenv('ALFRED_NAME', 'Alfred')) # ALFRED_IDENTITY_GLASS_V1
|
||||
try:
|
||||
cap = cv2.VideoCapture(index)
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user