mirror of
https://github.com/EyeTrackVR/EyeTrackVR.git
synced 2025-11-04 14:39:42 +08:00
camera input selector
This commit is contained in:
parent
9bc9834bc8
commit
b7547f93ee
@ -2,9 +2,13 @@ import cv2
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
import threading
|
import threading
|
||||||
from multiprocessing import Process,Queue,Pipe
|
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
|
import time
|
||||||
|
|
||||||
def lefteye():
|
def lefteye():
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user