mirror of
https://github.com/EyeTrackVR/EyeTrackVR.git
synced 2025-11-04 14:39:42 +08:00
Linux fixes: win10toast_click dependency is now included only in windows compilation; Added pandas dependency as it was required in clean build for runtime; Added platform specific checks to disable winsound and triggers for it in codebase.
This commit is contained in:
parent
7b869abc3b
commit
28f06b4640
@ -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,6 +243,7 @@ class CameraWidget:
|
||||
|
||||
if event == self.gui_restart_calibration:
|
||||
self.ransac.calibration_frame_counter = 300
|
||||
if sys.platform.startswith("win"):
|
||||
PlaySound('Audio/start.wav', SND_FILENAME | SND_ASYNC)
|
||||
|
||||
if event == self.gui_recenter_eyes:
|
||||
|
||||
@ -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
|
||||
@ -181,6 +184,7 @@ class VRChatOSCReceiver:
|
||||
if osc_value:
|
||||
for eye in self.eyes:
|
||||
eye.ransac.calibration_frame_counter = 300
|
||||
if sys.platform.startswith("win"):
|
||||
PlaySound('Audio/start.wav', SND_FILENAME | SND_ASYNC)
|
||||
|
||||
def run(self):
|
||||
|
||||
954
poetry.lock
generated
954
poetry.lock
generated
File diff suppressed because it is too large
Load Diff
@ -10,12 +10,14 @@ 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' }
|
||||
]
|
||||
beautifulsoup4 = "^4.11.1"
|
||||
|
||||
[tool.poetry.group.dev.dependencies]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user