camera input selector

This commit is contained in:
Prohurtz 2021-12-27 14:59:13 -08:00 committed by GitHub
parent 9bc9834bc8
commit b7547f93ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,9 +2,13 @@ import cv2
import numpy as np
import threading
from multiprocessing import Process,Queue,Pipe
cap = cv2.VideoCapture(3)
bl = False
fy= open("camport.txt","r+")
camport = fy.read().strip()
fy.close
bl = False
cap = cv2.VideoCapture(int(camport))
import time
def lefteye():