cpu performance booooossstt

This commit is contained in:
Prohurtz 2023-12-19 13:51:46 -08:00
parent 01e0c6c53b
commit 49675dc672
3 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,5 @@
import time
import PySimpleGUI as sg
from config import EyeTrackConfig
from config import EyeTrackSettingsConfig
@ -389,7 +391,7 @@ class CameraWidget:
cv2.imshow("Image", image)
cv2.waitKey(1)
cv2.destroyAllWindows()
print("lighen")
print("lighten")
except Empty:
pass
if event == self.gui_mask_markup:
@ -476,4 +478,5 @@ class CameraWidget:
if eye_info.info_type != EyeInfoOrigin.FAILURE:
self.osc_queue.put((self.eye_id, eye_info))
except Empty:
time.sleep(0.01)
pass

View File

@ -192,7 +192,7 @@ def main():
# GUI Render loop
while True:
# First off, check for any events from the GUI
event, values = window.read(timeout=1)
event, values = window.read(timeout=0.1)
# If we're in either mode and someone hits q, quit immediately
if event == "Exit" or event == sg.WIN_CLOSED:

View File

@ -82,7 +82,7 @@ class LEAP_C(object):
"EyeTrackApp/Models/mommy072623.onnx"
) # funny MacOS files issues :P
else:
self.model_path = resource_path("Models/mommy072623.onnx")
self.model_path = resource_path("Models\mommy072623.onnx")
self.interval = 1 # FPS print update rate
self.low_priority = True # set process priority to low (may cause issues when unfocusing? reported by one, not reproducable)
self.print_fps = False