Merge branch 'HSF-and-new-algos-feature-branch' of https://github.com/RedHawk989/EyeTrackVR into HSF-and-new-algos-feature-branch

This commit is contained in:
Prohurtz 2023-02-09 21:19:34 -06:00
commit c7f39646fa
4 changed files with 526 additions and 446 deletions

View File

@ -8,7 +8,9 @@ from queue import Queue, Empty
from camera import Camera, CameraState
from osc import EyeId
import cv2
from winsound import PlaySound, SND_FILENAME, SND_ASYNC
import sys
if sys.platform.startswith("win"):
from winsound import PlaySound, SND_FILENAME, SND_ASYNC
import traceback
import numpy as np
@ -241,7 +243,8 @@ class CameraWidget:
if event == self.gui_restart_calibration:
self.ransac.calibration_frame_counter = 300
PlaySound('Audio/start.wav', SND_FILENAME | SND_ASYNC)
if sys.platform.startswith("win"):
PlaySound('Audio/start.wav', SND_FILENAME | SND_ASYNC)
if event == self.gui_recenter_eyes:
self.settings.gui_recenter_eyes = True

View File

@ -1,7 +1,10 @@
from pythonosc import udp_client
from pythonosc import osc_server
from pythonosc import dispatcher
from winsound import PlaySound, SND_FILENAME, SND_ASYNC
import sys
if sys.platform.startswith("win"):
from winsound import PlaySound, SND_FILENAME, SND_ASYNC
import queue
import threading
from enum import IntEnum
@ -176,7 +179,8 @@ class VRChatOSCReceiver:
if osc_value:
for eye in self.eyes:
eye.ransac.calibration_frame_counter = 300
PlaySound('Audio/start.wav', SND_FILENAME | SND_ASYNC)
if sys.platform.startswith("win"):
PlaySound('Audio/start.wav', SND_FILENAME | SND_ASYNC)
def run(self):

950
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -10,12 +10,13 @@ repository = "https://github.com/RedHawk989/EyeTrackVR"
python = "~3.11.0"
python-osc = "^1.8.0"
opencv-python = "^4.6.0.66"
numpy = "^1.23.4"
numpy = "~1.23.5"
pye3d = "^0.3.1.post1"
requests = "^2.28.1"
pysimplegui = "^4.60.4"
pydantic = "^1.10.2"
win10toast_click = "^0.1.2"
win10toast_click = [
{ version = "^0.1.2", platform = 'win32' }
]
[tool.poetry.group.dev.dependencies]
black = "^22.10.0"