mirror of
https://github.com/EyeTrackVR/EyeTrackVR.git
synced 2025-11-04 14:39:42 +08:00
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:
commit
c7f39646fa
@ -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
|
||||
|
||||
@ -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
950
poetry.lock
generated
File diff suppressed because it is too large
Load Diff
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user