mirror of
https://github.com/EyeTrackVR/EyeTrackVR.git
synced 2025-11-04 14:39:42 +08:00
fix mommy file dir
This commit is contained in:
parent
3d7d06764c
commit
eacaa1fbba
@ -94,9 +94,10 @@ class Camera:
|
|||||||
self.cv2_camera.release()
|
self.cv2_camera.release()
|
||||||
def run(self):
|
def run(self):
|
||||||
while True:
|
while True:
|
||||||
if self.cancellation_event.is_set():
|
if self.cancellation_event.is_set(): #TODO: fix stall when app closes and cam not found
|
||||||
print(f"{Fore.CYAN}[INFO] Exiting Capture thread{Fore.RESET}")
|
print(f"{Fore.CYAN}[INFO] Exiting Capture thread{Fore.RESET}")
|
||||||
self.done_callback("stop")
|
self.done_callback("stop")
|
||||||
|
# print('close')
|
||||||
return
|
return
|
||||||
should_push = True
|
should_push = True
|
||||||
# If things aren't open, retry until they are. Don't let read requests come in any earlier
|
# If things aren't open, retry until they are. Don't let read requests come in any earlier
|
||||||
@ -151,6 +152,10 @@ class Camera:
|
|||||||
if not should_push:
|
if not should_push:
|
||||||
# if we get all the way down here, consider ourselves connected
|
# if we get all the way down here, consider ourselves connected
|
||||||
self.camera_status = CameraState.CONNECTED
|
self.camera_status = CameraState.CONNECTED
|
||||||
|
if self.cancellation_event.is_set(): #TODO: fix stall when app closes and cam not found
|
||||||
|
print(f"{Fore.CYAN}[INFO] Exiting Capture thread{Fore.RESET}")
|
||||||
|
self.done_callback("stop")
|
||||||
|
# print('close')
|
||||||
def get_cv2_camera_picture(self, should_push):
|
def get_cv2_camera_picture(self, should_push):
|
||||||
try:
|
try:
|
||||||
ret, image = self.cv2_camera.read()
|
ret, image = self.cv2_camera.read()
|
||||||
|
|||||||
@ -80,7 +80,7 @@ class MOMMY_C(object):
|
|||||||
# Config variables
|
# Config variables
|
||||||
self.num_threads = 2 # Number of python threads to use (using ~1 more than needed to acheive wanted fps yeilds lower cpu usage)
|
self.num_threads = 2 # Number of python threads to use (using ~1 more than needed to acheive wanted fps yeilds lower cpu usage)
|
||||||
self.queue_max_size = self.num_threads + 4 # Optimize for best CPU usage, Memory, and Latency. A maxsize is needed to not create a potential memory leak.
|
self.queue_max_size = self.num_threads + 4 # Optimize for best CPU usage, Memory, and Latency. A maxsize is needed to not create a potential memory leak.
|
||||||
self.model_path = 'C:/Users/beaul/PycharmProjects/EyeTrackVR/EyeTrackApp/Models/mommy062023.onnx'
|
self.model_path = 'Models/mommy062023.onnx'
|
||||||
self.interval = 1 # FPS print update rate
|
self.interval = 1 # FPS print update rate
|
||||||
self.low_priority = True # set process priority to low
|
self.low_priority = True # set process priority to low
|
||||||
self.print_fps = True
|
self.print_fps = True
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user