From ded041b8dbe7f7509b727811d8ef80d76dc118f9 Mon Sep 17 00:00:00 2001 From: Rames The Generic Date: Fri, 31 Jan 2025 19:59:47 -0500 Subject: [PATCH 1/7] Update Build.yml --- .github/workflows/Build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index f19eaea..92bad77 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -9,7 +9,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: windows-latest steps: - uses: actions/checkout@v2 From 2245204b0a87d1d5aad8f788c97121ff3b1e6d8a Mon Sep 17 00:00:00 2001 From: Rames The Generic Date: Fri, 31 Jan 2025 20:01:13 -0500 Subject: [PATCH 2/7] Update Build.yml --- .github/workflows/Build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index 92bad77..f19eaea 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -9,7 +9,7 @@ on: jobs: build: - runs-on: windows-latest + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 From ecef0e880be7e4b0ce2f169b68af7bad623ab4b4 Mon Sep 17 00:00:00 2001 From: Rames The Generic Date: Tue, 4 Feb 2025 18:00:47 -0500 Subject: [PATCH 3/7] Fix MJPEG streams not connecting. --- BabbleApp/babbleapp.spec | 2 +- BabbleApp/camera.py | 23 +- BabbleApp/mjpeg_client.py | 33 ++ BabbleApp/mjpeg_test.py | 77 +++++ BabbleApp/mjpeg_videocapture.py | 115 +++++++ BabbleApp/mjpeg_videocapture.py.ai | 99 ++++++ BabbleApp/threaded_videocapture.py | 97 ++++++ BabbleApp/threaded_videocapture.py.old | 56 ++++ BabbleApp/threaded_videocapture.py.old2 | 97 ++++++ double_slider.py | 91 +++++ image_quant.py | 48 +++ poetry.lock | 423 ++++++++++++++++++++++-- pyproject.toml | 7 +- scripts/build_app_and_installer.bat | 2 +- 14 files changed, 1122 insertions(+), 48 deletions(-) create mode 100644 BabbleApp/mjpeg_client.py create mode 100644 BabbleApp/mjpeg_test.py create mode 100644 BabbleApp/mjpeg_videocapture.py create mode 100644 BabbleApp/mjpeg_videocapture.py.ai create mode 100644 BabbleApp/threaded_videocapture.py create mode 100644 BabbleApp/threaded_videocapture.py.old create mode 100644 BabbleApp/threaded_videocapture.py.old2 create mode 100644 double_slider.py create mode 100644 image_quant.py diff --git a/BabbleApp/babbleapp.spec b/BabbleApp/babbleapp.spec index 2a6495f..8779223 100644 --- a/BabbleApp/babbleapp.spec +++ b/BabbleApp/babbleapp.spec @@ -23,7 +23,7 @@ exe = EXE(pyz, [], exclude_binaries=True, name='Babble_App', - debug=False, + debug=True, bootloader_ignore_signals=False, strip=False, upx=True, diff --git a/BabbleApp/camera.py b/BabbleApp/camera.py index af4df25..7134650 100644 --- a/BabbleApp/camera.py +++ b/BabbleApp/camera.py @@ -10,10 +10,9 @@ import threading from enum import Enum import serial.tools.list_ports from lang_manager import LocaleStringManager as lang - from colorama import Fore from config import BabbleConfig, BabbleSettingsConfig -from utils.misc_utils import get_camera_index_by_name, list_camera_names +from utils.misc_utils import get_camera_index_by_name, list_camera_names, is_nt from vivefacialtracker.vivetracker import ViveTracker from vivefacialtracker.camera_controller import FTCameraController @@ -95,6 +94,7 @@ class Camera: self.config.capture_source is not None and self.config.capture_source != "" ): + self.current_capture_source = self.config.capture_source isSerial = any(x in str(self.config.capture_source) for x in PORTS) if isSerial: @@ -103,7 +103,7 @@ class Camera: self.cv2_camera = None if self.vft_camera is not None: self.vft_camera.close() - self.device_is_vft = False; + self.device_is_vft = False if ( self.serial_connection is None or self.camera_status == CameraState.DISCONNECTED @@ -116,7 +116,7 @@ class Camera: if self.cv2_camera is not None: self.cv2_camera.release() self.cv2_camera = None - self.device_is_vft = True; + self.device_is_vft = True if self.vft_camera is None: print(self.error_message.format(self.config.capture_source)) @@ -141,18 +141,18 @@ class Camera: self.cv2_camera is None or not self.cv2_camera.isOpened() or self.camera_status == CameraState.DISCONNECTED - or get_camera_index_by_name(self.config.capture_source) != self.current_capture_source + #or get_camera_index_by_name(self.config.capture_source) != self.current_capture_source + or self.config.capture_source != self.current_capture_source ): if self.vft_camera is not None: self.vft_camera.close() - self.device_is_vft = False; + self.device_is_vft = False print(self.error_message.format(self.config.capture_source)) # This requires a wait, otherwise we can error and possible screw up the camera # firmware. Fickle things. if self.cancellation_event.wait(WAIT_TIME): return - if self.config.capture_source not in self.camera_list: self.current_capture_source = self.config.capture_source else: @@ -163,9 +163,8 @@ class Camera: self.current_capture_source, cv2.CAP_FFMPEG ) else: - self.cv2_camera = cv2.VideoCapture( - self.current_capture_source - ) + self.cv2_camera = cv2.VideoCapture() + self.cv2_camera.open(self.current_capture_source) if not self.settings.gui_cam_resolution_x == 0: self.cv2_camera.set( @@ -181,7 +180,6 @@ class Camera: self.cv2_camera.set( cv2.CAP_PROP_FPS, self.settings.gui_cam_framerate ) - should_push = False else: # We don't have a capture source to try yet, wait for one to show up in the GUI. @@ -215,7 +213,7 @@ class Camera: return self.frame_number = self.frame_number + 1 elif self.cv2_camera is not None and self.cv2_camera.isOpened(): - ret, image = self.cv2_camera.read() + ret, image = self.cv2_camera.read() # MJPEG Stream reconnects are currently limited by the hard coded 30 second timeout time on VideoCapture.read(). We can get around this by recompiling OpenCV or using a custom MJPEG stream imp. if not ret: self.cv2_camera.set(cv2.CAP_PROP_POS_FRAMES, 0) raise RuntimeError(lang._instance.get_string("error.frame")) @@ -223,7 +221,6 @@ class Camera: else: # Switching from a Vive Facial Tracker to a CV2 camera return - self.FRAME_SIZE = image.shape # Calculate FPS current_frame_time = time.time() # Should be using "time.perf_counter()", not worth ~3x cycles? diff --git a/BabbleApp/mjpeg_client.py b/BabbleApp/mjpeg_client.py new file mode 100644 index 0000000..43abd23 --- /dev/null +++ b/BabbleApp/mjpeg_client.py @@ -0,0 +1,33 @@ +from mjpeg.client import MJPEGClient +from time import sleep +import numpy as np +import cv2 + + +url='http://192.168.1.186:8080/video' + +# Create a new client thread +client = MJPEGClient(url) + +# Allocate memory buffers for frames +bufs = client.request_buffers(65536, 50) +for b in bufs: + client.enqueue_buffer(b) + +# Start the client in a background thread +client.start() +while True: + client.print_stats() + buf = client.dequeue_buffer() + client.enqueue_buffer(buf) + data = memoryview(buf.data)[:buf.used] + img_array = np.frombuffer(data, dtype=np.uint8) + frame = cv2.imdecode(img_array, cv2.IMREAD_COLOR) + # Check if the frame was decoded correctly + if frame is not None: + cv2.imshow("MJPEG Stream", frame) + # Exit loop if 'q' is pressed + if cv2.waitKey(1) & 0xFF == ord("q"): + break + #print(frame.shape) + #print(len(array)) diff --git a/BabbleApp/mjpeg_test.py b/BabbleApp/mjpeg_test.py new file mode 100644 index 0000000..3fae2f8 --- /dev/null +++ b/BabbleApp/mjpeg_test.py @@ -0,0 +1,77 @@ +import requests +import numpy as np +import cv2 +import threading +import io + +class MJPEGVideoCapture: + def __init__(self, url): + self.url = url + self.session = requests.Session() + self.stream = None + self.byte_buffer = b"" + self.frame = None + self.running = False + self.lock = threading.Lock() + self.thread = None + + def open(self): + if not self.running: + self.running = True + self.thread = threading.Thread(target=self._update, daemon=True) + self.thread.start() + + def _update(self): + while self.running: + try: + self.stream = self.session.get(self.url, stream=True, timeout=3) + for chunk in self.stream.iter_content(chunk_size=1024): + if not self.running: + break + self.byte_buffer += chunk + start = self.byte_buffer.find(b'\xff\xd8') # JPEG start + end = self.byte_buffer.find(b'\xff\xd9') # JPEG end + + if start != -1 and end != -1: + jpg = self.byte_buffer[start:end+2] + self.byte_buffer = self.byte_buffer[end+2:] + + image = np.frombuffer(jpg, dtype=np.uint8) + if image.size != 0: + frame = cv2.imdecode(image, cv2.IMREAD_GRAYSCALE) + if frame is not None: + with self.lock: + self.frame = frame + except requests.RequestException: + continue # Retry on failure + + def read(self): + with self.lock: + return self.frame is not None, self.frame.copy() if self.frame is not None else None + + def isOpened(self): + return self.running + + def release(self): + self.running = False + if self.thread is not None: + self.thread.join() + self.stream = None + self.frame = None + self.byte_buffer = b"" + self.session.close() + +if __name__ == "__main__": + cap = MJPEGVideoCapture("http://openiristracker.local") + cap.open() + + while cap.isOpened(): + ret, frame = cap.read() + if ret: + cv2.imshow("MJPEG Stream", frame) + + if cv2.waitKey(1) & 0xFF == ord("q"): + break + + cap.release() + cv2.destroyAllWindows() diff --git a/BabbleApp/mjpeg_videocapture.py b/BabbleApp/mjpeg_videocapture.py new file mode 100644 index 0000000..874bd38 --- /dev/null +++ b/BabbleApp/mjpeg_videocapture.py @@ -0,0 +1,115 @@ +import requests +import numpy as np +import cv2 +import threading +import time +import queue + +class MJPEGVideoCapture: + def __init__(self, url, max_buffer_size=1024*1024): + self.url = url + self.session = requests.Session() + self.stream = None + self.byte_buffer = b"" + self.max_buffer_size = max_buffer_size # Maximum allowed size for byte_buffer (e.g., 1 MB) + self.running = False + self.thread = None + # Use a queue with maxsize=1 so that only the latest frame is kept. + self.frame_queue = queue.Queue(maxsize=1) + print("VC Opened") + + def open(self): + if not self.running: + self.running = True + self.thread = threading.Thread(target=self._update, daemon=True) + self.thread.start() + # Allow some time for the update thread to start and capture a frame. + time.sleep(2) + + def _update(self): + while self.running: + try: + self.stream = self.session.get(self.url, stream=True, timeout=1) + for chunk in self.stream.iter_content(chunk_size=512): + if not self.running: + break + self.byte_buffer += chunk + + # Flush the buffer if it grows too large. + if len(self.byte_buffer) > self.max_buffer_size: + print("Warning: byte_buffer exceeded maximum size; flushing buffer.") + self.byte_buffer = b"" + continue + + # Instead of taking the first complete JPEG frame, we look for the latest complete one. + # Find the last occurrence of the JPEG start and end markers. + start = self.byte_buffer.rfind(b'\xff\xd8') + end = self.byte_buffer.rfind(b'\xff\xd9') + + # If a complete JPEG is found, extract it and flush the entire buffer. + if start != -1 and end != -1 and end > start: + jpg = self.byte_buffer[start:end+2] + self.byte_buffer = b"" # Discard all other data. + + image = np.frombuffer(jpg, dtype=np.uint8) + if image.size != 0: + # Decode as grayscale. + frame = cv2.imdecode(image, cv2.IMREAD_GRAYSCALE) + if frame is not None: + # Resize to 240x240. + frame = cv2.resize(frame, (240, 240)) + # Convert grayscale to 3-channel image with shape (240, 240, 3). + frame = np.stack([frame] * 3, axis=-1) + + # Try to put the frame into the queue. + # If the queue is full, remove the old frame first. + try: + self.frame_queue.put(frame, block=False) + except queue.Full: + try: + self.frame_queue.get_nowait() + except queue.Empty: + pass + self.frame_queue.put(frame, block=False) + except requests.RequestException: + # On failure, simply continue to try again. + continue + + def read(self): + """ + Block until a frame is available and return the latest frame. + This mimics the blocking behavior of cap.read(), but always returns the latest frame. + """ + frame = self.frame_queue.get() # This call blocks until a frame is available. + return True, frame.copy() + + def isOpened(self): + return self.running + + def release(self): + self.running = False + if self.thread is not None: + self.thread.join() + self.stream = None + self.byte_buffer = b"" + self.session.close() + +# Testing code: +test = True +if test: + if __name__ == "__main__": + cap = MJPEGVideoCapture("http://192.168.1.186:8080/video") + cap.open() + + while cap.isOpened(): + ret, frame = cap.read() + # Print the current byte_buffer length to monitor its size. + print("Current byte_buffer length:", len(cap.byte_buffer)) + if ret: + cv2.imshow("MJPEG Stream", frame) + + if cv2.waitKey(1) & 0xFF == ord("q"): + break + + cap.release() + cv2.destroyAllWindows() diff --git a/BabbleApp/mjpeg_videocapture.py.ai b/BabbleApp/mjpeg_videocapture.py.ai new file mode 100644 index 0000000..2208da7 --- /dev/null +++ b/BabbleApp/mjpeg_videocapture.py.ai @@ -0,0 +1,99 @@ +from mjpeg.client import MJPEGClient +import cv2 +import numpy as np +import threading +import time +import queue + +class MJPEGVideoCapture: + def __init__(self, url): + self.url = url + self.running = False + self.client = None + self.frame_queue = queue.Queue(maxsize=1) + self.thread = None + + # Initialize MJPEGClient + self.client = MJPEGClient(url) + + print("VC Opened") + + def open(self): + if not self.running: + self.running = True + # Create and enqueue buffers + bufs = self.client.request_buffers(65536, 50) + for b in bufs: + self.client.enqueue_buffer(b) + + # Start the client in a background thread + self.client.start() + + # Allow some time for the update thread to start and capture a frame. + time.sleep(2) + + def _update(self): + while self.running: + try: + buf = self.client.dequeue_buffer() + data = memoryview(buf.data)[:buf.used] + img_array = np.frombuffer(data, dtype=np.uint8) + + # Decode the image + frame = cv2.imdecode(img_array, cv2.IMREAD_COLOR) + + if frame is not None: + # Resize to 240x240 and convert to 3-channel + frame = cv2.resize(frame, (240, 240)) + + # Try to put the frame into the queue. + try: + self.frame_queue.put(frame, block=False) + except queue.Full: + try: + self.frame_queue.get_nowait() + except queue.Empty: + pass + self.frame_queue.put(frame, block=False) + + # Enqueue buffer back for reuse + self.client.enqueue_buffer(buf) + + except Exception as e: + print(f"Error in _update: {e}") + continue + + def read(self): + """ + Block until a frame is available and return the latest frame. + This mimics the blocking behavior of cap.read(), but always returns the latest frame. + """ + frame = self.frame_queue.get() # This call blocks until a frame is available. + return True, frame.copy() + + def isOpened(self): + return self.running + + def release(self): + self.running = False + if self.client: + self.client.stop() + self.frame_queue.queue.clear() + +# Testing code: +test = True +if test: + if __name__ == "__main__": + cap = MJPEGVideoCapture("http://openiristracker.local") + cap.open() + + while cap.isOpened(): + ret, frame = cap.read() + if ret: + cv2.imshow("MJPEG Stream", frame) + + if cv2.waitKey(1) & 0xFF == ord("q"): + break + + cap.release() + cv2.destroyAllWindows() diff --git a/BabbleApp/threaded_videocapture.py b/BabbleApp/threaded_videocapture.py new file mode 100644 index 0000000..2e3f48f --- /dev/null +++ b/BabbleApp/threaded_videocapture.py @@ -0,0 +1,97 @@ +import cv2 +import threading +import concurrent.futures +import time + +def read_frame(cap): + return cap.read() + +class VideoCaptureThread: + def __init__(self, stream_url, timeout=5): + self.stream_url = stream_url + self.timeout = timeout + self.cap = cv2.VideoCapture(self.stream_url) + self.frame = None + self.ret = None + self.running = True + self.lock = threading.Lock() + self.new_frame_available = threading.Condition(self.lock) + self.thread = self.start_thread() + + def start_thread(self): + thread = threading.Thread(target=self.update, daemon=True) + thread.start() + return thread + + def update(self): + self.cap = cv2.VideoCapture(self.stream_url) + while self.running: + try: + if self.cap.isOpened(): + with concurrent.futures.ThreadPoolExecutor() as executor: + future = executor.submit(read_frame, self.cap) + try: + readframe = future.result(timeout=self.timeout) # Wait for result with timeout + ret, frame = readframe + except concurrent.futures.TimeoutError: + print("Timeout: cap.read() took too long!") + self.reconnect() + self.thread = self.start_thread() # Restart the thread + ret, frame = False, None + if ret: + with self.lock: + self.ret = ret + self.frame = frame + self.new_frame_available.notify_all() # Notify waiting threads + else: + print("Frame read failed. Attempting reconnect...") + self.reconnect() + time.sleep(0.01) # Small delay to prevent 100% CPU usage + except Exception as e: + print(f"Unexpected error in update thread: {e}") + self.reconnect() + self.thread = self.start_thread() # Restart the thread + break # Exit the loop to allow the new thread to take over + + def get_fps(self): + fps = self.cap.get(cv2.CAP_PROP_FPS) + return fps if fps > 0 else 30 # Default to 30 FPS if unknown + + def read(self): + """Blocks until a new frame is available or times out.""" + start_time = time.time() + with self.lock: + while self.frame is None: + elapsed_time = time.time() - start_time + if elapsed_time >= self.timeout: + print("Timeout: No frame received in time. Restarting capture...") + self.reconnect() + return None, None # Return None if timeout occurs + + # Wait with a short timeout to allow the background thread to update the frame + self.new_frame_available.wait(timeout=0.1) + + # Return the frame if available + time.sleep(1/60) + return self.ret, self.frame + + def set(self, kw, val): + self.cap.set(kw, val) + + def get(self, kw): + return self.cap.get(kw) + + def isOpened(self): + return self.cap.isOpened() + + def reconnect(self): + """Safely restarts the video capture.""" + self.cap.release() + time.sleep(2) # Small delay to allow a clean reconnect + self.cap = cv2.VideoCapture(self.stream_url) + print("Capture restarted.") + + def release(self): + self.running = False + self.thread.join() + self.cap.release() \ No newline at end of file diff --git a/BabbleApp/threaded_videocapture.py.old b/BabbleApp/threaded_videocapture.py.old new file mode 100644 index 0000000..7e1c582 --- /dev/null +++ b/BabbleApp/threaded_videocapture.py.old @@ -0,0 +1,56 @@ +import cv2 +import threading +import time + +class VideoCaptureThread: + def __init__(self, stream_url, timeout=5): + self.stream_url = stream_url + self.timeout = timeout + self.cap = cv2.VideoCapture(self.stream_url) + self.frame = None + self.ret = None + self.running = True + self.lock = threading.Lock() + self.thread = threading.Thread(target=self.update, daemon=True) + self.thread.start() + + def update(self): + while self.running: + if self.cap.isOpened(): + ret, frame = self.cap.read() + if ret: + self.ret = ret + with self.lock: + self.frame = frame + else: + print("Frame read failed. Attempting reconnect...") + self.reconnect() + time.sleep(0.01) # Small delay to prevent 100% CPU usage + + def get_fps(self): + fps = self.cap.get(cv2.CAP_PROP_FPS) + return fps if fps > 0 else 30 # Default to 30 FPS if unknown + + def read(self): + with self.lock: + #time.sleep(1/60) + return self.ret, self.frame + + def set(self, kw, val): + self.cap.set(kw, val) + + def get(self, kw): + self.cap.get(kw) + + def isOpened(self): + return self.cap.isOpened() + + def reconnect(self): + self.cap.release() + time.sleep(2) # Wait before reconnecting + self.cap = cv2.VideoCapture(self.stream_url) + + def stop(self): + self.running = False + self.thread.join() + self.cap.release() \ No newline at end of file diff --git a/BabbleApp/threaded_videocapture.py.old2 b/BabbleApp/threaded_videocapture.py.old2 new file mode 100644 index 0000000..2e3f48f --- /dev/null +++ b/BabbleApp/threaded_videocapture.py.old2 @@ -0,0 +1,97 @@ +import cv2 +import threading +import concurrent.futures +import time + +def read_frame(cap): + return cap.read() + +class VideoCaptureThread: + def __init__(self, stream_url, timeout=5): + self.stream_url = stream_url + self.timeout = timeout + self.cap = cv2.VideoCapture(self.stream_url) + self.frame = None + self.ret = None + self.running = True + self.lock = threading.Lock() + self.new_frame_available = threading.Condition(self.lock) + self.thread = self.start_thread() + + def start_thread(self): + thread = threading.Thread(target=self.update, daemon=True) + thread.start() + return thread + + def update(self): + self.cap = cv2.VideoCapture(self.stream_url) + while self.running: + try: + if self.cap.isOpened(): + with concurrent.futures.ThreadPoolExecutor() as executor: + future = executor.submit(read_frame, self.cap) + try: + readframe = future.result(timeout=self.timeout) # Wait for result with timeout + ret, frame = readframe + except concurrent.futures.TimeoutError: + print("Timeout: cap.read() took too long!") + self.reconnect() + self.thread = self.start_thread() # Restart the thread + ret, frame = False, None + if ret: + with self.lock: + self.ret = ret + self.frame = frame + self.new_frame_available.notify_all() # Notify waiting threads + else: + print("Frame read failed. Attempting reconnect...") + self.reconnect() + time.sleep(0.01) # Small delay to prevent 100% CPU usage + except Exception as e: + print(f"Unexpected error in update thread: {e}") + self.reconnect() + self.thread = self.start_thread() # Restart the thread + break # Exit the loop to allow the new thread to take over + + def get_fps(self): + fps = self.cap.get(cv2.CAP_PROP_FPS) + return fps if fps > 0 else 30 # Default to 30 FPS if unknown + + def read(self): + """Blocks until a new frame is available or times out.""" + start_time = time.time() + with self.lock: + while self.frame is None: + elapsed_time = time.time() - start_time + if elapsed_time >= self.timeout: + print("Timeout: No frame received in time. Restarting capture...") + self.reconnect() + return None, None # Return None if timeout occurs + + # Wait with a short timeout to allow the background thread to update the frame + self.new_frame_available.wait(timeout=0.1) + + # Return the frame if available + time.sleep(1/60) + return self.ret, self.frame + + def set(self, kw, val): + self.cap.set(kw, val) + + def get(self, kw): + return self.cap.get(kw) + + def isOpened(self): + return self.cap.isOpened() + + def reconnect(self): + """Safely restarts the video capture.""" + self.cap.release() + time.sleep(2) # Small delay to allow a clean reconnect + self.cap = cv2.VideoCapture(self.stream_url) + print("Capture restarted.") + + def release(self): + self.running = False + self.thread.join() + self.cap.release() \ No newline at end of file diff --git a/double_slider.py b/double_slider.py new file mode 100644 index 0000000..3ada005 --- /dev/null +++ b/double_slider.py @@ -0,0 +1,91 @@ +import PySimpleGUI as sg + +class RangeSlider: + def __init__(self, canvas_size=(400, 50), slider_x_range=(0, 400), initial_values=(50, 350)): + + self.canvas_size = canvas_size + self.slider_x_range = slider_x_range + self.current_values = list(initial_values) + + + self.graph_element = sg.Graph( + canvas_size=self.canvas_size, + graph_bottom_left=(0, -10), + graph_top_right=(self.canvas_size[0], 10), + background_color='lightgray', + key='-GRAPH-', + enable_events=True, + drag_submits=True + ) + + self.moving_index = None + + def draw_slider(self, graph, value): + graph.erase() + + graph.draw_line((self.slider_x_range[0], 0), (self.slider_x_range[1], 0), width=4, color='darkblue') + + graph.draw_rectangle( + (self.current_values[0], -1), + (self.current_values[1], 1), + line_color='dodgerblue', + fill_color='dodgerblue', + ) + width = 1 + graph.draw_rectangle( + (value - (width/2), -1.8), + (value + (width/2), 1.5), + line_color='black', + fill_color='black', + ) + for x in self.current_values: + + graph.draw_circle((x, 0), 8, fill_color='dodgerblue', line_color='dodgerblue') + + + + + def handle_event(self, event, values, window): + if event == '-GRAPH-': + mouse_x, _ = values['-GRAPH-'] + + if self.moving_index is None: + for i, x in enumerate(self.current_values): + if abs(mouse_x - x) <= 8: + self.moving_index = i + break + else: + self.current_values[self.moving_index] = min(max(mouse_x, self.slider_x_range[0]), self.slider_x_range[1]) + + if self.current_values[0] > self.current_values[1]: + self.current_values[0], self.current_values[1] = self.current_values[1], self.current_values[0] + self.draw_slider(window['-GRAPH-'], 200) + window['-RANGE-TEXT-'].update(f'{self.current_values[0]} - {self.current_values[1]}') + else: + self.moving_index = None + + def get_layout(self): + return [ + [self.graph_element], + [sg.Text("Selected Range: "), sg.Text(f"{self.current_values[0]} - {self.current_values[1]}", size=(15, 1), key='-RANGE-TEXT-')] + ] + + +def main(): + range_slider = RangeSlider() + layout = range_slider.get_layout() + [[sg.Button('Exit')]] + + window = sg.Window('Range Slider with Graph', layout, finalize=True) + range_slider.draw_slider(window['-GRAPH-'], 200) + + while True: + event, values = window.read() + if event == sg.WINDOW_CLOSED or event == 'Exit': + break + + range_slider.handle_event(event, values, window) + + window.close() + +if __name__ == '__main__': + main() \ No newline at end of file diff --git a/image_quant.py b/image_quant.py new file mode 100644 index 0000000..f8c69cc --- /dev/null +++ b/image_quant.py @@ -0,0 +1,48 @@ +import cv2 +import numpy as np +import struct +import zstd + +def quantize_grayscale(image: np.ndarray, num_bits: int) -> np.ndarray: + """ + Quantizes a grayscale image to a specified number of bits. + + Args: + image (np.ndarray): Grayscale image (values between 0 and 255). + num_bits (int): Number of bits for quantization (1-8). + + Returns: + np.ndarray: Quantized grayscale image. + """ + if not (1 <= num_bits <= 8): + raise ValueError("num_bits must be between 1 and 8.") + + # Calculate the number of levels + num_levels = 2 ** num_bits + + # Normalize the image to the range [0, num_levels - 1] + quantized = (image / 255.0) * (num_levels - 1) + + # Round to nearest integer and convert back to integers + quantized = np.round(quantized).astype(np.uint8) + + # Scale back to the full grayscale range [0, 255] + quantized = (quantized * (255 // (num_levels - 1))).astype(np.uint8) + + return quantized + + +image = cv2.imread("0001.png") +image = cv2.resize(image, (194, 194)) +image = cv2.GaussianBlur(image, 2) +image = quantize_grayscale(image, 4) +data = image.tobytes() +frame_size = len(data) +compressed_size = len(zstd.compress(data, 5)) +est_fps = 225/(compressed_size / 1000) +print(frame_size) +print(compressed_size) +print(est_fps) + +cv2.imshow("yeah", image) +cv2.waitKey(0) \ No newline at end of file diff --git a/poetry.lock b/poetry.lock index 1309bb0..7ccbbff 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.8.4 and should not be changed by hand. +# This file is automatically @generated by Poetry 2.0.1 and should not be changed by hand. [[package]] name = "altgraph" @@ -6,17 +6,31 @@ version = "0.17.4" description = "Python graph (network) package" optional = false python-versions = "*" +groups = ["dev"] files = [ {file = "altgraph-0.17.4-py2.py3-none-any.whl", hash = "sha256:642743b4750de17e655e6711601b077bc6598dbfa3ba5fa2b2a35ce12b508dff"}, {file = "altgraph-0.17.4.tar.gz", hash = "sha256:1b5afbb98f6c4dcadb2e2ae6ab9fa994bbb8c1d75f4fa96d340f9437ae454406"}, ] +[[package]] +name = "bidict" +version = "0.23.1" +description = "The bidirectional mapping library for Python." +optional = false +python-versions = ">=3.8" +groups = ["main"] +files = [ + {file = "bidict-0.23.1-py3-none-any.whl", hash = "sha256:5dae8d4d79b552a71cbabc7deb25dfe8ce710b17ff41711e13010ead2abfc3e5"}, + {file = "bidict-0.23.1.tar.gz", hash = "sha256:03069d763bc387bbd20e7d49914e75fc4132a41937fa3405417e1a5a2d006d71"}, +] + [[package]] name = "black" version = "22.12.0" description = "The uncompromising code formatter." optional = false python-versions = ">=3.7" +groups = ["dev"] files = [ {file = "black-22.12.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9eedd20838bd5d75b80c9f5487dbcb06836a43833a37846cf1d8c1cc01cef59d"}, {file = "black-22.12.0-cp310-cp310-win_amd64.whl", hash = "sha256:159a46a4947f73387b4d83e87ea006dbb2337eab6c879620a3ba52699b1f4351"}, @@ -50,6 +64,7 @@ version = "2024.8.30" description = "Python package for providing Mozilla's CA Bundle." optional = false python-versions = ">=3.6" +groups = ["main"] files = [ {file = "certifi-2024.8.30-py3-none-any.whl", hash = "sha256:922820b53db7a7257ffbda3f597266d435245903d80737e34f8a45ff3e3230d8"}, {file = "certifi-2024.8.30.tar.gz", hash = "sha256:bec941d2aa8195e248a60b31ff9f0558284cf01a52591ceda73ea9afffd69fd9"}, @@ -61,6 +76,7 @@ version = "3.4.0" description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet." optional = false python-versions = ">=3.7.0" +groups = ["main"] files = [ {file = "charset_normalizer-3.4.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:4f9fc98dad6c2eaa32fc3af1417d95b5e3d08aff968df0cd320066def971f9a6"}, {file = "charset_normalizer-3.4.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:0de7b687289d3c1b3e8660d0741874abe7888100efe14bd0f9fd7141bcbda92b"}, @@ -175,6 +191,7 @@ version = "8.1.7" description = "Composable command line interface toolkit" optional = false python-versions = ">=3.7" +groups = ["dev"] files = [ {file = "click-8.1.7-py3-none-any.whl", hash = "sha256:ae74fb96c20a0277a1d615f1e4d73c8414f5a98db8b799a7931d1582f3390c28"}, {file = "click-8.1.7.tar.gz", hash = "sha256:ca9853ad459e787e2192211578cc907e7594e294c7ccc834310722b41b9ca6de"}, @@ -189,6 +206,7 @@ version = "0.4.6" description = "Cross-platform colored terminal text." optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7" +groups = ["main", "dev"] files = [ {file = "colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"}, {file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"}, @@ -200,6 +218,7 @@ version = "15.0.1" description = "Colored terminal output for Python's logging module" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +groups = ["main"] files = [ {file = "coloredlogs-15.0.1-py2.py3-none-any.whl", hash = "sha256:612ee75c546f53e92e70049c9dbfcc18c935a2b9a53b66085ce9ef6a6e5c0934"}, {file = "coloredlogs-15.0.1.tar.gz", hash = "sha256:7c991aa71a4577af2f82600d8f8f3a89f936baeaf9b50a9c197da014e5bf16b0"}, @@ -217,17 +236,96 @@ version = "1.4.8" description = "Pure Python COM package" optional = false python-versions = ">=3.8" +groups = ["main"] files = [ {file = "comtypes-1.4.8-py3-none-any.whl", hash = "sha256:773109b12aa0bec630d5b2272dd983cbaa25605a12fc1319f99730c9d0b72f79"}, {file = "comtypes-1.4.8.zip", hash = "sha256:bb2286cfb3b96f838307200a85b00b98e1bdebf1e58ec3c28b36b1ccfafac01f"}, ] +[[package]] +name = "dbus-fast" +version = "2.30.2" +description = "A faster version of dbus-next" +optional = false +python-versions = "<4.0,>=3.9" +groups = ["main"] +markers = "sys_platform == \"linux\"" +files = [ + {file = "dbus_fast-2.30.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:353dcb06498ec1dcb1acc3c7a48c30d1232699f629291b18bdbe6f236bfd3882"}, + {file = "dbus_fast-2.30.2-cp310-cp310-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl", hash = "sha256:7fdda7f540ec8f44cef3c95467be4850f311e36c9f1573f1d33e5cd9037800ed"}, + {file = "dbus_fast-2.30.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:84e77820fdee8ae6aab588e3ff7a3cd2b532caf4b0e37d9474247b5891b0c0d7"}, + {file = "dbus_fast-2.30.2-cp310-cp310-manylinux_2_31_x86_64.whl", hash = "sha256:c6d226db36d3fe48f7677b1494e857f5e047e3d74146dafa3917eb64e6c0a55b"}, + {file = "dbus_fast-2.30.2-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:f253e27e0a57d106dcfd68afbdebd3fcdcb16aaf96e7ec3e0a6a318acc5dea7f"}, + {file = "dbus_fast-2.30.2-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:b4ee5a99eba4e93cf769173c33fa4b7b4589e818d43b3ef1dd304620c395ff28"}, + {file = "dbus_fast-2.30.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:410c6866324b44f5987338d568ed6b945bae58d7875f483a99db40e97c3d0728"}, + {file = "dbus_fast-2.30.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a38903ace05643667c2f95054b169e92eb7aa09c0710a639ac523102042355d8"}, + {file = "dbus_fast-2.30.2-cp311-cp311-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl", hash = "sha256:77e1fd68b61ddcf622d4653d96a42d527ea3588b0f09418c83e69bdb3758e86a"}, + {file = "dbus_fast-2.30.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7a1ca38304578d7040b8bdecb97405d7e9bb264a27e31cbc56e6784f447c8891"}, + {file = "dbus_fast-2.30.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:92793bc00591f1ecb76fc31a1148f550f6cd742df96b51088bdec0dac888f37e"}, + {file = "dbus_fast-2.30.2-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:55eabe25b6976924d299ddf4207a2409f75c5c6545847b5fc263b6c2bda12356"}, + {file = "dbus_fast-2.30.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:4db238b1e826cc521a0afdbb09131947a8dd09c69ece3829d2710c14237ee20c"}, + {file = "dbus_fast-2.30.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1bc3d7e3974d0cd99cba4338f901e949bc8121a2e6ca289e86da21516ccab21f"}, + {file = "dbus_fast-2.30.2-cp312-cp312-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl", hash = "sha256:0579c0e8546faf332e80d1fee6314a2f2574ee5baee6a03eea47972f3b3ac250"}, + {file = "dbus_fast-2.30.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:73de2f271d20eefc730d651fc6fc642d5fb338c720eb984c548115183a9d00e5"}, + {file = "dbus_fast-2.30.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:20260b567464751e1b5af4d44c4e20c841cb888a74ba94f71e06dd9c6a3eca21"}, + {file = "dbus_fast-2.30.2-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:9a1baae67542085c648a5daf8d7c7a622618c1908bf031c928fc41da9abe743a"}, + {file = "dbus_fast-2.30.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:976e4fd7d384b11849e5f8ecfd985fddfe0a6f78198cbda6ea25e81754ded3eb"}, + {file = "dbus_fast-2.30.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:08021c33059f56947c7574ede0a525c934182f9c5441c483ff111f853117bac9"}, + {file = "dbus_fast-2.30.2-cp313-cp313-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl", hash = "sha256:b6d921a4cb4f2c567bd12c74db2ff11aa23a0078d5bd43d7fc8f16ddfa73553e"}, + {file = "dbus_fast-2.30.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:53efa0780905e2f812ec54c00f4b0f3b151697040f28d3296ca3b746b5b16507"}, + {file = "dbus_fast-2.30.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:355bc76ddda73908ecc5fcdf77c1717fec9409cbea0f9cc91391613cf4ecf98b"}, + {file = "dbus_fast-2.30.2-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:0fe08c0dcebe85e7aa2275cb8c4a0be7dec320472e781ef7f96e392d22188d8d"}, + {file = "dbus_fast-2.30.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:73da9659ba913ce60778406f09600f5df99ec53629327934480cf9dc733ef565"}, + {file = "dbus_fast-2.30.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3a40e806e157037ed0ce4ba13c360350e95eb18b35c5529752ccf8818c224802"}, + {file = "dbus_fast-2.30.2-cp39-cp39-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl", hash = "sha256:26896a4ef8956dc8062e731dc2b8871b67dad37fb126bda3ae11a68885b88ee6"}, + {file = "dbus_fast-2.30.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f82857b96cdcf678d72318d51aa68150dfb5daa9b3ae410552a0381e4504624b"}, + {file = "dbus_fast-2.30.2-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:c557a21c1f85751aa3e8cf7b45287bd65f5da9d9800894820780e5d5943700f5"}, + {file = "dbus_fast-2.30.2-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:75d66497bb0a0b46fcb6b8cdfe382de98ced6c111783b03644c941445ef01781"}, + {file = "dbus_fast-2.30.2-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:e4a1f585c53caf49baf60ea71bbfa06f737fb76ab927ed996f1450f988d461ee"}, + {file = "dbus_fast-2.30.2-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b89ccbee16ef5ae82f8b3cf582764811fe07284d21e83b04b1d683da67c1b0b0"}, + {file = "dbus_fast-2.30.2-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl", hash = "sha256:d3bc987e8b9764a787b3bd3833fa9602eb5b43a4c51b7e33ed7c653770af3597"}, + {file = "dbus_fast-2.30.2-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ed282fc8dc82d57d8b57621965aadb2ee4efa32898772bfbed5164a6308d332d"}, + {file = "dbus_fast-2.30.2-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2982219d780e8746259245f4da5868918fd4423cfe325274167e5c8f4ef34835"}, + {file = "dbus_fast-2.30.2-pp39-pypy39_pp73-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl", hash = "sha256:241872ba85b806050b5eac2a98541b46cab592b6b8a9e1ae0e603b17a4e31db3"}, + {file = "dbus_fast-2.30.2-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl", hash = "sha256:09f9dce490a7f55a3f76f5ee5604658c431b49322ce0e3b1967de49eed961ed1"}, + {file = "dbus_fast-2.30.2.tar.gz", hash = "sha256:87296315f4a2f2416d495f48cca019ba901d046989e94df2adda84c3170da7b3"}, +] + +[[package]] +name = "desktop-notifier" +version = "6.0.0" +description = "Python library for cross-platform desktop notifications" +optional = false +python-versions = ">=3.7" +groups = ["main"] +files = [ + {file = "desktop_notifier-6.0.0-py3-none-any.whl", hash = "sha256:7caf6f683f9f5afd0fced3da5305d6b04a467148a6d23fb99a11dad85ececb40"}, + {file = "desktop_notifier-6.0.0.tar.gz", hash = "sha256:188b6cf8f59192afc5c6ed9dc8304d46ee0380b08750e826fcce1048083d5cd8"}, +] + +[package.dependencies] +bidict = "*" +dbus-fast = {version = "*", markers = "sys_platform == \"linux\""} +packaging = "*" +rubicon-objc = {version = "*", markers = "sys_platform == \"darwin\""} +"winrt-windows.applicationmodel.core" = {version = "*", markers = "sys_platform == \"win32\""} +"winrt-windows.data.xml.dom" = {version = "*", markers = "sys_platform == \"win32\""} +"winrt-windows.foundation" = {version = "*", markers = "sys_platform == \"win32\""} +"winrt-windows.foundation.collections" = {version = "*", markers = "sys_platform == \"win32\""} +"winrt-windows.foundation.interop" = {version = "*", markers = "sys_platform == \"win32\""} +"winrt-windows.ui.notifications" = {version = "*", markers = "sys_platform == \"win32\""} + +[package.extras] +dev = ["black", "bump2version", "flake8", "flake8-pyproject", "isort", "mypy", "pytest", "pytest-asyncio", "pytest-cov"] +docs = ["furo (==2024.8.6)", "sphinx (==8.0.2)", "sphinx-autoapi (==3.3.1)", "sphinx-mdinclude (==0.6.2)"] + [[package]] name = "flake8" version = "5.0.4" description = "the modular source code checker: pep8 pyflakes and co" optional = false python-versions = ">=3.6.1" +groups = ["dev"] files = [ {file = "flake8-5.0.4-py2.py3-none-any.whl", hash = "sha256:7a1cf6b73744f5806ab95e526f6f0d8c01c66d7bbe349562d22dfca20610b248"}, {file = "flake8-5.0.4.tar.gz", hash = "sha256:6fbe320aad8d6b95cec8b8e47bc933004678dc63095be98528b7bdd2a9f510db"}, @@ -244,6 +342,7 @@ version = "24.3.25" description = "The FlatBuffers serialization format for Python" optional = false python-versions = "*" +groups = ["main"] files = [ {file = "flatbuffers-24.3.25-py2.py3-none-any.whl", hash = "sha256:8dbdec58f935f3765e4f7f3cf635ac3a77f83568138d6a2311f524ec96364812"}, {file = "flatbuffers-24.3.25.tar.gz", hash = "sha256:de2ec5b203f21441716617f38443e0a8ebf3d25bf0d9c0bb0ce68fa00ad546a4"}, @@ -255,6 +354,7 @@ version = "10.0" description = "Human friendly output for text interfaces using Python" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +groups = ["main"] files = [ {file = "humanfriendly-10.0-py2.py3-none-any.whl", hash = "sha256:1697e1a8a8f550fd43c2865cd84542fc175a61dcb779b6fee18cf6b6ccba1477"}, {file = "humanfriendly-10.0.tar.gz", hash = "sha256:6b0b831ce8f15f7300721aa49829fc4e83921a9a301cc7f606be6686a2288ddc"}, @@ -269,6 +369,7 @@ version = "3.10" description = "Internationalized Domain Names in Applications (IDNA)" optional = false python-versions = ">=3.6" +groups = ["main"] files = [ {file = "idna-3.10-py3-none-any.whl", hash = "sha256:946d195a0d259cbba61165e88e65941f16e9b36ea6ddb97f00452bae8b1287d3"}, {file = "idna-3.10.tar.gz", hash = "sha256:12f65c9b470abda6dc35cf8e63cc574b1c52b11df2c86030af0ac09b01b13ea9"}, @@ -283,6 +384,8 @@ version = "1.16.3" description = "Mach-O header analysis and editing" optional = false python-versions = "*" +groups = ["dev"] +markers = "sys_platform == \"darwin\"" files = [ {file = "macholib-1.16.3-py2.py3-none-any.whl", hash = "sha256:0e315d7583d38b8c77e815b1ecbdbf504a8258d8b3e17b61165c6feb60d18f2c"}, {file = "macholib-1.16.3.tar.gz", hash = "sha256:07ae9e15e8e4cd9a788013d81f5908b3609aa76f9b1421bae9c4d7606ec86a30"}, @@ -297,6 +400,7 @@ version = "0.7.0" description = "McCabe checker, plugin for flake8" optional = false python-versions = ">=3.6" +groups = ["dev"] files = [ {file = "mccabe-0.7.0-py2.py3-none-any.whl", hash = "sha256:6c2d30ab6be0e4a46919781807b4f0d834ebdd6c6e3dca0bda5a15f863427b6e"}, {file = "mccabe-0.7.0.tar.gz", hash = "sha256:348e0240c33b60bbdf4e523192ef919f28cb2c3d7d5c7794f74009290f236325"}, @@ -308,6 +412,7 @@ version = "1.3.0" description = "Python library for arbitrary-precision floating-point arithmetic" optional = false python-versions = "*" +groups = ["main"] files = [ {file = "mpmath-1.3.0-py3-none-any.whl", hash = "sha256:a0b2b9fe80bbcd81a6647ff13108738cfb482d481d826cc0e02f5b35e5c88d2c"}, {file = "mpmath-1.3.0.tar.gz", hash = "sha256:7a28eb2a9774d00c7bc92411c19a89209d5da7c4c9a9e227be8330a23a25b91f"}, @@ -325,6 +430,8 @@ version = "1.3.0" description = "shlex for windows" optional = false python-versions = ">=3.5" +groups = ["main"] +markers = "sys_platform == \"win32\"" files = [ {file = "mslex-1.3.0-py3-none-any.whl", hash = "sha256:c7074b347201b3466fc077c5692fbce9b5f62a63a51f537a53fbbd02eff2eea4"}, {file = "mslex-1.3.0.tar.gz", hash = "sha256:641c887d1d3db610eee2af37a8e5abda3f70b3006cdfd2d0d29dc0d1ae28a85d"}, @@ -336,6 +443,7 @@ version = "1.0.0" description = "Type system extensions for programs checked with the mypy type checker." optional = false python-versions = ">=3.5" +groups = ["dev"] files = [ {file = "mypy_extensions-1.0.0-py3-none-any.whl", hash = "sha256:4392f6c0eb8a5668a69e23d168ffa70f0be9ccfd32b5cc2d26a34ae5b844552d"}, {file = "mypy_extensions-1.0.0.tar.gz", hash = "sha256:75dbf8955dc00442a438fc4d0666508a9a97b6bd41aa2f0ffe9d2f2725af0782"}, @@ -347,6 +455,7 @@ version = "1.23.5" description = "NumPy is the fundamental package for array computing with Python." optional = false python-versions = ">=3.8" +groups = ["main"] files = [ {file = "numpy-1.23.5-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:9c88793f78fca17da0145455f0d7826bcb9f37da4764af27ac945488116efe63"}, {file = "numpy-1.23.5-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:e9f4c4e51567b616be64e05d517c79a8a22f3606499941d97bb76f2ca59f982d"}, @@ -384,6 +493,7 @@ version = "1.19.2" description = "ONNX Runtime is a runtime accelerator for Machine Learning models" optional = false python-versions = "*" +groups = ["main"] files = [ {file = "onnxruntime_directml-1.19.2-cp310-cp310-win_amd64.whl", hash = "sha256:49c30e59115333655eb7863293c55a318e755abfd4801f3e187a2bd66c63e22a"}, {file = "onnxruntime_directml-1.19.2-cp311-cp311-win_amd64.whl", hash = "sha256:04cb32c21d793c5da4ad02d733149cc0af5b8a12553dfb95022fabb0f618a991"}, @@ -406,6 +516,7 @@ version = "4.10.0.84" description = "Wrapper package for OpenCV python bindings." optional = false python-versions = ">=3.6" +groups = ["main"] files = [ {file = "opencv-python-4.10.0.84.tar.gz", hash = "sha256:72d234e4582e9658ffea8e9cae5b63d488ad06994ef12d81dc303b17472f3526"}, {file = "opencv_python-4.10.0.84-cp37-abi3-macosx_11_0_arm64.whl", hash = "sha256:fc182f8f4cda51b45f01c64e4cbedfc2f00aff799debebc305d8d0210c43f251"}, @@ -425,6 +536,7 @@ version = "24.1" description = "Core utilities for Python packages" optional = false python-versions = ">=3.8" +groups = ["main", "dev"] files = [ {file = "packaging-24.1-py3-none-any.whl", hash = "sha256:5b8f2217dbdbd2f7f384c41c628544e6d52f2d0f53c6d0c3ea61aa5d1d7ff124"}, {file = "packaging-24.1.tar.gz", hash = "sha256:026ed72c8ed3fcce5bf8950572258698927fd1dbda10a5e981cdf0ac37f4f002"}, @@ -436,6 +548,7 @@ version = "0.12.1" description = "Utility library for gitignore style pattern matching of file paths." optional = false python-versions = ">=3.8" +groups = ["dev"] files = [ {file = "pathspec-0.12.1-py3-none-any.whl", hash = "sha256:a0d503e138a4c123b27490a4f7beda6a01c6f288df0e4a8b79c7eb0dc7b4cc08"}, {file = "pathspec-0.12.1.tar.gz", hash = "sha256:a482d51503a1ab33b1c67a6c3813a26953dbdc71c31dacaef9a838c4e29f5712"}, @@ -443,13 +556,15 @@ files = [ [[package]] name = "pefile" -version = "2024.8.26" +version = "2023.2.7" description = "Python PE parsing module" optional = false python-versions = ">=3.6.0" +groups = ["dev"] +markers = "sys_platform == \"win32\"" files = [ - {file = "pefile-2024.8.26-py3-none-any.whl", hash = "sha256:76f8b485dcd3b1bb8166f1128d395fa3d87af26360c2358fb75b80019b957c6f"}, - {file = "pefile-2024.8.26.tar.gz", hash = "sha256:3ff6c5d8b43e8c37bb6e6dd5085658d658a7a0bdcd20b6a07b1fcfc1c4e9d632"}, + {file = "pefile-2023.2.7-py3-none-any.whl", hash = "sha256:da185cd2af68c08a6cd4481f7325ed600a88f6a813bad9dea07ab3ef73d8d8d6"}, + {file = "pefile-2023.2.7.tar.gz", hash = "sha256:82e6114004b3d6911c77c3953e3838654b04511b8b66e8583db70c65998017dc"}, ] [[package]] @@ -458,6 +573,7 @@ version = "11.0.0" description = "Python Imaging Library (Fork)" optional = false python-versions = ">=3.9" +groups = ["main"] files = [ {file = "pillow-11.0.0-cp310-cp310-macosx_10_10_x86_64.whl", hash = "sha256:6619654954dc4936fcff82db8eb6401d3159ec6be81e33c6000dfd76ae189947"}, {file = "pillow-11.0.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:b3c5ac4bed7519088103d9450a1107f76308ecf91d6dabc8a33a2fcfb18d0fba"}, @@ -550,6 +666,7 @@ version = "4.3.6" description = "A small Python package for determining appropriate platform-specific dirs, e.g. a `user data dir`." optional = false python-versions = ">=3.8" +groups = ["dev"] files = [ {file = "platformdirs-4.3.6-py3-none-any.whl", hash = "sha256:73e575e1408ab8103900836b97580d5307456908a03e92031bab39e4554cc3fb"}, {file = "platformdirs-4.3.6.tar.gz", hash = "sha256:357fb2acbc885b0419afd3ce3ed34564c13c9b95c89360cd9563f73aa5e2b907"}, @@ -566,6 +683,7 @@ version = "5.28.2" description = "" optional = false python-versions = ">=3.8" +groups = ["main"] files = [ {file = "protobuf-5.28.2-cp310-abi3-win32.whl", hash = "sha256:eeea10f3dc0ac7e6b4933d32db20662902b4ab81bf28df12218aa389e9c2102d"}, {file = "protobuf-5.28.2-cp310-abi3-win_amd64.whl", hash = "sha256:2c69461a7fcc8e24be697624c09a839976d82ae75062b11a0972e41fd2cd9132"}, @@ -586,6 +704,7 @@ version = "5.9.8" description = "Cross-platform lib for process and system monitoring in Python." optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*" +groups = ["main"] files = [ {file = "psutil-5.9.8-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:26bd09967ae00920df88e0352a91cff1a78f8d69b3ecabbfe733610c0af486c8"}, {file = "psutil-5.9.8-cp27-cp27m-manylinux2010_i686.whl", hash = "sha256:05806de88103b25903dff19bb6692bd2e714ccf9e668d050d144012055cbca73"}, @@ -614,6 +733,7 @@ version = "2.9.1" description = "Python style guide checker" optional = false python-versions = ">=3.6" +groups = ["dev"] files = [ {file = "pycodestyle-2.9.1-py2.py3-none-any.whl", hash = "sha256:d1735fc58b418fd7c5f658d28d943854f8a849b01a5d0a1e6f3f3fdd0166804b"}, {file = "pycodestyle-2.9.1.tar.gz", hash = "sha256:2c9607871d58c76354b697b42f5d57e1ada7d261c261efac224b664affdc5785"}, @@ -625,6 +745,7 @@ version = "1.10.18" description = "Data validation and settings management using python type hints" optional = false python-versions = ">=3.7" +groups = ["main"] files = [ {file = "pydantic-1.10.18-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:e405ffcc1254d76bb0e760db101ee8916b620893e6edfbfee563b3c6f7a67c02"}, {file = "pydantic-1.10.18-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:e306e280ebebc65040034bff1a0a81fd86b2f4f05daac0131f29541cafd80b80"}, @@ -684,6 +805,7 @@ version = "2.5.0" description = "passive checker of Python programs" optional = false python-versions = ">=3.6" +groups = ["dev"] files = [ {file = "pyflakes-2.5.0-py2.py3-none-any.whl", hash = "sha256:4579f67d887f804e67edb544428f264b7b24f435b263c4614f384135cea553d2"}, {file = "pyflakes-2.5.0.tar.gz", hash = "sha256:491feb020dca48ccc562a8c0cbe8df07ee13078df59813b83959cbdada312ea3"}, @@ -695,6 +817,7 @@ version = "0.2" description = "Module for grabbing live video images using DirectShow" optional = false python-versions = "*" +groups = ["main"] files = [ {file = "pygrabber-0.2-py3-none-any.whl", hash = "sha256:5ac8bbe5f6a5dfb7c1c9c55d80ca9b9457743abd3ac8efa21cb9e302bdbf03ac"}, {file = "pygrabber-0.2.tar.gz", hash = "sha256:e584b119d4c9b9a8f339eb34d1fe7fdd16214a2bf5a1876171145caebdb9e413"}, @@ -706,35 +829,37 @@ numpy = ">=1.17.3" [[package]] name = "pyinstaller" -version = "5.13.2" +version = "6.11.1" description = "PyInstaller bundles a Python application and all its dependencies into a single package." optional = false -python-versions = "<3.13,>=3.7" +python-versions = "<3.14,>=3.8" +groups = ["dev"] files = [ - {file = "pyinstaller-5.13.2-py3-none-macosx_10_13_universal2.whl", hash = "sha256:16cbd66b59a37f4ee59373a003608d15df180a0d9eb1a29ff3bfbfae64b23d0f"}, - {file = "pyinstaller-5.13.2-py3-none-manylinux2014_aarch64.whl", hash = "sha256:8f6dd0e797ae7efdd79226f78f35eb6a4981db16c13325e962a83395c0ec7420"}, - {file = "pyinstaller-5.13.2-py3-none-manylinux2014_i686.whl", hash = "sha256:65133ed89467edb2862036b35d7c5ebd381670412e1e4361215e289c786dd4e6"}, - {file = "pyinstaller-5.13.2-py3-none-manylinux2014_ppc64le.whl", hash = "sha256:7d51734423685ab2a4324ab2981d9781b203dcae42839161a9ee98bfeaabdade"}, - {file = "pyinstaller-5.13.2-py3-none-manylinux2014_s390x.whl", hash = "sha256:2c2fe9c52cb4577a3ac39626b84cf16cf30c2792f785502661286184f162ae0d"}, - {file = "pyinstaller-5.13.2-py3-none-manylinux2014_x86_64.whl", hash = "sha256:c63ef6133eefe36c4b2f4daf4cfea3d6412ece2ca218f77aaf967e52a95ac9b8"}, - {file = "pyinstaller-5.13.2-py3-none-musllinux_1_1_aarch64.whl", hash = "sha256:aadafb6f213549a5906829bb252e586e2cf72a7fbdb5731810695e6516f0ab30"}, - {file = "pyinstaller-5.13.2-py3-none-musllinux_1_1_x86_64.whl", hash = "sha256:b2e1c7f5cceb5e9800927ddd51acf9cc78fbaa9e79e822c48b0ee52d9ce3c892"}, - {file = "pyinstaller-5.13.2-py3-none-win32.whl", hash = "sha256:421cd24f26144f19b66d3868b49ed673176765f92fa9f7914cd2158d25b6d17e"}, - {file = "pyinstaller-5.13.2-py3-none-win_amd64.whl", hash = "sha256:ddcc2b36052a70052479a9e5da1af067b4496f43686ca3cdda99f8367d0627e4"}, - {file = "pyinstaller-5.13.2-py3-none-win_arm64.whl", hash = "sha256:27cd64e7cc6b74c5b1066cbf47d75f940b71356166031deb9778a2579bb874c6"}, - {file = "pyinstaller-5.13.2.tar.gz", hash = "sha256:c8e5d3489c3a7cc5f8401c2d1f48a70e588f9967e391c3b06ddac1f685f8d5d2"}, + {file = "pyinstaller-6.11.1-py3-none-macosx_10_13_universal2.whl", hash = "sha256:44e36172de326af6d4e7663b12f71dbd34e2e3e02233e181e457394423daaf03"}, + {file = "pyinstaller-6.11.1-py3-none-manylinux2014_aarch64.whl", hash = "sha256:6d12c45a29add78039066a53fb05967afaa09a672426072b13816fe7676abfc4"}, + {file = "pyinstaller-6.11.1-py3-none-manylinux2014_i686.whl", hash = "sha256:ddc0fddd75f07f7e423da1f0822e389a42af011f9589e0269b87e0d89aa48c1f"}, + {file = "pyinstaller-6.11.1-py3-none-manylinux2014_ppc64le.whl", hash = "sha256:0d6475559c4939f0735122989611d7f739ed3bf02f666ce31022928f7a7e4fda"}, + {file = "pyinstaller-6.11.1-py3-none-manylinux2014_s390x.whl", hash = "sha256:e21c7806e34f40181e7606926a14579f848bfb1dc52cbca7eea66eccccbfe977"}, + {file = "pyinstaller-6.11.1-py3-none-manylinux2014_x86_64.whl", hash = "sha256:32c742a24fe65d0702958fadf4040f76de85859c26bec0008766e5dbabc5b68f"}, + {file = "pyinstaller-6.11.1-py3-none-musllinux_1_1_aarch64.whl", hash = "sha256:208c0ef6dab0837a0a273ea32d1a3619a208e3d1fe3fec3785eea71a77fd00ce"}, + {file = "pyinstaller-6.11.1-py3-none-musllinux_1_1_x86_64.whl", hash = "sha256:ad84abf465bcda363c1d54eafa76745d77b6a8a713778348377dc98d12a452f7"}, + {file = "pyinstaller-6.11.1-py3-none-win32.whl", hash = "sha256:2e8365276c5131c9bef98e358fbc305e4022db8bedc9df479629d6414021956a"}, + {file = "pyinstaller-6.11.1-py3-none-win_amd64.whl", hash = "sha256:7ac83c0dc0e04357dab98c487e74ad2adb30e7eb186b58157a8faf46f1fa796f"}, + {file = "pyinstaller-6.11.1-py3-none-win_arm64.whl", hash = "sha256:35e6b8077d240600bb309ed68bb0b1453fd2b7ab740b66d000db7abae6244423"}, + {file = "pyinstaller-6.11.1.tar.gz", hash = "sha256:491dfb4d9d5d1d9650d9507daec1ff6829527a254d8e396badd60a0affcb72ef"}, ] [package.dependencies] altgraph = "*" macholib = {version = ">=1.8", markers = "sys_platform == \"darwin\""} -pefile = {version = ">=2022.5.30", markers = "sys_platform == \"win32\""} -pyinstaller-hooks-contrib = ">=2021.4" +packaging = ">=22.0" +pefile = {version = ">=2022.5.30,<2024.8.26 || >2024.8.26", markers = "sys_platform == \"win32\""} +pyinstaller-hooks-contrib = ">=2024.9" pywin32-ctypes = {version = ">=0.2.1", markers = "sys_platform == \"win32\""} setuptools = ">=42.0.0" [package.extras] -encryption = ["tinyaes (>=1.0.0)"] +completion = ["argcomplete"] hook-testing = ["execnet (>=1.5.0)", "psutil", "pytest (>=2.7.3)"] [[package]] @@ -743,6 +868,7 @@ version = "2024.9" description = "Community maintained hooks for PyInstaller" optional = false python-versions = ">=3.8" +groups = ["dev"] files = [ {file = "pyinstaller_hooks_contrib-2024.9-py3-none-any.whl", hash = "sha256:1ddf9ba21d586afa84e505bb5c65fca10b22500bf3fdb89ee2965b99da53b891"}, {file = "pyinstaller_hooks_contrib-2024.9.tar.gz", hash = "sha256:4793869f370d1dc4806c101efd2890e3c3e703467d8d27bb5a3db005ebfb008d"}, @@ -758,6 +884,8 @@ version = "3.5.4" description = "A python implementation of GNU readline." optional = false python-versions = ">=3.8" +groups = ["main"] +markers = "sys_platform == \"win32\"" files = [ {file = "pyreadline3-3.5.4-py3-none-any.whl", hash = "sha256:eaf8e6cc3c49bcccf145fc6067ba8643d1df34d604a1ec0eccbf7a18e6d3fae6"}, {file = "pyreadline3-3.5.4.tar.gz", hash = "sha256:8d57d53039a1c75adba8e50dd3d992b28143480816187ea5efbd5c78e6c885b7"}, @@ -772,6 +900,7 @@ version = "3.5" description = "Python Serial Port Extension" optional = false python-versions = "*" +groups = ["main"] files = [ {file = "pyserial-3.5-py2.py3-none-any.whl", hash = "sha256:c4451db6ba391ca6ca299fb3ec7bae67a5c55dde170964c7a14ceefec02f2cf0"}, {file = "pyserial-3.5.tar.gz", hash = "sha256:3c77e014170dfffbd816e6ffc205e9842efb10be9f58ec16d3e8675b4925cddb"}, @@ -786,6 +915,7 @@ version = "4.70.1" description = "Python GUIs for Humans. Launched in 2018. It's 2024 & PySimpleGUI is an ACTIVE project. Super-simple to create custom GUI's. 340+ Demo programs & Cookbook for rapid start. Extensive documentation. Great for beginners & advanced GUI programmers." optional = false python-versions = "*" +groups = ["main"] files = [ {file = "PySimpleGUI-4.70.1-py3-none-any.whl", hash = "sha256:afdf64aaac0a6231b1bdac4c033a75daf8e259edb77b156fa86f6e2763bb8efd"}, {file = "PySimpleGUI-4.70.1.tar.gz", hash = "sha256:84b2bd09435a41d0a9cfd7ecbb464daa0557174cfd099068524266ed43b3525f"}, @@ -797,6 +927,7 @@ version = "1.9.0" description = "Open Sound Control server and client implementations in pure Python" optional = false python-versions = ">=3.10" +groups = ["main"] files = [ {file = "python_osc-1.9.0-py3-none-any.whl", hash = "sha256:4b16d8c4ae6a8a291037b2216a188d8654a4babe721387b8a37f89470b0c82c1"}, {file = "python_osc-1.9.0.tar.gz", hash = "sha256:ab50f66b1a19efd5bff722f26ab6450df19cdd84ba868f08c9a33e7c78514456"}, @@ -808,6 +939,8 @@ version = "0.2.3" description = "A (partial) reimplementation of pywin32 using ctypes/cffi" optional = false python-versions = ">=3.6" +groups = ["dev"] +markers = "sys_platform == \"win32\"" files = [ {file = "pywin32-ctypes-0.2.3.tar.gz", hash = "sha256:d162dc04946d704503b2edc4d55f3dba5c1d539ead017afa00142c38b9885755"}, {file = "pywin32_ctypes-0.2.3-py3-none-any.whl", hash = "sha256:8a1513379d709975552d202d942d9837758905c8d01eb82b8bcc30918929e7b8"}, @@ -819,6 +952,7 @@ version = "2.32.3" description = "Python HTTP for Humans." optional = false python-versions = ">=3.8" +groups = ["main"] files = [ {file = "requests-2.32.3-py3-none-any.whl", hash = "sha256:70761cfe03c773ceb22aa2f671b4757976145175cdfca038c02654d061d6dcc6"}, {file = "requests-2.32.3.tar.gz", hash = "sha256:55365417734eb18255590a9ff9eb97e9e1da868d4ccd6402399eaf68af20a760"}, @@ -834,12 +968,30 @@ urllib3 = ">=1.21.1,<3" socks = ["PySocks (>=1.5.6,!=1.5.7)"] use-chardet-on-py3 = ["chardet (>=3.0.2,<6)"] +[[package]] +name = "rubicon-objc" +version = "0.5.0" +description = "A bridge between an Objective C runtime environment and Python." +optional = false +python-versions = ">=3.9" +groups = ["main"] +markers = "sys_platform == \"darwin\"" +files = [ + {file = "rubicon_objc-0.5.0-py3-none-any.whl", hash = "sha256:a9c2a605120d6e5be327d3f42a71b60963125987e116f51846757b5e110854fa"}, + {file = "rubicon_objc-0.5.0.tar.gz", hash = "sha256:18f075649780d95df53d483642068c767d7d2cfbbf075ddef124a44b40b6d92e"}, +] + +[package.extras] +dev = ["pre-commit (==4.0.1)", "pytest (==8.3.4)", "setuptools_scm (==8.1.0)", "tox (==4.23.2)"] +docs = ["furo (==2024.8.6)", "pyenchant (==3.2.2)", "sphinx (==8.1.3)", "sphinx-autobuild (==2024.10.3)", "sphinx-copybutton (==0.5.2)", "sphinx_tabs (==3.4.7)", "sphinxcontrib-spelling (==8.0.1)"] + [[package]] name = "setuptools" version = "75.2.0" description = "Easily download, build, install, upgrade, and uninstall Python packages" optional = false python-versions = ">=3.8" +groups = ["dev"] files = [ {file = "setuptools-75.2.0-py3-none-any.whl", hash = "sha256:a7fcb66f68b4d9e8e66b42f9876150a3371558f98fa32222ffaa5bced76406f8"}, {file = "setuptools-75.2.0.tar.gz", hash = "sha256:753bb6ebf1f465a1912e19ed1d41f403a79173a9acf66a42e7e6aec45c3c16ec"}, @@ -860,6 +1012,7 @@ version = "1.13.3" description = "Computer algebra system (CAS) in Python" optional = false python-versions = ">=3.8" +groups = ["main"] files = [ {file = "sympy-1.13.3-py3-none-any.whl", hash = "sha256:54612cf55a62755ee71824ce692986f23c88ffa77207b30c1368eda4a7060f73"}, {file = "sympy-1.13.3.tar.gz", hash = "sha256:b27fd2c6530e0ab39e275fc9b683895367e51d5da91baa8d3d64db2565fec4d9"}, @@ -877,6 +1030,7 @@ version = "1.13.0" description = "tasks runner for python projects" optional = false python-versions = "<4.0,>=3.6" +groups = ["main"] files = [ {file = "taskipy-1.13.0-py3-none-any.whl", hash = "sha256:56f42b7e508d9aed2c7b6365f8d3dab62dbd0c768c1ab606c819da4fc38421f7"}, {file = "taskipy-1.13.0.tar.gz", hash = "sha256:2b52f0257958fed151f1340f7de93fcf0848f7a358ad62ba05c31c2ca04f89fe"}, @@ -894,6 +1048,7 @@ version = "2.0.2" description = "A lil' TOML parser" optional = false python-versions = ">=3.8" +groups = ["main"] files = [ {file = "tomli-2.0.2-py3-none-any.whl", hash = "sha256:2ebe24485c53d303f690b0ec092806a085f07af5a5aa1464f3931eec36caaa38"}, {file = "tomli-2.0.2.tar.gz", hash = "sha256:d46d457a85337051c36524bc5349dd91b1877838e2979ac5ced3e710ed8a60ed"}, @@ -905,6 +1060,7 @@ version = "4.12.2" description = "Backported and Experimental Type Hints for Python 3.8+" optional = false python-versions = ">=3.8" +groups = ["main"] files = [ {file = "typing_extensions-4.12.2-py3-none-any.whl", hash = "sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d"}, {file = "typing_extensions-4.12.2.tar.gz", hash = "sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8"}, @@ -916,6 +1072,7 @@ version = "2.2.3" description = "HTTP library with thread-safe connection pooling, file post, and more." optional = false python-versions = ">=3.8" +groups = ["main"] files = [ {file = "urllib3-2.2.3-py3-none-any.whl", hash = "sha256:ca899ca043dcb1bafa3e262d73aa25c465bfb49e0bd9dd5d59f1d0acba2f8fac"}, {file = "urllib3-2.2.3.tar.gz", hash = "sha256:e7d814a81dad81e6caf2ec9fdedb284ecc9c73076b62654547cc64ccdcae26e9"}, @@ -928,17 +1085,225 @@ socks = ["pysocks (>=1.5.6,!=1.5.7,<2.0)"] zstd = ["zstandard (>=0.18.0)"] [[package]] -name = "winotify" -version = "1.1.0" -description = "Show notification toast on Windows 10" +name = "winrt-runtime" +version = "2.3.0" +description = "Python projection of Windows Runtime (WinRT) APIs" optional = false -python-versions = "*" +python-versions = "<3.14,>=3.9" +groups = ["main"] +markers = "sys_platform == \"win32\"" files = [ - {file = "winotify-1.1.0-py3-none-any.whl", hash = "sha256:13aa9b1196b02ab3e699645b4407371ca73348421f8662565100d70c7cf552d9"}, - {file = "winotify-1.1.0.tar.gz", hash = "sha256:f8a0d6ff00cb2c1b3dcdfe825431f46f6aa5dc8ce84ffc59e8fda8c7e36687fe"}, + {file = "winrt_runtime-2.3.0-cp310-cp310-win32.whl", hash = "sha256:5c22ed339b420a6026134e28281b25078a9e6755eceb494dce5d42ee5814e3fd"}, + {file = "winrt_runtime-2.3.0-cp310-cp310-win_amd64.whl", hash = "sha256:f3ef0d6b281a8d4155ea14a0f917faf82a004d4996d07beb2b3d2af191503fb1"}, + {file = "winrt_runtime-2.3.0-cp310-cp310-win_arm64.whl", hash = "sha256:93ce23df52396ed89dfe659ee0e1a968928e526b9c577942d4a54ad55b333644"}, + {file = "winrt_runtime-2.3.0-cp311-cp311-win32.whl", hash = "sha256:352d70864846fd7ec89703845b82a35cef73f42d178a02a4635a38df5a61c0f8"}, + {file = "winrt_runtime-2.3.0-cp311-cp311-win_amd64.whl", hash = "sha256:286e6036af4903dd830398103c3edd110a46432347e8a52ba416d937c0e1f5f9"}, + {file = "winrt_runtime-2.3.0-cp311-cp311-win_arm64.whl", hash = "sha256:44d0f0f48f2f10c02b885989e8bbac41d7bf9c03550b20ddf562100356fca7a9"}, + {file = "winrt_runtime-2.3.0-cp312-cp312-win32.whl", hash = "sha256:03d3e4aedc65832e57c0dbf210ec2a9d7fb2819c74d420ba889b323e9fa5cf28"}, + {file = "winrt_runtime-2.3.0-cp312-cp312-win_amd64.whl", hash = "sha256:0dc636aec2f4ee6c3849fa59dae10c128f4a908f0ce452e91af65d812ea66dcb"}, + {file = "winrt_runtime-2.3.0-cp312-cp312-win_arm64.whl", hash = "sha256:d9f140c71e4f3bf7bf7d6853b246eab2e1632c72f218ff163aa41a74b576736f"}, + {file = "winrt_runtime-2.3.0-cp313-cp313-win32.whl", hash = "sha256:77f06df6b7a6cb536913ae455e30c1733d31d88dafe2c3cd8c3d0e2bcf7e2a20"}, + {file = "winrt_runtime-2.3.0-cp313-cp313-win_amd64.whl", hash = "sha256:7388774b74ea2f4510ab3a98c95af296665ebe69d9d7e2fd7ee2c3fc5856099e"}, + {file = "winrt_runtime-2.3.0-cp313-cp313-win_arm64.whl", hash = "sha256:0d3a4ac7661cad492d51653054e63328b940a6083c1ee1dd977f90069cb8afaa"}, + {file = "winrt_runtime-2.3.0-cp39-cp39-win32.whl", hash = "sha256:cd7bce2c7703054e7f64d11be665e9728e15d9dae0d952a51228fe830e0c4b55"}, + {file = "winrt_runtime-2.3.0-cp39-cp39-win_amd64.whl", hash = "sha256:2da01af378ab9374a3a933da97543f471a676a3b844318316869bffeff811e8a"}, + {file = "winrt_runtime-2.3.0-cp39-cp39-win_arm64.whl", hash = "sha256:1c6bbfcc7cbe1c8159ed5d776b30b7f1cbc2c6990803292823b0788c22d75636"}, + {file = "winrt_runtime-2.3.0.tar.gz", hash = "sha256:bb895a2b8c74b375781302215e2661914369c625aa1f8df84f8d37691b22db77"}, ] +[[package]] +name = "winrt-windows-applicationmodel-core" +version = "2.3.0" +description = "Python projection of Windows Runtime (WinRT) APIs" +optional = false +python-versions = "<3.14,>=3.9" +groups = ["main"] +markers = "sys_platform == \"win32\"" +files = [ + {file = "winrt_Windows.ApplicationModel.Core-2.3.0-cp310-cp310-win32.whl", hash = "sha256:b56901b142e28fd7e93185977c8e5aba5e2f0096d80d001e6af21ebcb12708ee"}, + {file = "winrt_Windows.ApplicationModel.Core-2.3.0-cp310-cp310-win_amd64.whl", hash = "sha256:7e0e34f3f649e83a176d18ac6757072cce705ffdf4f55e364376cf025578f1e6"}, + {file = "winrt_Windows.ApplicationModel.Core-2.3.0-cp310-cp310-win_arm64.whl", hash = "sha256:cbad56e7f22d9d8322b3cc98a72cf4b9d330b4e319f48f30da856b252fe95afc"}, + {file = "winrt_Windows.ApplicationModel.Core-2.3.0-cp311-cp311-win32.whl", hash = "sha256:c7f5d987f4f2a1d5be36967524c70bce2e9c1949bf78570640669d1e54db1bdb"}, + {file = "winrt_Windows.ApplicationModel.Core-2.3.0-cp311-cp311-win_amd64.whl", hash = "sha256:7ccea8ee3bcd7684491364cc7389f28caf73a4a132c4031a5bdca309232ca2a5"}, + {file = "winrt_Windows.ApplicationModel.Core-2.3.0-cp311-cp311-win_arm64.whl", hash = "sha256:41c5f002639e989e41b4bbcf5a1bd804b33ddb38409914bab719dd5d601e905f"}, + {file = "winrt_Windows.ApplicationModel.Core-2.3.0-cp312-cp312-win32.whl", hash = "sha256:d1fbf410e5b2d3089f45d9791b627ac1dd22317c8f0815743e8299cd25045060"}, + {file = "winrt_Windows.ApplicationModel.Core-2.3.0-cp312-cp312-win_amd64.whl", hash = "sha256:614ce137d184f1fe1520951d11d70c321416888a1ac76146944aad4d10e3ab1b"}, + {file = "winrt_Windows.ApplicationModel.Core-2.3.0-cp312-cp312-win_arm64.whl", hash = "sha256:3bc096dec5d1d4dff8301d5ef5a2b3d61a0ad483414e98cf99b3c1343961e8ea"}, + {file = "winrt_Windows.ApplicationModel.Core-2.3.0-cp313-cp313-win32.whl", hash = "sha256:923435eb28301579868715a4c85813cde3bd204d0604c6b4763898f8a9668689"}, + {file = "winrt_Windows.ApplicationModel.Core-2.3.0-cp313-cp313-win_amd64.whl", hash = "sha256:5222db4fe2db889d25278aa1a3ea103c916bfbac10b280d9bbafab0a9699addc"}, + {file = "winrt_Windows.ApplicationModel.Core-2.3.0-cp313-cp313-win_arm64.whl", hash = "sha256:442ee7123315df3d41bdc03688821d338cc83bbd5b31130bf95f7b8c928a5f94"}, + {file = "winrt_Windows.ApplicationModel.Core-2.3.0-cp39-cp39-win32.whl", hash = "sha256:a3df2a7f0c7d6d49f5830760f1c280bda1630d7a533358715e4ae126edd7b463"}, + {file = "winrt_Windows.ApplicationModel.Core-2.3.0-cp39-cp39-win_amd64.whl", hash = "sha256:d1e30df0f1b8af34262b351f66945511e1ffc2ae79452e360deb0a6fa38e1996"}, + {file = "winrt_Windows.ApplicationModel.Core-2.3.0-cp39-cp39-win_arm64.whl", hash = "sha256:a54d963b29be87d1ee6ee414f9db2388ca1ca4a5490919473d372c033fc6af45"}, + {file = "winrt_windows_applicationmodel_core-2.3.0.tar.gz", hash = "sha256:17ac6cb2c6872d51625547b4df5eadd0b296d966e976868520183d6dc45a0884"}, +] + +[package.dependencies] +winrt-runtime = "2.3.0" + +[package.extras] +all = ["winrt-Windows.ApplicationModel.Activation[all] (==2.3.0)", "winrt-Windows.ApplicationModel[all] (==2.3.0)", "winrt-Windows.Foundation.Collections[all] (==2.3.0)", "winrt-Windows.Foundation[all] (==2.3.0)", "winrt-Windows.System[all] (==2.3.0)", "winrt-Windows.UI.Core[all] (==2.3.0)"] + +[[package]] +name = "winrt-windows-data-xml-dom" +version = "2.3.0" +description = "Python projection of Windows Runtime (WinRT) APIs" +optional = false +python-versions = "<3.14,>=3.9" +groups = ["main"] +markers = "sys_platform == \"win32\"" +files = [ + {file = "winrt_Windows.Data.Xml.Dom-2.3.0-cp310-cp310-win32.whl", hash = "sha256:ab31a1b938fca5dce5be92c7fdaf70c70c5d8982d956ab1a6f34c5877f1acb3d"}, + {file = "winrt_Windows.Data.Xml.Dom-2.3.0-cp310-cp310-win_amd64.whl", hash = "sha256:c315b11b3b2e1a854e333d4c0ce7aa3ed3c8330ce7822a17d1c2c6358e2bb768"}, + {file = "winrt_Windows.Data.Xml.Dom-2.3.0-cp310-cp310-win_arm64.whl", hash = "sha256:7611237e8c8b1aa3bd493fee952afad9450a18d2fb40eed8defb63e145553170"}, + {file = "winrt_Windows.Data.Xml.Dom-2.3.0-cp311-cp311-win32.whl", hash = "sha256:b968a0496852dfc720c18fd475dd32861aaf545ab88d3320fbb5098515f43bd0"}, + {file = "winrt_Windows.Data.Xml.Dom-2.3.0-cp311-cp311-win_amd64.whl", hash = "sha256:4b85b309744442676b0a92bac6610147b4c9f059ee8bc2f65db8587a51c04b4a"}, + {file = "winrt_Windows.Data.Xml.Dom-2.3.0-cp311-cp311-win_arm64.whl", hash = "sha256:8cd9d9c100205bfbc069937791de447da57f4e731bee13e6dda7c898bd78290e"}, + {file = "winrt_Windows.Data.Xml.Dom-2.3.0-cp312-cp312-win32.whl", hash = "sha256:6a6835f3b07444c0efe5da6ad659ddc95e08a0c630b28629ca12e32303b59ccc"}, + {file = "winrt_Windows.Data.Xml.Dom-2.3.0-cp312-cp312-win_amd64.whl", hash = "sha256:2825db84e3660373d5a6c5a4dcc5f7e3180ec6f79d0689eeaa75504613cc93d1"}, + {file = "winrt_Windows.Data.Xml.Dom-2.3.0-cp312-cp312-win_arm64.whl", hash = "sha256:c93e7cd02d67f2956760e14b36f270bbd338ebcc1e4959114ace609f0e00c41d"}, + {file = "winrt_Windows.Data.Xml.Dom-2.3.0-cp313-cp313-win32.whl", hash = "sha256:12fc93efd93b1eb40b932cf47736ba42dcd94955d33266c91fcb5f4456b820a5"}, + {file = "winrt_Windows.Data.Xml.Dom-2.3.0-cp313-cp313-win_amd64.whl", hash = "sha256:6a37754acce645ce1fefeb1fafc8f703b8912528dc0178650392335d24647ed2"}, + {file = "winrt_Windows.Data.Xml.Dom-2.3.0-cp313-cp313-win_arm64.whl", hash = "sha256:48f6203613d6b4a17316e4682c60a73cd24bd1a1a897e5b38497a4fe23de0c1f"}, + {file = "winrt_Windows.Data.Xml.Dom-2.3.0-cp39-cp39-win32.whl", hash = "sha256:94095b93e3f1d99432f00b01c4a8fd9dc285b3a3b5b785e0d5add4a6f09482b2"}, + {file = "winrt_Windows.Data.Xml.Dom-2.3.0-cp39-cp39-win_amd64.whl", hash = "sha256:c58315e7c7f75f5241988b67a264b4747e3e2041e0780f3cfa6402a630ffae93"}, + {file = "winrt_Windows.Data.Xml.Dom-2.3.0-cp39-cp39-win_arm64.whl", hash = "sha256:875767d9e7f65e3fb3bb6675d370df6519e9746b0f20c8d1e06a44781339345d"}, + {file = "winrt_windows_data_xml_dom-2.3.0.tar.gz", hash = "sha256:3a9a8ded7d6ccaf5a141f3bb5eb6abdbdf680a25ec1dc0cd542ea1a4a652571a"}, +] + +[package.dependencies] +winrt-runtime = "2.3.0" + +[package.extras] +all = ["winrt-Windows.Foundation.Collections[all] (==2.3.0)", "winrt-Windows.Foundation[all] (==2.3.0)", "winrt-Windows.Storage.Streams[all] (==2.3.0)", "winrt-Windows.Storage[all] (==2.3.0)"] + +[[package]] +name = "winrt-windows-foundation" +version = "2.3.0" +description = "Python projection of Windows Runtime (WinRT) APIs" +optional = false +python-versions = "<3.14,>=3.9" +groups = ["main"] +markers = "sys_platform == \"win32\"" +files = [ + {file = "winrt_Windows.Foundation-2.3.0-cp310-cp310-win32.whl", hash = "sha256:ea7b0e82be5c05690fedaf0dac5aa5e5fefd7ebf90b1497e5993197d305d916d"}, + {file = "winrt_Windows.Foundation-2.3.0-cp310-cp310-win_amd64.whl", hash = "sha256:6807dd40f8ecd6403679f6eae0db81674fdcf33768d08fdee66e0a17b7a02515"}, + {file = "winrt_Windows.Foundation-2.3.0-cp310-cp310-win_arm64.whl", hash = "sha256:0a861815e97ace82583210c03cf800507b0c3a97edd914bfffa5f88de1fbafcc"}, + {file = "winrt_Windows.Foundation-2.3.0-cp311-cp311-win32.whl", hash = "sha256:c79b3d9384128b6b28c2483b4600f15c5d32c1f6646f9d77fdb3ee9bbaef6f81"}, + {file = "winrt_Windows.Foundation-2.3.0-cp311-cp311-win_amd64.whl", hash = "sha256:fdd9c4914070dc598f5961d9c7571dd7d745f5cc60347603bf39d6ee921bd85c"}, + {file = "winrt_Windows.Foundation-2.3.0-cp311-cp311-win_arm64.whl", hash = "sha256:62bbb0ffa273551d33fd533d6e09b6f9f633dc214225d483722af47d2525fb84"}, + {file = "winrt_Windows.Foundation-2.3.0-cp312-cp312-win32.whl", hash = "sha256:d36f472ac258e79eee6061e1bb4ce50bfd200f9271392d23479c800ca6aee8d1"}, + {file = "winrt_Windows.Foundation-2.3.0-cp312-cp312-win_amd64.whl", hash = "sha256:8de9b5e95a3fdabdb45b1952e05355dd5a678f80bf09a54d9f966dccc805b383"}, + {file = "winrt_Windows.Foundation-2.3.0-cp312-cp312-win_arm64.whl", hash = "sha256:37da09c08c9c772baedb1958e5ee116fe63809f33c6820c69750f340b3dda292"}, + {file = "winrt_Windows.Foundation-2.3.0-cp313-cp313-win32.whl", hash = "sha256:2b00fad3f2a3859ccae41eee12ab44434813a371c2f3003b4f2419e5eecb4832"}, + {file = "winrt_Windows.Foundation-2.3.0-cp313-cp313-win_amd64.whl", hash = "sha256:686619932b2a2c689cbebc7f5196437a45fd2056656ef130bb10240bb111086a"}, + {file = "winrt_Windows.Foundation-2.3.0-cp313-cp313-win_arm64.whl", hash = "sha256:b38dcb83fe82a7da9a57d7d5ad5deb09503b5be6d9357a9fd3016ca31673805d"}, + {file = "winrt_Windows.Foundation-2.3.0-cp39-cp39-win32.whl", hash = "sha256:2d6922de4dc38061b86d314c7319d7c6bd78a52d64ee0c93eb81474bddb499bc"}, + {file = "winrt_Windows.Foundation-2.3.0-cp39-cp39-win_amd64.whl", hash = "sha256:1513e43adff3779d2f611d8bdf9350ac1a7c04389e9e6b1d777c5cd54f46e4fc"}, + {file = "winrt_Windows.Foundation-2.3.0-cp39-cp39-win_arm64.whl", hash = "sha256:c811e4a4f79b947fbbb50f74d34ef6840dd2dd26e0199bd61a4185e48c6a84a8"}, + {file = "winrt_windows_foundation-2.3.0.tar.gz", hash = "sha256:c5766f011c8debbe89b460af4a97d026ca252144e62d7278c9c79c5581ea0c02"}, +] + +[package.dependencies] +winrt-runtime = "2.3.0" + +[package.extras] +all = ["winrt-Windows.Foundation.Collections[all] (==2.3.0)"] + +[[package]] +name = "winrt-windows-foundation-collections" +version = "2.3.0" +description = "Python projection of Windows Runtime (WinRT) APIs" +optional = false +python-versions = "<3.14,>=3.9" +groups = ["main"] +markers = "sys_platform == \"win32\"" +files = [ + {file = "winrt_Windows.Foundation.Collections-2.3.0-cp310-cp310-win32.whl", hash = "sha256:d2fca59eef9582a33c2797b1fda1d5757d66827cc34e6fc1d1c94a5875c4c043"}, + {file = "winrt_Windows.Foundation.Collections-2.3.0-cp310-cp310-win_amd64.whl", hash = "sha256:d14b47d9137aebad71aa4fde5892673f2fa326f5f4799378cb9f6158b07a9824"}, + {file = "winrt_Windows.Foundation.Collections-2.3.0-cp310-cp310-win_arm64.whl", hash = "sha256:cca5398a4522dffd76decf64a28368cda67e81dc01cad35a9f39cc351af69bdd"}, + {file = "winrt_Windows.Foundation.Collections-2.3.0-cp311-cp311-win32.whl", hash = "sha256:3808af64c95a9b464e8e97f6bec57a8b22168185f1c893f30de69aaf48c85b17"}, + {file = "winrt_Windows.Foundation.Collections-2.3.0-cp311-cp311-win_amd64.whl", hash = "sha256:1e9a3842a39feb965545124abfe79ed726adc5a1fc6a192470a3c5d3ec3f7a74"}, + {file = "winrt_Windows.Foundation.Collections-2.3.0-cp311-cp311-win_arm64.whl", hash = "sha256:751c2a68fef080dfe0af892ef4cebf317844e4baa786e979028757fe2740fba4"}, + {file = "winrt_Windows.Foundation.Collections-2.3.0-cp312-cp312-win32.whl", hash = "sha256:498c1fc403d3dc7a091aaac92af471615de4f9550d544347cb3b169c197183b5"}, + {file = "winrt_Windows.Foundation.Collections-2.3.0-cp312-cp312-win_amd64.whl", hash = "sha256:4d1b1cacc159f38d8e6b662f6e7a5c41879a36aa7434c1580d7f948c9037419e"}, + {file = "winrt_Windows.Foundation.Collections-2.3.0-cp312-cp312-win_arm64.whl", hash = "sha256:398d93b76a2cf70d5e75c1f802e1dd856501e63bc9a31f4510ac59f718951b9e"}, + {file = "winrt_Windows.Foundation.Collections-2.3.0-cp313-cp313-win32.whl", hash = "sha256:1e5f1637e0919c7bb5b11ba1eebbd43bc0ad9600cf887b59fcece0f8a6c0eac3"}, + {file = "winrt_Windows.Foundation.Collections-2.3.0-cp313-cp313-win_amd64.whl", hash = "sha256:c809a70bc0f93d53c7289a0a86d8869740e09fff0c57318a14401f5c17e0b912"}, + {file = "winrt_Windows.Foundation.Collections-2.3.0-cp313-cp313-win_arm64.whl", hash = "sha256:269942fe86af06293a2676c8b2dcd5cb1d8ddfe1b5244f11c16e48ae0a5d100f"}, + {file = "winrt_Windows.Foundation.Collections-2.3.0-cp39-cp39-win32.whl", hash = "sha256:936b1c5720b564ec699673198addee97f3bdb790622d24c8fd1b346a9767717c"}, + {file = "winrt_Windows.Foundation.Collections-2.3.0-cp39-cp39-win_amd64.whl", hash = "sha256:905a6ac9cd6b51659a9bba08cf44cfc925f528ef34cdd9c3a6c2632e97804a96"}, + {file = "winrt_Windows.Foundation.Collections-2.3.0-cp39-cp39-win_arm64.whl", hash = "sha256:1d6eac85976bd831e1b8cc479d7f14afa51c27cec5a38e2540077d3400cbd3ef"}, + {file = "winrt_windows_foundation_collections-2.3.0.tar.gz", hash = "sha256:15c997fd6b64ef0400a619319ea3c6851c9c24e31d51b6448ba9bac3616d25a0"}, +] + +[package.dependencies] +winrt-runtime = "2.3.0" + +[package.extras] +all = ["winrt-Windows.Foundation[all] (==2.3.0)"] + +[[package]] +name = "winrt-windows-foundation-interop" +version = "2.3.0" +description = "Python projection of Windows Runtime (WinRT) APIs" +optional = false +python-versions = "<3.14,>=3.9" +groups = ["main"] +markers = "sys_platform == \"win32\"" +files = [ + {file = "winrt_Windows.Foundation.Interop-2.3.0-cp310-cp310-win32.whl", hash = "sha256:855fb4b3ccb08040a4c86b188d470fd9c9974cfca1ff1f2a938abc6a6d47ede7"}, + {file = "winrt_Windows.Foundation.Interop-2.3.0-cp310-cp310-win_amd64.whl", hash = "sha256:59460adcc9ad6a050313607bec9e6f664d841c7854a89f0b60b051d7c7d2b61c"}, + {file = "winrt_Windows.Foundation.Interop-2.3.0-cp310-cp310-win_arm64.whl", hash = "sha256:a0b1117b70b2a0460c34060a8aca72eb48847c3a96065bb0f5d1057637b46412"}, + {file = "winrt_Windows.Foundation.Interop-2.3.0-cp311-cp311-win32.whl", hash = "sha256:50825edbdaaa4c529dd29ef4e63b2854f4a361c84f308a315671bb74f49006fc"}, + {file = "winrt_Windows.Foundation.Interop-2.3.0-cp311-cp311-win_amd64.whl", hash = "sha256:f01952941f1099cb753cb731eb7d42febaa7661ef45de9d3322bf77139091b0e"}, + {file = "winrt_Windows.Foundation.Interop-2.3.0-cp311-cp311-win_arm64.whl", hash = "sha256:5c3394cd50c365b64de9e1e7953f10501e323881fa0f834036c500e16d4b4449"}, + {file = "winrt_Windows.Foundation.Interop-2.3.0-cp312-cp312-win32.whl", hash = "sha256:fa62403891a3333f8b9277f61b92c338303244c28fdcac79e8cc03bcdff02ad3"}, + {file = "winrt_Windows.Foundation.Interop-2.3.0-cp312-cp312-win_amd64.whl", hash = "sha256:ddd79109a01db4fe1f54e0e47a7b8a54656d3abda9722b38f643b4c9e787196a"}, + {file = "winrt_Windows.Foundation.Interop-2.3.0-cp312-cp312-win_arm64.whl", hash = "sha256:5f6dd52d3cc6d13f56f3463c7298807f3c7d964b0469f1a0e0d168e6147e8c34"}, + {file = "winrt_Windows.Foundation.Interop-2.3.0-cp313-cp313-win32.whl", hash = "sha256:917839b4d0a87730c1ff604bdbbe21f39c5d2de5b691694776e7f96fa49f8002"}, + {file = "winrt_Windows.Foundation.Interop-2.3.0-cp313-cp313-win_amd64.whl", hash = "sha256:81cf25ce23a4e7703c79c55546c012d7e274f6212e785513d0114d97537a2c0e"}, + {file = "winrt_Windows.Foundation.Interop-2.3.0-cp313-cp313-win_arm64.whl", hash = "sha256:a5dedb8559382b850b77c984b8b42a730fe2a49294716ba3e48b7e8e30140dc7"}, + {file = "winrt_Windows.Foundation.Interop-2.3.0-cp39-cp39-win32.whl", hash = "sha256:bc0cc162303b3118f160cbffe4cdc98bd6675c22d13b6b7af12692abe9c018f4"}, + {file = "winrt_Windows.Foundation.Interop-2.3.0-cp39-cp39-win_amd64.whl", hash = "sha256:3d363550aef4464784ef8445d5a01d11cca72aed5c7094fc4458b15102a45609"}, + {file = "winrt_Windows.Foundation.Interop-2.3.0-cp39-cp39-win_arm64.whl", hash = "sha256:64514ea00b70e1acf413d728e7503b7682873a4fd8c7038c0d641e7c4fc94979"}, + {file = "winrt_windows_foundation_interop-2.3.0.tar.gz", hash = "sha256:ede0d6c5ba6a1ecde35fcbb71e7e3fbeba72fdc6bfff33e8068c381cd7df53de"}, +] + +[[package]] +name = "winrt-windows-ui-notifications" +version = "2.3.0" +description = "Python projection of Windows Runtime (WinRT) APIs" +optional = false +python-versions = "<3.14,>=3.9" +groups = ["main"] +markers = "sys_platform == \"win32\"" +files = [ + {file = "winrt_Windows.UI.Notifications-2.3.0-cp310-cp310-win32.whl", hash = "sha256:2bad9b89a8d6ca018de4d411c150468ea5d3119531965ef11b29dc648d006859"}, + {file = "winrt_Windows.UI.Notifications-2.3.0-cp310-cp310-win_amd64.whl", hash = "sha256:8565e8c082fce074e3536b2e80acb48a8035077d3041e22dd9c898d2261fbe6c"}, + {file = "winrt_Windows.UI.Notifications-2.3.0-cp310-cp310-win_arm64.whl", hash = "sha256:918d8f84a03cde7154d1fa2ff494547005edee95d1ce34cee8b9f64433da3b20"}, + {file = "winrt_Windows.UI.Notifications-2.3.0-cp311-cp311-win32.whl", hash = "sha256:07e1ee644bca735c1805ce0e464cf48f1fecb2b3f0b7bcdc42df285eb280bb92"}, + {file = "winrt_Windows.UI.Notifications-2.3.0-cp311-cp311-win_amd64.whl", hash = "sha256:5503e39a41100842bb68f40d6226c81bab4d47d67bb39afb654dae36f584b5a5"}, + {file = "winrt_Windows.UI.Notifications-2.3.0-cp311-cp311-win_arm64.whl", hash = "sha256:6802f4ca4415078f0a8e78b1ca32018287bfc49a589302b733e35fb675076349"}, + {file = "winrt_Windows.UI.Notifications-2.3.0-cp312-cp312-win32.whl", hash = "sha256:ed7f9124d373de46a7d06b284df0530f2f6a2a7321d3fe28f83f1c970da923c7"}, + {file = "winrt_Windows.UI.Notifications-2.3.0-cp312-cp312-win_amd64.whl", hash = "sha256:b00c07f44d1902461151c41db9ff0b1602f0272f324d7de35242be37b0c2a073"}, + {file = "winrt_Windows.UI.Notifications-2.3.0-cp312-cp312-win_arm64.whl", hash = "sha256:0367969f0f9f8ff54508122abf0df64507dcbbecdefcab1fec5cfc1ca96d2625"}, + {file = "winrt_Windows.UI.Notifications-2.3.0-cp313-cp313-win32.whl", hash = "sha256:dc1230249d63865f33f80ab0cae1139987dca446fa44af27b593afe99a67bf05"}, + {file = "winrt_Windows.UI.Notifications-2.3.0-cp313-cp313-win_amd64.whl", hash = "sha256:33cd44d4744d3b4b0ef7dc624bcd3483c6f0c8eb92006e45e2fdeed00eea69ec"}, + {file = "winrt_Windows.UI.Notifications-2.3.0-cp313-cp313-win_arm64.whl", hash = "sha256:5a8b52b373b1b61432743ec4169b729fe35f1126eb6355a6506a8ef6d69ed18c"}, + {file = "winrt_Windows.UI.Notifications-2.3.0-cp39-cp39-win32.whl", hash = "sha256:2146a3734aaf8f2461460d0d456cae594ecc32d89fb38f5acaeebc093462d468"}, + {file = "winrt_Windows.UI.Notifications-2.3.0-cp39-cp39-win_amd64.whl", hash = "sha256:cffc71c6da06f049f77d117263d1ce603e23b72c121de9da2e7cfc622c7f93dd"}, + {file = "winrt_Windows.UI.Notifications-2.3.0-cp39-cp39-win_arm64.whl", hash = "sha256:eb151634858339f2f266a33b9bff32caa2087a73e6de0588e28c636ac4cda2bc"}, + {file = "winrt_windows_ui_notifications-2.3.0.tar.gz", hash = "sha256:3bd5b1b991bfe9cd29f9357ebbef2387cccd3dbb5203d7c143c7c5d6d2631227"}, +] + +[package.dependencies] +winrt-runtime = "2.3.0" + +[package.extras] +all = ["winrt-Windows.ApplicationModel[all] (==2.3.0)", "winrt-Windows.Data.Xml.Dom[all] (==2.3.0)", "winrt-Windows.Foundation.Collections[all] (==2.3.0)", "winrt-Windows.Foundation[all] (==2.3.0)", "winrt-Windows.System[all] (==2.3.0)"] + [metadata] -lock-version = "2.0" +lock-version = "2.1" python-versions = "~3.11.0" -content-hash = "608aedff736664399e91de59d7c7f452e7695b93c74d9540b2ee8853fb5232ba" +content-hash = "9bb9c663ae7f778d7b3ec1025f6f937e0454c431707f1910a36d0d29b3fdd6e2" diff --git a/pyproject.toml b/pyproject.toml index ef12bf6..6e4fd18 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,6 +5,7 @@ description = "Affordable and Fully Opensource Mouth Tracker for VR" authors = ["SummerSigh", "RedHawk989"] license = "MIT" repository = "https://github.com/SummerSigh/ProjectBabble" +package-mode = false [tool.poetry.dependencies] python = "~3.11.0" @@ -15,9 +16,7 @@ numpy = "~1.23.5" pysimplegui = "^4.60.4" pydantic = "^1.10.2" pyserial = "^3.5" -winotify = [ - { version = "^1.1.0", platform = 'win32' } -] +desktop-notifier = "^6.0.0" onnxruntime-directml = "^1.15.0" colorama = "^0.4.6" @@ -29,7 +28,7 @@ pygrabber = "^0.2" [tool.poetry.group.dev.dependencies] black = "^22.10.0" -pyinstaller = "^5.6.2" +pyinstaller = "^6.11.1" flake8 = "^5.0.4" diff --git a/scripts/build_app_and_installer.bat b/scripts/build_app_and_installer.bat index d31555a..bbe6d20 100644 --- a/scripts/build_app_and_installer.bat +++ b/scripts/build_app_and_installer.bat @@ -11,4 +11,4 @@ robocopy %babblepath%\BabbleApp\Models %babblepath%\BabbleApp\dist\Babble_App\Mo cd %babblepath%\BabbleApp\dist\Babble_App\Models rmdir /s /q dev -start /D %innopath% cmd /k ISCC %babblepath%\scripts\installer.iss +::start /D %innopath% cmd /k ISCC %babblepath%\scripts\installer.iss From d47b161e7887dd4861aaf5b9c5f1dca5a69b3bd2 Mon Sep 17 00:00:00 2001 From: Rames The Generic Date: Tue, 4 Feb 2025 18:25:05 -0500 Subject: [PATCH 4/7] Revert "Fix MJPEG streams not connecting." This reverts commit ecef0e880be7e4b0ce2f169b68af7bad623ab4b4. --- BabbleApp/babbleapp.spec | 2 +- BabbleApp/camera.py | 23 +- BabbleApp/mjpeg_client.py | 33 -- BabbleApp/mjpeg_test.py | 77 ----- BabbleApp/mjpeg_videocapture.py | 115 ------- BabbleApp/mjpeg_videocapture.py.ai | 99 ------ BabbleApp/threaded_videocapture.py | 97 ------ BabbleApp/threaded_videocapture.py.old | 56 ---- BabbleApp/threaded_videocapture.py.old2 | 97 ------ double_slider.py | 91 ----- image_quant.py | 48 --- poetry.lock | 423 ++---------------------- pyproject.toml | 7 +- scripts/build_app_and_installer.bat | 2 +- 14 files changed, 48 insertions(+), 1122 deletions(-) delete mode 100644 BabbleApp/mjpeg_client.py delete mode 100644 BabbleApp/mjpeg_test.py delete mode 100644 BabbleApp/mjpeg_videocapture.py delete mode 100644 BabbleApp/mjpeg_videocapture.py.ai delete mode 100644 BabbleApp/threaded_videocapture.py delete mode 100644 BabbleApp/threaded_videocapture.py.old delete mode 100644 BabbleApp/threaded_videocapture.py.old2 delete mode 100644 double_slider.py delete mode 100644 image_quant.py diff --git a/BabbleApp/babbleapp.spec b/BabbleApp/babbleapp.spec index 8779223..2a6495f 100644 --- a/BabbleApp/babbleapp.spec +++ b/BabbleApp/babbleapp.spec @@ -23,7 +23,7 @@ exe = EXE(pyz, [], exclude_binaries=True, name='Babble_App', - debug=True, + debug=False, bootloader_ignore_signals=False, strip=False, upx=True, diff --git a/BabbleApp/camera.py b/BabbleApp/camera.py index 7134650..af4df25 100644 --- a/BabbleApp/camera.py +++ b/BabbleApp/camera.py @@ -10,9 +10,10 @@ import threading from enum import Enum import serial.tools.list_ports from lang_manager import LocaleStringManager as lang + from colorama import Fore from config import BabbleConfig, BabbleSettingsConfig -from utils.misc_utils import get_camera_index_by_name, list_camera_names, is_nt +from utils.misc_utils import get_camera_index_by_name, list_camera_names from vivefacialtracker.vivetracker import ViveTracker from vivefacialtracker.camera_controller import FTCameraController @@ -94,7 +95,6 @@ class Camera: self.config.capture_source is not None and self.config.capture_source != "" ): - self.current_capture_source = self.config.capture_source isSerial = any(x in str(self.config.capture_source) for x in PORTS) if isSerial: @@ -103,7 +103,7 @@ class Camera: self.cv2_camera = None if self.vft_camera is not None: self.vft_camera.close() - self.device_is_vft = False + self.device_is_vft = False; if ( self.serial_connection is None or self.camera_status == CameraState.DISCONNECTED @@ -116,7 +116,7 @@ class Camera: if self.cv2_camera is not None: self.cv2_camera.release() self.cv2_camera = None - self.device_is_vft = True + self.device_is_vft = True; if self.vft_camera is None: print(self.error_message.format(self.config.capture_source)) @@ -141,18 +141,18 @@ class Camera: self.cv2_camera is None or not self.cv2_camera.isOpened() or self.camera_status == CameraState.DISCONNECTED - #or get_camera_index_by_name(self.config.capture_source) != self.current_capture_source - or self.config.capture_source != self.current_capture_source + or get_camera_index_by_name(self.config.capture_source) != self.current_capture_source ): if self.vft_camera is not None: self.vft_camera.close() - self.device_is_vft = False + self.device_is_vft = False; print(self.error_message.format(self.config.capture_source)) # This requires a wait, otherwise we can error and possible screw up the camera # firmware. Fickle things. if self.cancellation_event.wait(WAIT_TIME): return + if self.config.capture_source not in self.camera_list: self.current_capture_source = self.config.capture_source else: @@ -163,8 +163,9 @@ class Camera: self.current_capture_source, cv2.CAP_FFMPEG ) else: - self.cv2_camera = cv2.VideoCapture() - self.cv2_camera.open(self.current_capture_source) + self.cv2_camera = cv2.VideoCapture( + self.current_capture_source + ) if not self.settings.gui_cam_resolution_x == 0: self.cv2_camera.set( @@ -180,6 +181,7 @@ class Camera: self.cv2_camera.set( cv2.CAP_PROP_FPS, self.settings.gui_cam_framerate ) + should_push = False else: # We don't have a capture source to try yet, wait for one to show up in the GUI. @@ -213,7 +215,7 @@ class Camera: return self.frame_number = self.frame_number + 1 elif self.cv2_camera is not None and self.cv2_camera.isOpened(): - ret, image = self.cv2_camera.read() # MJPEG Stream reconnects are currently limited by the hard coded 30 second timeout time on VideoCapture.read(). We can get around this by recompiling OpenCV or using a custom MJPEG stream imp. + ret, image = self.cv2_camera.read() if not ret: self.cv2_camera.set(cv2.CAP_PROP_POS_FRAMES, 0) raise RuntimeError(lang._instance.get_string("error.frame")) @@ -221,6 +223,7 @@ class Camera: else: # Switching from a Vive Facial Tracker to a CV2 camera return + self.FRAME_SIZE = image.shape # Calculate FPS current_frame_time = time.time() # Should be using "time.perf_counter()", not worth ~3x cycles? diff --git a/BabbleApp/mjpeg_client.py b/BabbleApp/mjpeg_client.py deleted file mode 100644 index 43abd23..0000000 --- a/BabbleApp/mjpeg_client.py +++ /dev/null @@ -1,33 +0,0 @@ -from mjpeg.client import MJPEGClient -from time import sleep -import numpy as np -import cv2 - - -url='http://192.168.1.186:8080/video' - -# Create a new client thread -client = MJPEGClient(url) - -# Allocate memory buffers for frames -bufs = client.request_buffers(65536, 50) -for b in bufs: - client.enqueue_buffer(b) - -# Start the client in a background thread -client.start() -while True: - client.print_stats() - buf = client.dequeue_buffer() - client.enqueue_buffer(buf) - data = memoryview(buf.data)[:buf.used] - img_array = np.frombuffer(data, dtype=np.uint8) - frame = cv2.imdecode(img_array, cv2.IMREAD_COLOR) - # Check if the frame was decoded correctly - if frame is not None: - cv2.imshow("MJPEG Stream", frame) - # Exit loop if 'q' is pressed - if cv2.waitKey(1) & 0xFF == ord("q"): - break - #print(frame.shape) - #print(len(array)) diff --git a/BabbleApp/mjpeg_test.py b/BabbleApp/mjpeg_test.py deleted file mode 100644 index 3fae2f8..0000000 --- a/BabbleApp/mjpeg_test.py +++ /dev/null @@ -1,77 +0,0 @@ -import requests -import numpy as np -import cv2 -import threading -import io - -class MJPEGVideoCapture: - def __init__(self, url): - self.url = url - self.session = requests.Session() - self.stream = None - self.byte_buffer = b"" - self.frame = None - self.running = False - self.lock = threading.Lock() - self.thread = None - - def open(self): - if not self.running: - self.running = True - self.thread = threading.Thread(target=self._update, daemon=True) - self.thread.start() - - def _update(self): - while self.running: - try: - self.stream = self.session.get(self.url, stream=True, timeout=3) - for chunk in self.stream.iter_content(chunk_size=1024): - if not self.running: - break - self.byte_buffer += chunk - start = self.byte_buffer.find(b'\xff\xd8') # JPEG start - end = self.byte_buffer.find(b'\xff\xd9') # JPEG end - - if start != -1 and end != -1: - jpg = self.byte_buffer[start:end+2] - self.byte_buffer = self.byte_buffer[end+2:] - - image = np.frombuffer(jpg, dtype=np.uint8) - if image.size != 0: - frame = cv2.imdecode(image, cv2.IMREAD_GRAYSCALE) - if frame is not None: - with self.lock: - self.frame = frame - except requests.RequestException: - continue # Retry on failure - - def read(self): - with self.lock: - return self.frame is not None, self.frame.copy() if self.frame is not None else None - - def isOpened(self): - return self.running - - def release(self): - self.running = False - if self.thread is not None: - self.thread.join() - self.stream = None - self.frame = None - self.byte_buffer = b"" - self.session.close() - -if __name__ == "__main__": - cap = MJPEGVideoCapture("http://openiristracker.local") - cap.open() - - while cap.isOpened(): - ret, frame = cap.read() - if ret: - cv2.imshow("MJPEG Stream", frame) - - if cv2.waitKey(1) & 0xFF == ord("q"): - break - - cap.release() - cv2.destroyAllWindows() diff --git a/BabbleApp/mjpeg_videocapture.py b/BabbleApp/mjpeg_videocapture.py deleted file mode 100644 index 874bd38..0000000 --- a/BabbleApp/mjpeg_videocapture.py +++ /dev/null @@ -1,115 +0,0 @@ -import requests -import numpy as np -import cv2 -import threading -import time -import queue - -class MJPEGVideoCapture: - def __init__(self, url, max_buffer_size=1024*1024): - self.url = url - self.session = requests.Session() - self.stream = None - self.byte_buffer = b"" - self.max_buffer_size = max_buffer_size # Maximum allowed size for byte_buffer (e.g., 1 MB) - self.running = False - self.thread = None - # Use a queue with maxsize=1 so that only the latest frame is kept. - self.frame_queue = queue.Queue(maxsize=1) - print("VC Opened") - - def open(self): - if not self.running: - self.running = True - self.thread = threading.Thread(target=self._update, daemon=True) - self.thread.start() - # Allow some time for the update thread to start and capture a frame. - time.sleep(2) - - def _update(self): - while self.running: - try: - self.stream = self.session.get(self.url, stream=True, timeout=1) - for chunk in self.stream.iter_content(chunk_size=512): - if not self.running: - break - self.byte_buffer += chunk - - # Flush the buffer if it grows too large. - if len(self.byte_buffer) > self.max_buffer_size: - print("Warning: byte_buffer exceeded maximum size; flushing buffer.") - self.byte_buffer = b"" - continue - - # Instead of taking the first complete JPEG frame, we look for the latest complete one. - # Find the last occurrence of the JPEG start and end markers. - start = self.byte_buffer.rfind(b'\xff\xd8') - end = self.byte_buffer.rfind(b'\xff\xd9') - - # If a complete JPEG is found, extract it and flush the entire buffer. - if start != -1 and end != -1 and end > start: - jpg = self.byte_buffer[start:end+2] - self.byte_buffer = b"" # Discard all other data. - - image = np.frombuffer(jpg, dtype=np.uint8) - if image.size != 0: - # Decode as grayscale. - frame = cv2.imdecode(image, cv2.IMREAD_GRAYSCALE) - if frame is not None: - # Resize to 240x240. - frame = cv2.resize(frame, (240, 240)) - # Convert grayscale to 3-channel image with shape (240, 240, 3). - frame = np.stack([frame] * 3, axis=-1) - - # Try to put the frame into the queue. - # If the queue is full, remove the old frame first. - try: - self.frame_queue.put(frame, block=False) - except queue.Full: - try: - self.frame_queue.get_nowait() - except queue.Empty: - pass - self.frame_queue.put(frame, block=False) - except requests.RequestException: - # On failure, simply continue to try again. - continue - - def read(self): - """ - Block until a frame is available and return the latest frame. - This mimics the blocking behavior of cap.read(), but always returns the latest frame. - """ - frame = self.frame_queue.get() # This call blocks until a frame is available. - return True, frame.copy() - - def isOpened(self): - return self.running - - def release(self): - self.running = False - if self.thread is not None: - self.thread.join() - self.stream = None - self.byte_buffer = b"" - self.session.close() - -# Testing code: -test = True -if test: - if __name__ == "__main__": - cap = MJPEGVideoCapture("http://192.168.1.186:8080/video") - cap.open() - - while cap.isOpened(): - ret, frame = cap.read() - # Print the current byte_buffer length to monitor its size. - print("Current byte_buffer length:", len(cap.byte_buffer)) - if ret: - cv2.imshow("MJPEG Stream", frame) - - if cv2.waitKey(1) & 0xFF == ord("q"): - break - - cap.release() - cv2.destroyAllWindows() diff --git a/BabbleApp/mjpeg_videocapture.py.ai b/BabbleApp/mjpeg_videocapture.py.ai deleted file mode 100644 index 2208da7..0000000 --- a/BabbleApp/mjpeg_videocapture.py.ai +++ /dev/null @@ -1,99 +0,0 @@ -from mjpeg.client import MJPEGClient -import cv2 -import numpy as np -import threading -import time -import queue - -class MJPEGVideoCapture: - def __init__(self, url): - self.url = url - self.running = False - self.client = None - self.frame_queue = queue.Queue(maxsize=1) - self.thread = None - - # Initialize MJPEGClient - self.client = MJPEGClient(url) - - print("VC Opened") - - def open(self): - if not self.running: - self.running = True - # Create and enqueue buffers - bufs = self.client.request_buffers(65536, 50) - for b in bufs: - self.client.enqueue_buffer(b) - - # Start the client in a background thread - self.client.start() - - # Allow some time for the update thread to start and capture a frame. - time.sleep(2) - - def _update(self): - while self.running: - try: - buf = self.client.dequeue_buffer() - data = memoryview(buf.data)[:buf.used] - img_array = np.frombuffer(data, dtype=np.uint8) - - # Decode the image - frame = cv2.imdecode(img_array, cv2.IMREAD_COLOR) - - if frame is not None: - # Resize to 240x240 and convert to 3-channel - frame = cv2.resize(frame, (240, 240)) - - # Try to put the frame into the queue. - try: - self.frame_queue.put(frame, block=False) - except queue.Full: - try: - self.frame_queue.get_nowait() - except queue.Empty: - pass - self.frame_queue.put(frame, block=False) - - # Enqueue buffer back for reuse - self.client.enqueue_buffer(buf) - - except Exception as e: - print(f"Error in _update: {e}") - continue - - def read(self): - """ - Block until a frame is available and return the latest frame. - This mimics the blocking behavior of cap.read(), but always returns the latest frame. - """ - frame = self.frame_queue.get() # This call blocks until a frame is available. - return True, frame.copy() - - def isOpened(self): - return self.running - - def release(self): - self.running = False - if self.client: - self.client.stop() - self.frame_queue.queue.clear() - -# Testing code: -test = True -if test: - if __name__ == "__main__": - cap = MJPEGVideoCapture("http://openiristracker.local") - cap.open() - - while cap.isOpened(): - ret, frame = cap.read() - if ret: - cv2.imshow("MJPEG Stream", frame) - - if cv2.waitKey(1) & 0xFF == ord("q"): - break - - cap.release() - cv2.destroyAllWindows() diff --git a/BabbleApp/threaded_videocapture.py b/BabbleApp/threaded_videocapture.py deleted file mode 100644 index 2e3f48f..0000000 --- a/BabbleApp/threaded_videocapture.py +++ /dev/null @@ -1,97 +0,0 @@ -import cv2 -import threading -import concurrent.futures -import time - -def read_frame(cap): - return cap.read() - -class VideoCaptureThread: - def __init__(self, stream_url, timeout=5): - self.stream_url = stream_url - self.timeout = timeout - self.cap = cv2.VideoCapture(self.stream_url) - self.frame = None - self.ret = None - self.running = True - self.lock = threading.Lock() - self.new_frame_available = threading.Condition(self.lock) - self.thread = self.start_thread() - - def start_thread(self): - thread = threading.Thread(target=self.update, daemon=True) - thread.start() - return thread - - def update(self): - self.cap = cv2.VideoCapture(self.stream_url) - while self.running: - try: - if self.cap.isOpened(): - with concurrent.futures.ThreadPoolExecutor() as executor: - future = executor.submit(read_frame, self.cap) - try: - readframe = future.result(timeout=self.timeout) # Wait for result with timeout - ret, frame = readframe - except concurrent.futures.TimeoutError: - print("Timeout: cap.read() took too long!") - self.reconnect() - self.thread = self.start_thread() # Restart the thread - ret, frame = False, None - if ret: - with self.lock: - self.ret = ret - self.frame = frame - self.new_frame_available.notify_all() # Notify waiting threads - else: - print("Frame read failed. Attempting reconnect...") - self.reconnect() - time.sleep(0.01) # Small delay to prevent 100% CPU usage - except Exception as e: - print(f"Unexpected error in update thread: {e}") - self.reconnect() - self.thread = self.start_thread() # Restart the thread - break # Exit the loop to allow the new thread to take over - - def get_fps(self): - fps = self.cap.get(cv2.CAP_PROP_FPS) - return fps if fps > 0 else 30 # Default to 30 FPS if unknown - - def read(self): - """Blocks until a new frame is available or times out.""" - start_time = time.time() - with self.lock: - while self.frame is None: - elapsed_time = time.time() - start_time - if elapsed_time >= self.timeout: - print("Timeout: No frame received in time. Restarting capture...") - self.reconnect() - return None, None # Return None if timeout occurs - - # Wait with a short timeout to allow the background thread to update the frame - self.new_frame_available.wait(timeout=0.1) - - # Return the frame if available - time.sleep(1/60) - return self.ret, self.frame - - def set(self, kw, val): - self.cap.set(kw, val) - - def get(self, kw): - return self.cap.get(kw) - - def isOpened(self): - return self.cap.isOpened() - - def reconnect(self): - """Safely restarts the video capture.""" - self.cap.release() - time.sleep(2) # Small delay to allow a clean reconnect - self.cap = cv2.VideoCapture(self.stream_url) - print("Capture restarted.") - - def release(self): - self.running = False - self.thread.join() - self.cap.release() \ No newline at end of file diff --git a/BabbleApp/threaded_videocapture.py.old b/BabbleApp/threaded_videocapture.py.old deleted file mode 100644 index 7e1c582..0000000 --- a/BabbleApp/threaded_videocapture.py.old +++ /dev/null @@ -1,56 +0,0 @@ -import cv2 -import threading -import time - -class VideoCaptureThread: - def __init__(self, stream_url, timeout=5): - self.stream_url = stream_url - self.timeout = timeout - self.cap = cv2.VideoCapture(self.stream_url) - self.frame = None - self.ret = None - self.running = True - self.lock = threading.Lock() - self.thread = threading.Thread(target=self.update, daemon=True) - self.thread.start() - - def update(self): - while self.running: - if self.cap.isOpened(): - ret, frame = self.cap.read() - if ret: - self.ret = ret - with self.lock: - self.frame = frame - else: - print("Frame read failed. Attempting reconnect...") - self.reconnect() - time.sleep(0.01) # Small delay to prevent 100% CPU usage - - def get_fps(self): - fps = self.cap.get(cv2.CAP_PROP_FPS) - return fps if fps > 0 else 30 # Default to 30 FPS if unknown - - def read(self): - with self.lock: - #time.sleep(1/60) - return self.ret, self.frame - - def set(self, kw, val): - self.cap.set(kw, val) - - def get(self, kw): - self.cap.get(kw) - - def isOpened(self): - return self.cap.isOpened() - - def reconnect(self): - self.cap.release() - time.sleep(2) # Wait before reconnecting - self.cap = cv2.VideoCapture(self.stream_url) - - def stop(self): - self.running = False - self.thread.join() - self.cap.release() \ No newline at end of file diff --git a/BabbleApp/threaded_videocapture.py.old2 b/BabbleApp/threaded_videocapture.py.old2 deleted file mode 100644 index 2e3f48f..0000000 --- a/BabbleApp/threaded_videocapture.py.old2 +++ /dev/null @@ -1,97 +0,0 @@ -import cv2 -import threading -import concurrent.futures -import time - -def read_frame(cap): - return cap.read() - -class VideoCaptureThread: - def __init__(self, stream_url, timeout=5): - self.stream_url = stream_url - self.timeout = timeout - self.cap = cv2.VideoCapture(self.stream_url) - self.frame = None - self.ret = None - self.running = True - self.lock = threading.Lock() - self.new_frame_available = threading.Condition(self.lock) - self.thread = self.start_thread() - - def start_thread(self): - thread = threading.Thread(target=self.update, daemon=True) - thread.start() - return thread - - def update(self): - self.cap = cv2.VideoCapture(self.stream_url) - while self.running: - try: - if self.cap.isOpened(): - with concurrent.futures.ThreadPoolExecutor() as executor: - future = executor.submit(read_frame, self.cap) - try: - readframe = future.result(timeout=self.timeout) # Wait for result with timeout - ret, frame = readframe - except concurrent.futures.TimeoutError: - print("Timeout: cap.read() took too long!") - self.reconnect() - self.thread = self.start_thread() # Restart the thread - ret, frame = False, None - if ret: - with self.lock: - self.ret = ret - self.frame = frame - self.new_frame_available.notify_all() # Notify waiting threads - else: - print("Frame read failed. Attempting reconnect...") - self.reconnect() - time.sleep(0.01) # Small delay to prevent 100% CPU usage - except Exception as e: - print(f"Unexpected error in update thread: {e}") - self.reconnect() - self.thread = self.start_thread() # Restart the thread - break # Exit the loop to allow the new thread to take over - - def get_fps(self): - fps = self.cap.get(cv2.CAP_PROP_FPS) - return fps if fps > 0 else 30 # Default to 30 FPS if unknown - - def read(self): - """Blocks until a new frame is available or times out.""" - start_time = time.time() - with self.lock: - while self.frame is None: - elapsed_time = time.time() - start_time - if elapsed_time >= self.timeout: - print("Timeout: No frame received in time. Restarting capture...") - self.reconnect() - return None, None # Return None if timeout occurs - - # Wait with a short timeout to allow the background thread to update the frame - self.new_frame_available.wait(timeout=0.1) - - # Return the frame if available - time.sleep(1/60) - return self.ret, self.frame - - def set(self, kw, val): - self.cap.set(kw, val) - - def get(self, kw): - return self.cap.get(kw) - - def isOpened(self): - return self.cap.isOpened() - - def reconnect(self): - """Safely restarts the video capture.""" - self.cap.release() - time.sleep(2) # Small delay to allow a clean reconnect - self.cap = cv2.VideoCapture(self.stream_url) - print("Capture restarted.") - - def release(self): - self.running = False - self.thread.join() - self.cap.release() \ No newline at end of file diff --git a/double_slider.py b/double_slider.py deleted file mode 100644 index 3ada005..0000000 --- a/double_slider.py +++ /dev/null @@ -1,91 +0,0 @@ -import PySimpleGUI as sg - -class RangeSlider: - def __init__(self, canvas_size=(400, 50), slider_x_range=(0, 400), initial_values=(50, 350)): - - self.canvas_size = canvas_size - self.slider_x_range = slider_x_range - self.current_values = list(initial_values) - - - self.graph_element = sg.Graph( - canvas_size=self.canvas_size, - graph_bottom_left=(0, -10), - graph_top_right=(self.canvas_size[0], 10), - background_color='lightgray', - key='-GRAPH-', - enable_events=True, - drag_submits=True - ) - - self.moving_index = None - - def draw_slider(self, graph, value): - graph.erase() - - graph.draw_line((self.slider_x_range[0], 0), (self.slider_x_range[1], 0), width=4, color='darkblue') - - graph.draw_rectangle( - (self.current_values[0], -1), - (self.current_values[1], 1), - line_color='dodgerblue', - fill_color='dodgerblue', - ) - width = 1 - graph.draw_rectangle( - (value - (width/2), -1.8), - (value + (width/2), 1.5), - line_color='black', - fill_color='black', - ) - for x in self.current_values: - - graph.draw_circle((x, 0), 8, fill_color='dodgerblue', line_color='dodgerblue') - - - - - def handle_event(self, event, values, window): - if event == '-GRAPH-': - mouse_x, _ = values['-GRAPH-'] - - if self.moving_index is None: - for i, x in enumerate(self.current_values): - if abs(mouse_x - x) <= 8: - self.moving_index = i - break - else: - self.current_values[self.moving_index] = min(max(mouse_x, self.slider_x_range[0]), self.slider_x_range[1]) - - if self.current_values[0] > self.current_values[1]: - self.current_values[0], self.current_values[1] = self.current_values[1], self.current_values[0] - self.draw_slider(window['-GRAPH-'], 200) - window['-RANGE-TEXT-'].update(f'{self.current_values[0]} - {self.current_values[1]}') - else: - self.moving_index = None - - def get_layout(self): - return [ - [self.graph_element], - [sg.Text("Selected Range: "), sg.Text(f"{self.current_values[0]} - {self.current_values[1]}", size=(15, 1), key='-RANGE-TEXT-')] - ] - - -def main(): - range_slider = RangeSlider() - layout = range_slider.get_layout() + [[sg.Button('Exit')]] - - window = sg.Window('Range Slider with Graph', layout, finalize=True) - range_slider.draw_slider(window['-GRAPH-'], 200) - - while True: - event, values = window.read() - if event == sg.WINDOW_CLOSED or event == 'Exit': - break - - range_slider.handle_event(event, values, window) - - window.close() - -if __name__ == '__main__': - main() \ No newline at end of file diff --git a/image_quant.py b/image_quant.py deleted file mode 100644 index f8c69cc..0000000 --- a/image_quant.py +++ /dev/null @@ -1,48 +0,0 @@ -import cv2 -import numpy as np -import struct -import zstd - -def quantize_grayscale(image: np.ndarray, num_bits: int) -> np.ndarray: - """ - Quantizes a grayscale image to a specified number of bits. - - Args: - image (np.ndarray): Grayscale image (values between 0 and 255). - num_bits (int): Number of bits for quantization (1-8). - - Returns: - np.ndarray: Quantized grayscale image. - """ - if not (1 <= num_bits <= 8): - raise ValueError("num_bits must be between 1 and 8.") - - # Calculate the number of levels - num_levels = 2 ** num_bits - - # Normalize the image to the range [0, num_levels - 1] - quantized = (image / 255.0) * (num_levels - 1) - - # Round to nearest integer and convert back to integers - quantized = np.round(quantized).astype(np.uint8) - - # Scale back to the full grayscale range [0, 255] - quantized = (quantized * (255 // (num_levels - 1))).astype(np.uint8) - - return quantized - - -image = cv2.imread("0001.png") -image = cv2.resize(image, (194, 194)) -image = cv2.GaussianBlur(image, 2) -image = quantize_grayscale(image, 4) -data = image.tobytes() -frame_size = len(data) -compressed_size = len(zstd.compress(data, 5)) -est_fps = 225/(compressed_size / 1000) -print(frame_size) -print(compressed_size) -print(est_fps) - -cv2.imshow("yeah", image) -cv2.waitKey(0) \ No newline at end of file diff --git a/poetry.lock b/poetry.lock index 7ccbbff..1309bb0 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 2.0.1 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.8.4 and should not be changed by hand. [[package]] name = "altgraph" @@ -6,31 +6,17 @@ version = "0.17.4" description = "Python graph (network) package" optional = false python-versions = "*" -groups = ["dev"] files = [ {file = "altgraph-0.17.4-py2.py3-none-any.whl", hash = "sha256:642743b4750de17e655e6711601b077bc6598dbfa3ba5fa2b2a35ce12b508dff"}, {file = "altgraph-0.17.4.tar.gz", hash = "sha256:1b5afbb98f6c4dcadb2e2ae6ab9fa994bbb8c1d75f4fa96d340f9437ae454406"}, ] -[[package]] -name = "bidict" -version = "0.23.1" -description = "The bidirectional mapping library for Python." -optional = false -python-versions = ">=3.8" -groups = ["main"] -files = [ - {file = "bidict-0.23.1-py3-none-any.whl", hash = "sha256:5dae8d4d79b552a71cbabc7deb25dfe8ce710b17ff41711e13010ead2abfc3e5"}, - {file = "bidict-0.23.1.tar.gz", hash = "sha256:03069d763bc387bbd20e7d49914e75fc4132a41937fa3405417e1a5a2d006d71"}, -] - [[package]] name = "black" version = "22.12.0" description = "The uncompromising code formatter." optional = false python-versions = ">=3.7" -groups = ["dev"] files = [ {file = "black-22.12.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9eedd20838bd5d75b80c9f5487dbcb06836a43833a37846cf1d8c1cc01cef59d"}, {file = "black-22.12.0-cp310-cp310-win_amd64.whl", hash = "sha256:159a46a4947f73387b4d83e87ea006dbb2337eab6c879620a3ba52699b1f4351"}, @@ -64,7 +50,6 @@ version = "2024.8.30" description = "Python package for providing Mozilla's CA Bundle." optional = false python-versions = ">=3.6" -groups = ["main"] files = [ {file = "certifi-2024.8.30-py3-none-any.whl", hash = "sha256:922820b53db7a7257ffbda3f597266d435245903d80737e34f8a45ff3e3230d8"}, {file = "certifi-2024.8.30.tar.gz", hash = "sha256:bec941d2aa8195e248a60b31ff9f0558284cf01a52591ceda73ea9afffd69fd9"}, @@ -76,7 +61,6 @@ version = "3.4.0" description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet." optional = false python-versions = ">=3.7.0" -groups = ["main"] files = [ {file = "charset_normalizer-3.4.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:4f9fc98dad6c2eaa32fc3af1417d95b5e3d08aff968df0cd320066def971f9a6"}, {file = "charset_normalizer-3.4.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:0de7b687289d3c1b3e8660d0741874abe7888100efe14bd0f9fd7141bcbda92b"}, @@ -191,7 +175,6 @@ version = "8.1.7" description = "Composable command line interface toolkit" optional = false python-versions = ">=3.7" -groups = ["dev"] files = [ {file = "click-8.1.7-py3-none-any.whl", hash = "sha256:ae74fb96c20a0277a1d615f1e4d73c8414f5a98db8b799a7931d1582f3390c28"}, {file = "click-8.1.7.tar.gz", hash = "sha256:ca9853ad459e787e2192211578cc907e7594e294c7ccc834310722b41b9ca6de"}, @@ -206,7 +189,6 @@ version = "0.4.6" description = "Cross-platform colored terminal text." optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7" -groups = ["main", "dev"] files = [ {file = "colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"}, {file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"}, @@ -218,7 +200,6 @@ version = "15.0.1" description = "Colored terminal output for Python's logging module" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" -groups = ["main"] files = [ {file = "coloredlogs-15.0.1-py2.py3-none-any.whl", hash = "sha256:612ee75c546f53e92e70049c9dbfcc18c935a2b9a53b66085ce9ef6a6e5c0934"}, {file = "coloredlogs-15.0.1.tar.gz", hash = "sha256:7c991aa71a4577af2f82600d8f8f3a89f936baeaf9b50a9c197da014e5bf16b0"}, @@ -236,96 +217,17 @@ version = "1.4.8" description = "Pure Python COM package" optional = false python-versions = ">=3.8" -groups = ["main"] files = [ {file = "comtypes-1.4.8-py3-none-any.whl", hash = "sha256:773109b12aa0bec630d5b2272dd983cbaa25605a12fc1319f99730c9d0b72f79"}, {file = "comtypes-1.4.8.zip", hash = "sha256:bb2286cfb3b96f838307200a85b00b98e1bdebf1e58ec3c28b36b1ccfafac01f"}, ] -[[package]] -name = "dbus-fast" -version = "2.30.2" -description = "A faster version of dbus-next" -optional = false -python-versions = "<4.0,>=3.9" -groups = ["main"] -markers = "sys_platform == \"linux\"" -files = [ - {file = "dbus_fast-2.30.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:353dcb06498ec1dcb1acc3c7a48c30d1232699f629291b18bdbe6f236bfd3882"}, - {file = "dbus_fast-2.30.2-cp310-cp310-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl", hash = "sha256:7fdda7f540ec8f44cef3c95467be4850f311e36c9f1573f1d33e5cd9037800ed"}, - {file = "dbus_fast-2.30.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:84e77820fdee8ae6aab588e3ff7a3cd2b532caf4b0e37d9474247b5891b0c0d7"}, - {file = "dbus_fast-2.30.2-cp310-cp310-manylinux_2_31_x86_64.whl", hash = "sha256:c6d226db36d3fe48f7677b1494e857f5e047e3d74146dafa3917eb64e6c0a55b"}, - {file = "dbus_fast-2.30.2-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:f253e27e0a57d106dcfd68afbdebd3fcdcb16aaf96e7ec3e0a6a318acc5dea7f"}, - {file = "dbus_fast-2.30.2-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:b4ee5a99eba4e93cf769173c33fa4b7b4589e818d43b3ef1dd304620c395ff28"}, - {file = "dbus_fast-2.30.2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:410c6866324b44f5987338d568ed6b945bae58d7875f483a99db40e97c3d0728"}, - {file = "dbus_fast-2.30.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a38903ace05643667c2f95054b169e92eb7aa09c0710a639ac523102042355d8"}, - {file = "dbus_fast-2.30.2-cp311-cp311-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl", hash = "sha256:77e1fd68b61ddcf622d4653d96a42d527ea3588b0f09418c83e69bdb3758e86a"}, - {file = "dbus_fast-2.30.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7a1ca38304578d7040b8bdecb97405d7e9bb264a27e31cbc56e6784f447c8891"}, - {file = "dbus_fast-2.30.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:92793bc00591f1ecb76fc31a1148f550f6cd742df96b51088bdec0dac888f37e"}, - {file = "dbus_fast-2.30.2-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:55eabe25b6976924d299ddf4207a2409f75c5c6545847b5fc263b6c2bda12356"}, - {file = "dbus_fast-2.30.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:4db238b1e826cc521a0afdbb09131947a8dd09c69ece3829d2710c14237ee20c"}, - {file = "dbus_fast-2.30.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1bc3d7e3974d0cd99cba4338f901e949bc8121a2e6ca289e86da21516ccab21f"}, - {file = "dbus_fast-2.30.2-cp312-cp312-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl", hash = "sha256:0579c0e8546faf332e80d1fee6314a2f2574ee5baee6a03eea47972f3b3ac250"}, - {file = "dbus_fast-2.30.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:73de2f271d20eefc730d651fc6fc642d5fb338c720eb984c548115183a9d00e5"}, - {file = "dbus_fast-2.30.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:20260b567464751e1b5af4d44c4e20c841cb888a74ba94f71e06dd9c6a3eca21"}, - {file = "dbus_fast-2.30.2-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:9a1baae67542085c648a5daf8d7c7a622618c1908bf031c928fc41da9abe743a"}, - {file = "dbus_fast-2.30.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:976e4fd7d384b11849e5f8ecfd985fddfe0a6f78198cbda6ea25e81754ded3eb"}, - {file = "dbus_fast-2.30.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:08021c33059f56947c7574ede0a525c934182f9c5441c483ff111f853117bac9"}, - {file = "dbus_fast-2.30.2-cp313-cp313-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl", hash = "sha256:b6d921a4cb4f2c567bd12c74db2ff11aa23a0078d5bd43d7fc8f16ddfa73553e"}, - {file = "dbus_fast-2.30.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:53efa0780905e2f812ec54c00f4b0f3b151697040f28d3296ca3b746b5b16507"}, - {file = "dbus_fast-2.30.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:355bc76ddda73908ecc5fcdf77c1717fec9409cbea0f9cc91391613cf4ecf98b"}, - {file = "dbus_fast-2.30.2-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:0fe08c0dcebe85e7aa2275cb8c4a0be7dec320472e781ef7f96e392d22188d8d"}, - {file = "dbus_fast-2.30.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:73da9659ba913ce60778406f09600f5df99ec53629327934480cf9dc733ef565"}, - {file = "dbus_fast-2.30.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3a40e806e157037ed0ce4ba13c360350e95eb18b35c5529752ccf8818c224802"}, - {file = "dbus_fast-2.30.2-cp39-cp39-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl", hash = "sha256:26896a4ef8956dc8062e731dc2b8871b67dad37fb126bda3ae11a68885b88ee6"}, - {file = "dbus_fast-2.30.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f82857b96cdcf678d72318d51aa68150dfb5daa9b3ae410552a0381e4504624b"}, - {file = "dbus_fast-2.30.2-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:c557a21c1f85751aa3e8cf7b45287bd65f5da9d9800894820780e5d5943700f5"}, - {file = "dbus_fast-2.30.2-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:75d66497bb0a0b46fcb6b8cdfe382de98ced6c111783b03644c941445ef01781"}, - {file = "dbus_fast-2.30.2-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:e4a1f585c53caf49baf60ea71bbfa06f737fb76ab927ed996f1450f988d461ee"}, - {file = "dbus_fast-2.30.2-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b89ccbee16ef5ae82f8b3cf582764811fe07284d21e83b04b1d683da67c1b0b0"}, - {file = "dbus_fast-2.30.2-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl", hash = "sha256:d3bc987e8b9764a787b3bd3833fa9602eb5b43a4c51b7e33ed7c653770af3597"}, - {file = "dbus_fast-2.30.2-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ed282fc8dc82d57d8b57621965aadb2ee4efa32898772bfbed5164a6308d332d"}, - {file = "dbus_fast-2.30.2-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2982219d780e8746259245f4da5868918fd4423cfe325274167e5c8f4ef34835"}, - {file = "dbus_fast-2.30.2-pp39-pypy39_pp73-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl", hash = "sha256:241872ba85b806050b5eac2a98541b46cab592b6b8a9e1ae0e603b17a4e31db3"}, - {file = "dbus_fast-2.30.2-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl", hash = "sha256:09f9dce490a7f55a3f76f5ee5604658c431b49322ce0e3b1967de49eed961ed1"}, - {file = "dbus_fast-2.30.2.tar.gz", hash = "sha256:87296315f4a2f2416d495f48cca019ba901d046989e94df2adda84c3170da7b3"}, -] - -[[package]] -name = "desktop-notifier" -version = "6.0.0" -description = "Python library for cross-platform desktop notifications" -optional = false -python-versions = ">=3.7" -groups = ["main"] -files = [ - {file = "desktop_notifier-6.0.0-py3-none-any.whl", hash = "sha256:7caf6f683f9f5afd0fced3da5305d6b04a467148a6d23fb99a11dad85ececb40"}, - {file = "desktop_notifier-6.0.0.tar.gz", hash = "sha256:188b6cf8f59192afc5c6ed9dc8304d46ee0380b08750e826fcce1048083d5cd8"}, -] - -[package.dependencies] -bidict = "*" -dbus-fast = {version = "*", markers = "sys_platform == \"linux\""} -packaging = "*" -rubicon-objc = {version = "*", markers = "sys_platform == \"darwin\""} -"winrt-windows.applicationmodel.core" = {version = "*", markers = "sys_platform == \"win32\""} -"winrt-windows.data.xml.dom" = {version = "*", markers = "sys_platform == \"win32\""} -"winrt-windows.foundation" = {version = "*", markers = "sys_platform == \"win32\""} -"winrt-windows.foundation.collections" = {version = "*", markers = "sys_platform == \"win32\""} -"winrt-windows.foundation.interop" = {version = "*", markers = "sys_platform == \"win32\""} -"winrt-windows.ui.notifications" = {version = "*", markers = "sys_platform == \"win32\""} - -[package.extras] -dev = ["black", "bump2version", "flake8", "flake8-pyproject", "isort", "mypy", "pytest", "pytest-asyncio", "pytest-cov"] -docs = ["furo (==2024.8.6)", "sphinx (==8.0.2)", "sphinx-autoapi (==3.3.1)", "sphinx-mdinclude (==0.6.2)"] - [[package]] name = "flake8" version = "5.0.4" description = "the modular source code checker: pep8 pyflakes and co" optional = false python-versions = ">=3.6.1" -groups = ["dev"] files = [ {file = "flake8-5.0.4-py2.py3-none-any.whl", hash = "sha256:7a1cf6b73744f5806ab95e526f6f0d8c01c66d7bbe349562d22dfca20610b248"}, {file = "flake8-5.0.4.tar.gz", hash = "sha256:6fbe320aad8d6b95cec8b8e47bc933004678dc63095be98528b7bdd2a9f510db"}, @@ -342,7 +244,6 @@ version = "24.3.25" description = "The FlatBuffers serialization format for Python" optional = false python-versions = "*" -groups = ["main"] files = [ {file = "flatbuffers-24.3.25-py2.py3-none-any.whl", hash = "sha256:8dbdec58f935f3765e4f7f3cf635ac3a77f83568138d6a2311f524ec96364812"}, {file = "flatbuffers-24.3.25.tar.gz", hash = "sha256:de2ec5b203f21441716617f38443e0a8ebf3d25bf0d9c0bb0ce68fa00ad546a4"}, @@ -354,7 +255,6 @@ version = "10.0" description = "Human friendly output for text interfaces using Python" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" -groups = ["main"] files = [ {file = "humanfriendly-10.0-py2.py3-none-any.whl", hash = "sha256:1697e1a8a8f550fd43c2865cd84542fc175a61dcb779b6fee18cf6b6ccba1477"}, {file = "humanfriendly-10.0.tar.gz", hash = "sha256:6b0b831ce8f15f7300721aa49829fc4e83921a9a301cc7f606be6686a2288ddc"}, @@ -369,7 +269,6 @@ version = "3.10" description = "Internationalized Domain Names in Applications (IDNA)" optional = false python-versions = ">=3.6" -groups = ["main"] files = [ {file = "idna-3.10-py3-none-any.whl", hash = "sha256:946d195a0d259cbba61165e88e65941f16e9b36ea6ddb97f00452bae8b1287d3"}, {file = "idna-3.10.tar.gz", hash = "sha256:12f65c9b470abda6dc35cf8e63cc574b1c52b11df2c86030af0ac09b01b13ea9"}, @@ -384,8 +283,6 @@ version = "1.16.3" description = "Mach-O header analysis and editing" optional = false python-versions = "*" -groups = ["dev"] -markers = "sys_platform == \"darwin\"" files = [ {file = "macholib-1.16.3-py2.py3-none-any.whl", hash = "sha256:0e315d7583d38b8c77e815b1ecbdbf504a8258d8b3e17b61165c6feb60d18f2c"}, {file = "macholib-1.16.3.tar.gz", hash = "sha256:07ae9e15e8e4cd9a788013d81f5908b3609aa76f9b1421bae9c4d7606ec86a30"}, @@ -400,7 +297,6 @@ version = "0.7.0" description = "McCabe checker, plugin for flake8" optional = false python-versions = ">=3.6" -groups = ["dev"] files = [ {file = "mccabe-0.7.0-py2.py3-none-any.whl", hash = "sha256:6c2d30ab6be0e4a46919781807b4f0d834ebdd6c6e3dca0bda5a15f863427b6e"}, {file = "mccabe-0.7.0.tar.gz", hash = "sha256:348e0240c33b60bbdf4e523192ef919f28cb2c3d7d5c7794f74009290f236325"}, @@ -412,7 +308,6 @@ version = "1.3.0" description = "Python library for arbitrary-precision floating-point arithmetic" optional = false python-versions = "*" -groups = ["main"] files = [ {file = "mpmath-1.3.0-py3-none-any.whl", hash = "sha256:a0b2b9fe80bbcd81a6647ff13108738cfb482d481d826cc0e02f5b35e5c88d2c"}, {file = "mpmath-1.3.0.tar.gz", hash = "sha256:7a28eb2a9774d00c7bc92411c19a89209d5da7c4c9a9e227be8330a23a25b91f"}, @@ -430,8 +325,6 @@ version = "1.3.0" description = "shlex for windows" optional = false python-versions = ">=3.5" -groups = ["main"] -markers = "sys_platform == \"win32\"" files = [ {file = "mslex-1.3.0-py3-none-any.whl", hash = "sha256:c7074b347201b3466fc077c5692fbce9b5f62a63a51f537a53fbbd02eff2eea4"}, {file = "mslex-1.3.0.tar.gz", hash = "sha256:641c887d1d3db610eee2af37a8e5abda3f70b3006cdfd2d0d29dc0d1ae28a85d"}, @@ -443,7 +336,6 @@ version = "1.0.0" description = "Type system extensions for programs checked with the mypy type checker." optional = false python-versions = ">=3.5" -groups = ["dev"] files = [ {file = "mypy_extensions-1.0.0-py3-none-any.whl", hash = "sha256:4392f6c0eb8a5668a69e23d168ffa70f0be9ccfd32b5cc2d26a34ae5b844552d"}, {file = "mypy_extensions-1.0.0.tar.gz", hash = "sha256:75dbf8955dc00442a438fc4d0666508a9a97b6bd41aa2f0ffe9d2f2725af0782"}, @@ -455,7 +347,6 @@ version = "1.23.5" description = "NumPy is the fundamental package for array computing with Python." optional = false python-versions = ">=3.8" -groups = ["main"] files = [ {file = "numpy-1.23.5-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:9c88793f78fca17da0145455f0d7826bcb9f37da4764af27ac945488116efe63"}, {file = "numpy-1.23.5-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:e9f4c4e51567b616be64e05d517c79a8a22f3606499941d97bb76f2ca59f982d"}, @@ -493,7 +384,6 @@ version = "1.19.2" description = "ONNX Runtime is a runtime accelerator for Machine Learning models" optional = false python-versions = "*" -groups = ["main"] files = [ {file = "onnxruntime_directml-1.19.2-cp310-cp310-win_amd64.whl", hash = "sha256:49c30e59115333655eb7863293c55a318e755abfd4801f3e187a2bd66c63e22a"}, {file = "onnxruntime_directml-1.19.2-cp311-cp311-win_amd64.whl", hash = "sha256:04cb32c21d793c5da4ad02d733149cc0af5b8a12553dfb95022fabb0f618a991"}, @@ -516,7 +406,6 @@ version = "4.10.0.84" description = "Wrapper package for OpenCV python bindings." optional = false python-versions = ">=3.6" -groups = ["main"] files = [ {file = "opencv-python-4.10.0.84.tar.gz", hash = "sha256:72d234e4582e9658ffea8e9cae5b63d488ad06994ef12d81dc303b17472f3526"}, {file = "opencv_python-4.10.0.84-cp37-abi3-macosx_11_0_arm64.whl", hash = "sha256:fc182f8f4cda51b45f01c64e4cbedfc2f00aff799debebc305d8d0210c43f251"}, @@ -536,7 +425,6 @@ version = "24.1" description = "Core utilities for Python packages" optional = false python-versions = ">=3.8" -groups = ["main", "dev"] files = [ {file = "packaging-24.1-py3-none-any.whl", hash = "sha256:5b8f2217dbdbd2f7f384c41c628544e6d52f2d0f53c6d0c3ea61aa5d1d7ff124"}, {file = "packaging-24.1.tar.gz", hash = "sha256:026ed72c8ed3fcce5bf8950572258698927fd1dbda10a5e981cdf0ac37f4f002"}, @@ -548,7 +436,6 @@ version = "0.12.1" description = "Utility library for gitignore style pattern matching of file paths." optional = false python-versions = ">=3.8" -groups = ["dev"] files = [ {file = "pathspec-0.12.1-py3-none-any.whl", hash = "sha256:a0d503e138a4c123b27490a4f7beda6a01c6f288df0e4a8b79c7eb0dc7b4cc08"}, {file = "pathspec-0.12.1.tar.gz", hash = "sha256:a482d51503a1ab33b1c67a6c3813a26953dbdc71c31dacaef9a838c4e29f5712"}, @@ -556,15 +443,13 @@ files = [ [[package]] name = "pefile" -version = "2023.2.7" +version = "2024.8.26" description = "Python PE parsing module" optional = false python-versions = ">=3.6.0" -groups = ["dev"] -markers = "sys_platform == \"win32\"" files = [ - {file = "pefile-2023.2.7-py3-none-any.whl", hash = "sha256:da185cd2af68c08a6cd4481f7325ed600a88f6a813bad9dea07ab3ef73d8d8d6"}, - {file = "pefile-2023.2.7.tar.gz", hash = "sha256:82e6114004b3d6911c77c3953e3838654b04511b8b66e8583db70c65998017dc"}, + {file = "pefile-2024.8.26-py3-none-any.whl", hash = "sha256:76f8b485dcd3b1bb8166f1128d395fa3d87af26360c2358fb75b80019b957c6f"}, + {file = "pefile-2024.8.26.tar.gz", hash = "sha256:3ff6c5d8b43e8c37bb6e6dd5085658d658a7a0bdcd20b6a07b1fcfc1c4e9d632"}, ] [[package]] @@ -573,7 +458,6 @@ version = "11.0.0" description = "Python Imaging Library (Fork)" optional = false python-versions = ">=3.9" -groups = ["main"] files = [ {file = "pillow-11.0.0-cp310-cp310-macosx_10_10_x86_64.whl", hash = "sha256:6619654954dc4936fcff82db8eb6401d3159ec6be81e33c6000dfd76ae189947"}, {file = "pillow-11.0.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:b3c5ac4bed7519088103d9450a1107f76308ecf91d6dabc8a33a2fcfb18d0fba"}, @@ -666,7 +550,6 @@ version = "4.3.6" description = "A small Python package for determining appropriate platform-specific dirs, e.g. a `user data dir`." optional = false python-versions = ">=3.8" -groups = ["dev"] files = [ {file = "platformdirs-4.3.6-py3-none-any.whl", hash = "sha256:73e575e1408ab8103900836b97580d5307456908a03e92031bab39e4554cc3fb"}, {file = "platformdirs-4.3.6.tar.gz", hash = "sha256:357fb2acbc885b0419afd3ce3ed34564c13c9b95c89360cd9563f73aa5e2b907"}, @@ -683,7 +566,6 @@ version = "5.28.2" description = "" optional = false python-versions = ">=3.8" -groups = ["main"] files = [ {file = "protobuf-5.28.2-cp310-abi3-win32.whl", hash = "sha256:eeea10f3dc0ac7e6b4933d32db20662902b4ab81bf28df12218aa389e9c2102d"}, {file = "protobuf-5.28.2-cp310-abi3-win_amd64.whl", hash = "sha256:2c69461a7fcc8e24be697624c09a839976d82ae75062b11a0972e41fd2cd9132"}, @@ -704,7 +586,6 @@ version = "5.9.8" description = "Cross-platform lib for process and system monitoring in Python." optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*" -groups = ["main"] files = [ {file = "psutil-5.9.8-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:26bd09967ae00920df88e0352a91cff1a78f8d69b3ecabbfe733610c0af486c8"}, {file = "psutil-5.9.8-cp27-cp27m-manylinux2010_i686.whl", hash = "sha256:05806de88103b25903dff19bb6692bd2e714ccf9e668d050d144012055cbca73"}, @@ -733,7 +614,6 @@ version = "2.9.1" description = "Python style guide checker" optional = false python-versions = ">=3.6" -groups = ["dev"] files = [ {file = "pycodestyle-2.9.1-py2.py3-none-any.whl", hash = "sha256:d1735fc58b418fd7c5f658d28d943854f8a849b01a5d0a1e6f3f3fdd0166804b"}, {file = "pycodestyle-2.9.1.tar.gz", hash = "sha256:2c9607871d58c76354b697b42f5d57e1ada7d261c261efac224b664affdc5785"}, @@ -745,7 +625,6 @@ version = "1.10.18" description = "Data validation and settings management using python type hints" optional = false python-versions = ">=3.7" -groups = ["main"] files = [ {file = "pydantic-1.10.18-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:e405ffcc1254d76bb0e760db101ee8916b620893e6edfbfee563b3c6f7a67c02"}, {file = "pydantic-1.10.18-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:e306e280ebebc65040034bff1a0a81fd86b2f4f05daac0131f29541cafd80b80"}, @@ -805,7 +684,6 @@ version = "2.5.0" description = "passive checker of Python programs" optional = false python-versions = ">=3.6" -groups = ["dev"] files = [ {file = "pyflakes-2.5.0-py2.py3-none-any.whl", hash = "sha256:4579f67d887f804e67edb544428f264b7b24f435b263c4614f384135cea553d2"}, {file = "pyflakes-2.5.0.tar.gz", hash = "sha256:491feb020dca48ccc562a8c0cbe8df07ee13078df59813b83959cbdada312ea3"}, @@ -817,7 +695,6 @@ version = "0.2" description = "Module for grabbing live video images using DirectShow" optional = false python-versions = "*" -groups = ["main"] files = [ {file = "pygrabber-0.2-py3-none-any.whl", hash = "sha256:5ac8bbe5f6a5dfb7c1c9c55d80ca9b9457743abd3ac8efa21cb9e302bdbf03ac"}, {file = "pygrabber-0.2.tar.gz", hash = "sha256:e584b119d4c9b9a8f339eb34d1fe7fdd16214a2bf5a1876171145caebdb9e413"}, @@ -829,37 +706,35 @@ numpy = ">=1.17.3" [[package]] name = "pyinstaller" -version = "6.11.1" +version = "5.13.2" description = "PyInstaller bundles a Python application and all its dependencies into a single package." optional = false -python-versions = "<3.14,>=3.8" -groups = ["dev"] +python-versions = "<3.13,>=3.7" files = [ - {file = "pyinstaller-6.11.1-py3-none-macosx_10_13_universal2.whl", hash = "sha256:44e36172de326af6d4e7663b12f71dbd34e2e3e02233e181e457394423daaf03"}, - {file = "pyinstaller-6.11.1-py3-none-manylinux2014_aarch64.whl", hash = "sha256:6d12c45a29add78039066a53fb05967afaa09a672426072b13816fe7676abfc4"}, - {file = "pyinstaller-6.11.1-py3-none-manylinux2014_i686.whl", hash = "sha256:ddc0fddd75f07f7e423da1f0822e389a42af011f9589e0269b87e0d89aa48c1f"}, - {file = "pyinstaller-6.11.1-py3-none-manylinux2014_ppc64le.whl", hash = "sha256:0d6475559c4939f0735122989611d7f739ed3bf02f666ce31022928f7a7e4fda"}, - {file = "pyinstaller-6.11.1-py3-none-manylinux2014_s390x.whl", hash = "sha256:e21c7806e34f40181e7606926a14579f848bfb1dc52cbca7eea66eccccbfe977"}, - {file = "pyinstaller-6.11.1-py3-none-manylinux2014_x86_64.whl", hash = "sha256:32c742a24fe65d0702958fadf4040f76de85859c26bec0008766e5dbabc5b68f"}, - {file = "pyinstaller-6.11.1-py3-none-musllinux_1_1_aarch64.whl", hash = "sha256:208c0ef6dab0837a0a273ea32d1a3619a208e3d1fe3fec3785eea71a77fd00ce"}, - {file = "pyinstaller-6.11.1-py3-none-musllinux_1_1_x86_64.whl", hash = "sha256:ad84abf465bcda363c1d54eafa76745d77b6a8a713778348377dc98d12a452f7"}, - {file = "pyinstaller-6.11.1-py3-none-win32.whl", hash = "sha256:2e8365276c5131c9bef98e358fbc305e4022db8bedc9df479629d6414021956a"}, - {file = "pyinstaller-6.11.1-py3-none-win_amd64.whl", hash = "sha256:7ac83c0dc0e04357dab98c487e74ad2adb30e7eb186b58157a8faf46f1fa796f"}, - {file = "pyinstaller-6.11.1-py3-none-win_arm64.whl", hash = "sha256:35e6b8077d240600bb309ed68bb0b1453fd2b7ab740b66d000db7abae6244423"}, - {file = "pyinstaller-6.11.1.tar.gz", hash = "sha256:491dfb4d9d5d1d9650d9507daec1ff6829527a254d8e396badd60a0affcb72ef"}, + {file = "pyinstaller-5.13.2-py3-none-macosx_10_13_universal2.whl", hash = "sha256:16cbd66b59a37f4ee59373a003608d15df180a0d9eb1a29ff3bfbfae64b23d0f"}, + {file = "pyinstaller-5.13.2-py3-none-manylinux2014_aarch64.whl", hash = "sha256:8f6dd0e797ae7efdd79226f78f35eb6a4981db16c13325e962a83395c0ec7420"}, + {file = "pyinstaller-5.13.2-py3-none-manylinux2014_i686.whl", hash = "sha256:65133ed89467edb2862036b35d7c5ebd381670412e1e4361215e289c786dd4e6"}, + {file = "pyinstaller-5.13.2-py3-none-manylinux2014_ppc64le.whl", hash = "sha256:7d51734423685ab2a4324ab2981d9781b203dcae42839161a9ee98bfeaabdade"}, + {file = "pyinstaller-5.13.2-py3-none-manylinux2014_s390x.whl", hash = "sha256:2c2fe9c52cb4577a3ac39626b84cf16cf30c2792f785502661286184f162ae0d"}, + {file = "pyinstaller-5.13.2-py3-none-manylinux2014_x86_64.whl", hash = "sha256:c63ef6133eefe36c4b2f4daf4cfea3d6412ece2ca218f77aaf967e52a95ac9b8"}, + {file = "pyinstaller-5.13.2-py3-none-musllinux_1_1_aarch64.whl", hash = "sha256:aadafb6f213549a5906829bb252e586e2cf72a7fbdb5731810695e6516f0ab30"}, + {file = "pyinstaller-5.13.2-py3-none-musllinux_1_1_x86_64.whl", hash = "sha256:b2e1c7f5cceb5e9800927ddd51acf9cc78fbaa9e79e822c48b0ee52d9ce3c892"}, + {file = "pyinstaller-5.13.2-py3-none-win32.whl", hash = "sha256:421cd24f26144f19b66d3868b49ed673176765f92fa9f7914cd2158d25b6d17e"}, + {file = "pyinstaller-5.13.2-py3-none-win_amd64.whl", hash = "sha256:ddcc2b36052a70052479a9e5da1af067b4496f43686ca3cdda99f8367d0627e4"}, + {file = "pyinstaller-5.13.2-py3-none-win_arm64.whl", hash = "sha256:27cd64e7cc6b74c5b1066cbf47d75f940b71356166031deb9778a2579bb874c6"}, + {file = "pyinstaller-5.13.2.tar.gz", hash = "sha256:c8e5d3489c3a7cc5f8401c2d1f48a70e588f9967e391c3b06ddac1f685f8d5d2"}, ] [package.dependencies] altgraph = "*" macholib = {version = ">=1.8", markers = "sys_platform == \"darwin\""} -packaging = ">=22.0" -pefile = {version = ">=2022.5.30,<2024.8.26 || >2024.8.26", markers = "sys_platform == \"win32\""} -pyinstaller-hooks-contrib = ">=2024.9" +pefile = {version = ">=2022.5.30", markers = "sys_platform == \"win32\""} +pyinstaller-hooks-contrib = ">=2021.4" pywin32-ctypes = {version = ">=0.2.1", markers = "sys_platform == \"win32\""} setuptools = ">=42.0.0" [package.extras] -completion = ["argcomplete"] +encryption = ["tinyaes (>=1.0.0)"] hook-testing = ["execnet (>=1.5.0)", "psutil", "pytest (>=2.7.3)"] [[package]] @@ -868,7 +743,6 @@ version = "2024.9" description = "Community maintained hooks for PyInstaller" optional = false python-versions = ">=3.8" -groups = ["dev"] files = [ {file = "pyinstaller_hooks_contrib-2024.9-py3-none-any.whl", hash = "sha256:1ddf9ba21d586afa84e505bb5c65fca10b22500bf3fdb89ee2965b99da53b891"}, {file = "pyinstaller_hooks_contrib-2024.9.tar.gz", hash = "sha256:4793869f370d1dc4806c101efd2890e3c3e703467d8d27bb5a3db005ebfb008d"}, @@ -884,8 +758,6 @@ version = "3.5.4" description = "A python implementation of GNU readline." optional = false python-versions = ">=3.8" -groups = ["main"] -markers = "sys_platform == \"win32\"" files = [ {file = "pyreadline3-3.5.4-py3-none-any.whl", hash = "sha256:eaf8e6cc3c49bcccf145fc6067ba8643d1df34d604a1ec0eccbf7a18e6d3fae6"}, {file = "pyreadline3-3.5.4.tar.gz", hash = "sha256:8d57d53039a1c75adba8e50dd3d992b28143480816187ea5efbd5c78e6c885b7"}, @@ -900,7 +772,6 @@ version = "3.5" description = "Python Serial Port Extension" optional = false python-versions = "*" -groups = ["main"] files = [ {file = "pyserial-3.5-py2.py3-none-any.whl", hash = "sha256:c4451db6ba391ca6ca299fb3ec7bae67a5c55dde170964c7a14ceefec02f2cf0"}, {file = "pyserial-3.5.tar.gz", hash = "sha256:3c77e014170dfffbd816e6ffc205e9842efb10be9f58ec16d3e8675b4925cddb"}, @@ -915,7 +786,6 @@ version = "4.70.1" description = "Python GUIs for Humans. Launched in 2018. It's 2024 & PySimpleGUI is an ACTIVE project. Super-simple to create custom GUI's. 340+ Demo programs & Cookbook for rapid start. Extensive documentation. Great for beginners & advanced GUI programmers." optional = false python-versions = "*" -groups = ["main"] files = [ {file = "PySimpleGUI-4.70.1-py3-none-any.whl", hash = "sha256:afdf64aaac0a6231b1bdac4c033a75daf8e259edb77b156fa86f6e2763bb8efd"}, {file = "PySimpleGUI-4.70.1.tar.gz", hash = "sha256:84b2bd09435a41d0a9cfd7ecbb464daa0557174cfd099068524266ed43b3525f"}, @@ -927,7 +797,6 @@ version = "1.9.0" description = "Open Sound Control server and client implementations in pure Python" optional = false python-versions = ">=3.10" -groups = ["main"] files = [ {file = "python_osc-1.9.0-py3-none-any.whl", hash = "sha256:4b16d8c4ae6a8a291037b2216a188d8654a4babe721387b8a37f89470b0c82c1"}, {file = "python_osc-1.9.0.tar.gz", hash = "sha256:ab50f66b1a19efd5bff722f26ab6450df19cdd84ba868f08c9a33e7c78514456"}, @@ -939,8 +808,6 @@ version = "0.2.3" description = "A (partial) reimplementation of pywin32 using ctypes/cffi" optional = false python-versions = ">=3.6" -groups = ["dev"] -markers = "sys_platform == \"win32\"" files = [ {file = "pywin32-ctypes-0.2.3.tar.gz", hash = "sha256:d162dc04946d704503b2edc4d55f3dba5c1d539ead017afa00142c38b9885755"}, {file = "pywin32_ctypes-0.2.3-py3-none-any.whl", hash = "sha256:8a1513379d709975552d202d942d9837758905c8d01eb82b8bcc30918929e7b8"}, @@ -952,7 +819,6 @@ version = "2.32.3" description = "Python HTTP for Humans." optional = false python-versions = ">=3.8" -groups = ["main"] files = [ {file = "requests-2.32.3-py3-none-any.whl", hash = "sha256:70761cfe03c773ceb22aa2f671b4757976145175cdfca038c02654d061d6dcc6"}, {file = "requests-2.32.3.tar.gz", hash = "sha256:55365417734eb18255590a9ff9eb97e9e1da868d4ccd6402399eaf68af20a760"}, @@ -968,30 +834,12 @@ urllib3 = ">=1.21.1,<3" socks = ["PySocks (>=1.5.6,!=1.5.7)"] use-chardet-on-py3 = ["chardet (>=3.0.2,<6)"] -[[package]] -name = "rubicon-objc" -version = "0.5.0" -description = "A bridge between an Objective C runtime environment and Python." -optional = false -python-versions = ">=3.9" -groups = ["main"] -markers = "sys_platform == \"darwin\"" -files = [ - {file = "rubicon_objc-0.5.0-py3-none-any.whl", hash = "sha256:a9c2a605120d6e5be327d3f42a71b60963125987e116f51846757b5e110854fa"}, - {file = "rubicon_objc-0.5.0.tar.gz", hash = "sha256:18f075649780d95df53d483642068c767d7d2cfbbf075ddef124a44b40b6d92e"}, -] - -[package.extras] -dev = ["pre-commit (==4.0.1)", "pytest (==8.3.4)", "setuptools_scm (==8.1.0)", "tox (==4.23.2)"] -docs = ["furo (==2024.8.6)", "pyenchant (==3.2.2)", "sphinx (==8.1.3)", "sphinx-autobuild (==2024.10.3)", "sphinx-copybutton (==0.5.2)", "sphinx_tabs (==3.4.7)", "sphinxcontrib-spelling (==8.0.1)"] - [[package]] name = "setuptools" version = "75.2.0" description = "Easily download, build, install, upgrade, and uninstall Python packages" optional = false python-versions = ">=3.8" -groups = ["dev"] files = [ {file = "setuptools-75.2.0-py3-none-any.whl", hash = "sha256:a7fcb66f68b4d9e8e66b42f9876150a3371558f98fa32222ffaa5bced76406f8"}, {file = "setuptools-75.2.0.tar.gz", hash = "sha256:753bb6ebf1f465a1912e19ed1d41f403a79173a9acf66a42e7e6aec45c3c16ec"}, @@ -1012,7 +860,6 @@ version = "1.13.3" description = "Computer algebra system (CAS) in Python" optional = false python-versions = ">=3.8" -groups = ["main"] files = [ {file = "sympy-1.13.3-py3-none-any.whl", hash = "sha256:54612cf55a62755ee71824ce692986f23c88ffa77207b30c1368eda4a7060f73"}, {file = "sympy-1.13.3.tar.gz", hash = "sha256:b27fd2c6530e0ab39e275fc9b683895367e51d5da91baa8d3d64db2565fec4d9"}, @@ -1030,7 +877,6 @@ version = "1.13.0" description = "tasks runner for python projects" optional = false python-versions = "<4.0,>=3.6" -groups = ["main"] files = [ {file = "taskipy-1.13.0-py3-none-any.whl", hash = "sha256:56f42b7e508d9aed2c7b6365f8d3dab62dbd0c768c1ab606c819da4fc38421f7"}, {file = "taskipy-1.13.0.tar.gz", hash = "sha256:2b52f0257958fed151f1340f7de93fcf0848f7a358ad62ba05c31c2ca04f89fe"}, @@ -1048,7 +894,6 @@ version = "2.0.2" description = "A lil' TOML parser" optional = false python-versions = ">=3.8" -groups = ["main"] files = [ {file = "tomli-2.0.2-py3-none-any.whl", hash = "sha256:2ebe24485c53d303f690b0ec092806a085f07af5a5aa1464f3931eec36caaa38"}, {file = "tomli-2.0.2.tar.gz", hash = "sha256:d46d457a85337051c36524bc5349dd91b1877838e2979ac5ced3e710ed8a60ed"}, @@ -1060,7 +905,6 @@ version = "4.12.2" description = "Backported and Experimental Type Hints for Python 3.8+" optional = false python-versions = ">=3.8" -groups = ["main"] files = [ {file = "typing_extensions-4.12.2-py3-none-any.whl", hash = "sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d"}, {file = "typing_extensions-4.12.2.tar.gz", hash = "sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8"}, @@ -1072,7 +916,6 @@ version = "2.2.3" description = "HTTP library with thread-safe connection pooling, file post, and more." optional = false python-versions = ">=3.8" -groups = ["main"] files = [ {file = "urllib3-2.2.3-py3-none-any.whl", hash = "sha256:ca899ca043dcb1bafa3e262d73aa25c465bfb49e0bd9dd5d59f1d0acba2f8fac"}, {file = "urllib3-2.2.3.tar.gz", hash = "sha256:e7d814a81dad81e6caf2ec9fdedb284ecc9c73076b62654547cc64ccdcae26e9"}, @@ -1085,225 +928,17 @@ socks = ["pysocks (>=1.5.6,!=1.5.7,<2.0)"] zstd = ["zstandard (>=0.18.0)"] [[package]] -name = "winrt-runtime" -version = "2.3.0" -description = "Python projection of Windows Runtime (WinRT) APIs" +name = "winotify" +version = "1.1.0" +description = "Show notification toast on Windows 10" optional = false -python-versions = "<3.14,>=3.9" -groups = ["main"] -markers = "sys_platform == \"win32\"" +python-versions = "*" files = [ - {file = "winrt_runtime-2.3.0-cp310-cp310-win32.whl", hash = "sha256:5c22ed339b420a6026134e28281b25078a9e6755eceb494dce5d42ee5814e3fd"}, - {file = "winrt_runtime-2.3.0-cp310-cp310-win_amd64.whl", hash = "sha256:f3ef0d6b281a8d4155ea14a0f917faf82a004d4996d07beb2b3d2af191503fb1"}, - {file = "winrt_runtime-2.3.0-cp310-cp310-win_arm64.whl", hash = "sha256:93ce23df52396ed89dfe659ee0e1a968928e526b9c577942d4a54ad55b333644"}, - {file = "winrt_runtime-2.3.0-cp311-cp311-win32.whl", hash = "sha256:352d70864846fd7ec89703845b82a35cef73f42d178a02a4635a38df5a61c0f8"}, - {file = "winrt_runtime-2.3.0-cp311-cp311-win_amd64.whl", hash = "sha256:286e6036af4903dd830398103c3edd110a46432347e8a52ba416d937c0e1f5f9"}, - {file = "winrt_runtime-2.3.0-cp311-cp311-win_arm64.whl", hash = "sha256:44d0f0f48f2f10c02b885989e8bbac41d7bf9c03550b20ddf562100356fca7a9"}, - {file = "winrt_runtime-2.3.0-cp312-cp312-win32.whl", hash = "sha256:03d3e4aedc65832e57c0dbf210ec2a9d7fb2819c74d420ba889b323e9fa5cf28"}, - {file = "winrt_runtime-2.3.0-cp312-cp312-win_amd64.whl", hash = "sha256:0dc636aec2f4ee6c3849fa59dae10c128f4a908f0ce452e91af65d812ea66dcb"}, - {file = "winrt_runtime-2.3.0-cp312-cp312-win_arm64.whl", hash = "sha256:d9f140c71e4f3bf7bf7d6853b246eab2e1632c72f218ff163aa41a74b576736f"}, - {file = "winrt_runtime-2.3.0-cp313-cp313-win32.whl", hash = "sha256:77f06df6b7a6cb536913ae455e30c1733d31d88dafe2c3cd8c3d0e2bcf7e2a20"}, - {file = "winrt_runtime-2.3.0-cp313-cp313-win_amd64.whl", hash = "sha256:7388774b74ea2f4510ab3a98c95af296665ebe69d9d7e2fd7ee2c3fc5856099e"}, - {file = "winrt_runtime-2.3.0-cp313-cp313-win_arm64.whl", hash = "sha256:0d3a4ac7661cad492d51653054e63328b940a6083c1ee1dd977f90069cb8afaa"}, - {file = "winrt_runtime-2.3.0-cp39-cp39-win32.whl", hash = "sha256:cd7bce2c7703054e7f64d11be665e9728e15d9dae0d952a51228fe830e0c4b55"}, - {file = "winrt_runtime-2.3.0-cp39-cp39-win_amd64.whl", hash = "sha256:2da01af378ab9374a3a933da97543f471a676a3b844318316869bffeff811e8a"}, - {file = "winrt_runtime-2.3.0-cp39-cp39-win_arm64.whl", hash = "sha256:1c6bbfcc7cbe1c8159ed5d776b30b7f1cbc2c6990803292823b0788c22d75636"}, - {file = "winrt_runtime-2.3.0.tar.gz", hash = "sha256:bb895a2b8c74b375781302215e2661914369c625aa1f8df84f8d37691b22db77"}, + {file = "winotify-1.1.0-py3-none-any.whl", hash = "sha256:13aa9b1196b02ab3e699645b4407371ca73348421f8662565100d70c7cf552d9"}, + {file = "winotify-1.1.0.tar.gz", hash = "sha256:f8a0d6ff00cb2c1b3dcdfe825431f46f6aa5dc8ce84ffc59e8fda8c7e36687fe"}, ] -[[package]] -name = "winrt-windows-applicationmodel-core" -version = "2.3.0" -description = "Python projection of Windows Runtime (WinRT) APIs" -optional = false -python-versions = "<3.14,>=3.9" -groups = ["main"] -markers = "sys_platform == \"win32\"" -files = [ - {file = "winrt_Windows.ApplicationModel.Core-2.3.0-cp310-cp310-win32.whl", hash = "sha256:b56901b142e28fd7e93185977c8e5aba5e2f0096d80d001e6af21ebcb12708ee"}, - {file = "winrt_Windows.ApplicationModel.Core-2.3.0-cp310-cp310-win_amd64.whl", hash = "sha256:7e0e34f3f649e83a176d18ac6757072cce705ffdf4f55e364376cf025578f1e6"}, - {file = "winrt_Windows.ApplicationModel.Core-2.3.0-cp310-cp310-win_arm64.whl", hash = "sha256:cbad56e7f22d9d8322b3cc98a72cf4b9d330b4e319f48f30da856b252fe95afc"}, - {file = "winrt_Windows.ApplicationModel.Core-2.3.0-cp311-cp311-win32.whl", hash = "sha256:c7f5d987f4f2a1d5be36967524c70bce2e9c1949bf78570640669d1e54db1bdb"}, - {file = "winrt_Windows.ApplicationModel.Core-2.3.0-cp311-cp311-win_amd64.whl", hash = "sha256:7ccea8ee3bcd7684491364cc7389f28caf73a4a132c4031a5bdca309232ca2a5"}, - {file = "winrt_Windows.ApplicationModel.Core-2.3.0-cp311-cp311-win_arm64.whl", hash = "sha256:41c5f002639e989e41b4bbcf5a1bd804b33ddb38409914bab719dd5d601e905f"}, - {file = "winrt_Windows.ApplicationModel.Core-2.3.0-cp312-cp312-win32.whl", hash = "sha256:d1fbf410e5b2d3089f45d9791b627ac1dd22317c8f0815743e8299cd25045060"}, - {file = "winrt_Windows.ApplicationModel.Core-2.3.0-cp312-cp312-win_amd64.whl", hash = "sha256:614ce137d184f1fe1520951d11d70c321416888a1ac76146944aad4d10e3ab1b"}, - {file = "winrt_Windows.ApplicationModel.Core-2.3.0-cp312-cp312-win_arm64.whl", hash = "sha256:3bc096dec5d1d4dff8301d5ef5a2b3d61a0ad483414e98cf99b3c1343961e8ea"}, - {file = "winrt_Windows.ApplicationModel.Core-2.3.0-cp313-cp313-win32.whl", hash = "sha256:923435eb28301579868715a4c85813cde3bd204d0604c6b4763898f8a9668689"}, - {file = "winrt_Windows.ApplicationModel.Core-2.3.0-cp313-cp313-win_amd64.whl", hash = "sha256:5222db4fe2db889d25278aa1a3ea103c916bfbac10b280d9bbafab0a9699addc"}, - {file = "winrt_Windows.ApplicationModel.Core-2.3.0-cp313-cp313-win_arm64.whl", hash = "sha256:442ee7123315df3d41bdc03688821d338cc83bbd5b31130bf95f7b8c928a5f94"}, - {file = "winrt_Windows.ApplicationModel.Core-2.3.0-cp39-cp39-win32.whl", hash = "sha256:a3df2a7f0c7d6d49f5830760f1c280bda1630d7a533358715e4ae126edd7b463"}, - {file = "winrt_Windows.ApplicationModel.Core-2.3.0-cp39-cp39-win_amd64.whl", hash = "sha256:d1e30df0f1b8af34262b351f66945511e1ffc2ae79452e360deb0a6fa38e1996"}, - {file = "winrt_Windows.ApplicationModel.Core-2.3.0-cp39-cp39-win_arm64.whl", hash = "sha256:a54d963b29be87d1ee6ee414f9db2388ca1ca4a5490919473d372c033fc6af45"}, - {file = "winrt_windows_applicationmodel_core-2.3.0.tar.gz", hash = "sha256:17ac6cb2c6872d51625547b4df5eadd0b296d966e976868520183d6dc45a0884"}, -] - -[package.dependencies] -winrt-runtime = "2.3.0" - -[package.extras] -all = ["winrt-Windows.ApplicationModel.Activation[all] (==2.3.0)", "winrt-Windows.ApplicationModel[all] (==2.3.0)", "winrt-Windows.Foundation.Collections[all] (==2.3.0)", "winrt-Windows.Foundation[all] (==2.3.0)", "winrt-Windows.System[all] (==2.3.0)", "winrt-Windows.UI.Core[all] (==2.3.0)"] - -[[package]] -name = "winrt-windows-data-xml-dom" -version = "2.3.0" -description = "Python projection of Windows Runtime (WinRT) APIs" -optional = false -python-versions = "<3.14,>=3.9" -groups = ["main"] -markers = "sys_platform == \"win32\"" -files = [ - {file = "winrt_Windows.Data.Xml.Dom-2.3.0-cp310-cp310-win32.whl", hash = "sha256:ab31a1b938fca5dce5be92c7fdaf70c70c5d8982d956ab1a6f34c5877f1acb3d"}, - {file = "winrt_Windows.Data.Xml.Dom-2.3.0-cp310-cp310-win_amd64.whl", hash = "sha256:c315b11b3b2e1a854e333d4c0ce7aa3ed3c8330ce7822a17d1c2c6358e2bb768"}, - {file = "winrt_Windows.Data.Xml.Dom-2.3.0-cp310-cp310-win_arm64.whl", hash = "sha256:7611237e8c8b1aa3bd493fee952afad9450a18d2fb40eed8defb63e145553170"}, - {file = "winrt_Windows.Data.Xml.Dom-2.3.0-cp311-cp311-win32.whl", hash = "sha256:b968a0496852dfc720c18fd475dd32861aaf545ab88d3320fbb5098515f43bd0"}, - {file = "winrt_Windows.Data.Xml.Dom-2.3.0-cp311-cp311-win_amd64.whl", hash = "sha256:4b85b309744442676b0a92bac6610147b4c9f059ee8bc2f65db8587a51c04b4a"}, - {file = "winrt_Windows.Data.Xml.Dom-2.3.0-cp311-cp311-win_arm64.whl", hash = "sha256:8cd9d9c100205bfbc069937791de447da57f4e731bee13e6dda7c898bd78290e"}, - {file = "winrt_Windows.Data.Xml.Dom-2.3.0-cp312-cp312-win32.whl", hash = "sha256:6a6835f3b07444c0efe5da6ad659ddc95e08a0c630b28629ca12e32303b59ccc"}, - {file = "winrt_Windows.Data.Xml.Dom-2.3.0-cp312-cp312-win_amd64.whl", hash = "sha256:2825db84e3660373d5a6c5a4dcc5f7e3180ec6f79d0689eeaa75504613cc93d1"}, - {file = "winrt_Windows.Data.Xml.Dom-2.3.0-cp312-cp312-win_arm64.whl", hash = "sha256:c93e7cd02d67f2956760e14b36f270bbd338ebcc1e4959114ace609f0e00c41d"}, - {file = "winrt_Windows.Data.Xml.Dom-2.3.0-cp313-cp313-win32.whl", hash = "sha256:12fc93efd93b1eb40b932cf47736ba42dcd94955d33266c91fcb5f4456b820a5"}, - {file = "winrt_Windows.Data.Xml.Dom-2.3.0-cp313-cp313-win_amd64.whl", hash = "sha256:6a37754acce645ce1fefeb1fafc8f703b8912528dc0178650392335d24647ed2"}, - {file = "winrt_Windows.Data.Xml.Dom-2.3.0-cp313-cp313-win_arm64.whl", hash = "sha256:48f6203613d6b4a17316e4682c60a73cd24bd1a1a897e5b38497a4fe23de0c1f"}, - {file = "winrt_Windows.Data.Xml.Dom-2.3.0-cp39-cp39-win32.whl", hash = "sha256:94095b93e3f1d99432f00b01c4a8fd9dc285b3a3b5b785e0d5add4a6f09482b2"}, - {file = "winrt_Windows.Data.Xml.Dom-2.3.0-cp39-cp39-win_amd64.whl", hash = "sha256:c58315e7c7f75f5241988b67a264b4747e3e2041e0780f3cfa6402a630ffae93"}, - {file = "winrt_Windows.Data.Xml.Dom-2.3.0-cp39-cp39-win_arm64.whl", hash = "sha256:875767d9e7f65e3fb3bb6675d370df6519e9746b0f20c8d1e06a44781339345d"}, - {file = "winrt_windows_data_xml_dom-2.3.0.tar.gz", hash = "sha256:3a9a8ded7d6ccaf5a141f3bb5eb6abdbdf680a25ec1dc0cd542ea1a4a652571a"}, -] - -[package.dependencies] -winrt-runtime = "2.3.0" - -[package.extras] -all = ["winrt-Windows.Foundation.Collections[all] (==2.3.0)", "winrt-Windows.Foundation[all] (==2.3.0)", "winrt-Windows.Storage.Streams[all] (==2.3.0)", "winrt-Windows.Storage[all] (==2.3.0)"] - -[[package]] -name = "winrt-windows-foundation" -version = "2.3.0" -description = "Python projection of Windows Runtime (WinRT) APIs" -optional = false -python-versions = "<3.14,>=3.9" -groups = ["main"] -markers = "sys_platform == \"win32\"" -files = [ - {file = "winrt_Windows.Foundation-2.3.0-cp310-cp310-win32.whl", hash = "sha256:ea7b0e82be5c05690fedaf0dac5aa5e5fefd7ebf90b1497e5993197d305d916d"}, - {file = "winrt_Windows.Foundation-2.3.0-cp310-cp310-win_amd64.whl", hash = "sha256:6807dd40f8ecd6403679f6eae0db81674fdcf33768d08fdee66e0a17b7a02515"}, - {file = "winrt_Windows.Foundation-2.3.0-cp310-cp310-win_arm64.whl", hash = "sha256:0a861815e97ace82583210c03cf800507b0c3a97edd914bfffa5f88de1fbafcc"}, - {file = "winrt_Windows.Foundation-2.3.0-cp311-cp311-win32.whl", hash = "sha256:c79b3d9384128b6b28c2483b4600f15c5d32c1f6646f9d77fdb3ee9bbaef6f81"}, - {file = "winrt_Windows.Foundation-2.3.0-cp311-cp311-win_amd64.whl", hash = "sha256:fdd9c4914070dc598f5961d9c7571dd7d745f5cc60347603bf39d6ee921bd85c"}, - {file = "winrt_Windows.Foundation-2.3.0-cp311-cp311-win_arm64.whl", hash = "sha256:62bbb0ffa273551d33fd533d6e09b6f9f633dc214225d483722af47d2525fb84"}, - {file = "winrt_Windows.Foundation-2.3.0-cp312-cp312-win32.whl", hash = "sha256:d36f472ac258e79eee6061e1bb4ce50bfd200f9271392d23479c800ca6aee8d1"}, - {file = "winrt_Windows.Foundation-2.3.0-cp312-cp312-win_amd64.whl", hash = "sha256:8de9b5e95a3fdabdb45b1952e05355dd5a678f80bf09a54d9f966dccc805b383"}, - {file = "winrt_Windows.Foundation-2.3.0-cp312-cp312-win_arm64.whl", hash = "sha256:37da09c08c9c772baedb1958e5ee116fe63809f33c6820c69750f340b3dda292"}, - {file = "winrt_Windows.Foundation-2.3.0-cp313-cp313-win32.whl", hash = "sha256:2b00fad3f2a3859ccae41eee12ab44434813a371c2f3003b4f2419e5eecb4832"}, - {file = "winrt_Windows.Foundation-2.3.0-cp313-cp313-win_amd64.whl", hash = "sha256:686619932b2a2c689cbebc7f5196437a45fd2056656ef130bb10240bb111086a"}, - {file = "winrt_Windows.Foundation-2.3.0-cp313-cp313-win_arm64.whl", hash = "sha256:b38dcb83fe82a7da9a57d7d5ad5deb09503b5be6d9357a9fd3016ca31673805d"}, - {file = "winrt_Windows.Foundation-2.3.0-cp39-cp39-win32.whl", hash = "sha256:2d6922de4dc38061b86d314c7319d7c6bd78a52d64ee0c93eb81474bddb499bc"}, - {file = "winrt_Windows.Foundation-2.3.0-cp39-cp39-win_amd64.whl", hash = "sha256:1513e43adff3779d2f611d8bdf9350ac1a7c04389e9e6b1d777c5cd54f46e4fc"}, - {file = "winrt_Windows.Foundation-2.3.0-cp39-cp39-win_arm64.whl", hash = "sha256:c811e4a4f79b947fbbb50f74d34ef6840dd2dd26e0199bd61a4185e48c6a84a8"}, - {file = "winrt_windows_foundation-2.3.0.tar.gz", hash = "sha256:c5766f011c8debbe89b460af4a97d026ca252144e62d7278c9c79c5581ea0c02"}, -] - -[package.dependencies] -winrt-runtime = "2.3.0" - -[package.extras] -all = ["winrt-Windows.Foundation.Collections[all] (==2.3.0)"] - -[[package]] -name = "winrt-windows-foundation-collections" -version = "2.3.0" -description = "Python projection of Windows Runtime (WinRT) APIs" -optional = false -python-versions = "<3.14,>=3.9" -groups = ["main"] -markers = "sys_platform == \"win32\"" -files = [ - {file = "winrt_Windows.Foundation.Collections-2.3.0-cp310-cp310-win32.whl", hash = "sha256:d2fca59eef9582a33c2797b1fda1d5757d66827cc34e6fc1d1c94a5875c4c043"}, - {file = "winrt_Windows.Foundation.Collections-2.3.0-cp310-cp310-win_amd64.whl", hash = "sha256:d14b47d9137aebad71aa4fde5892673f2fa326f5f4799378cb9f6158b07a9824"}, - {file = "winrt_Windows.Foundation.Collections-2.3.0-cp310-cp310-win_arm64.whl", hash = "sha256:cca5398a4522dffd76decf64a28368cda67e81dc01cad35a9f39cc351af69bdd"}, - {file = "winrt_Windows.Foundation.Collections-2.3.0-cp311-cp311-win32.whl", hash = "sha256:3808af64c95a9b464e8e97f6bec57a8b22168185f1c893f30de69aaf48c85b17"}, - {file = "winrt_Windows.Foundation.Collections-2.3.0-cp311-cp311-win_amd64.whl", hash = "sha256:1e9a3842a39feb965545124abfe79ed726adc5a1fc6a192470a3c5d3ec3f7a74"}, - {file = "winrt_Windows.Foundation.Collections-2.3.0-cp311-cp311-win_arm64.whl", hash = "sha256:751c2a68fef080dfe0af892ef4cebf317844e4baa786e979028757fe2740fba4"}, - {file = "winrt_Windows.Foundation.Collections-2.3.0-cp312-cp312-win32.whl", hash = "sha256:498c1fc403d3dc7a091aaac92af471615de4f9550d544347cb3b169c197183b5"}, - {file = "winrt_Windows.Foundation.Collections-2.3.0-cp312-cp312-win_amd64.whl", hash = "sha256:4d1b1cacc159f38d8e6b662f6e7a5c41879a36aa7434c1580d7f948c9037419e"}, - {file = "winrt_Windows.Foundation.Collections-2.3.0-cp312-cp312-win_arm64.whl", hash = "sha256:398d93b76a2cf70d5e75c1f802e1dd856501e63bc9a31f4510ac59f718951b9e"}, - {file = "winrt_Windows.Foundation.Collections-2.3.0-cp313-cp313-win32.whl", hash = "sha256:1e5f1637e0919c7bb5b11ba1eebbd43bc0ad9600cf887b59fcece0f8a6c0eac3"}, - {file = "winrt_Windows.Foundation.Collections-2.3.0-cp313-cp313-win_amd64.whl", hash = "sha256:c809a70bc0f93d53c7289a0a86d8869740e09fff0c57318a14401f5c17e0b912"}, - {file = "winrt_Windows.Foundation.Collections-2.3.0-cp313-cp313-win_arm64.whl", hash = "sha256:269942fe86af06293a2676c8b2dcd5cb1d8ddfe1b5244f11c16e48ae0a5d100f"}, - {file = "winrt_Windows.Foundation.Collections-2.3.0-cp39-cp39-win32.whl", hash = "sha256:936b1c5720b564ec699673198addee97f3bdb790622d24c8fd1b346a9767717c"}, - {file = "winrt_Windows.Foundation.Collections-2.3.0-cp39-cp39-win_amd64.whl", hash = "sha256:905a6ac9cd6b51659a9bba08cf44cfc925f528ef34cdd9c3a6c2632e97804a96"}, - {file = "winrt_Windows.Foundation.Collections-2.3.0-cp39-cp39-win_arm64.whl", hash = "sha256:1d6eac85976bd831e1b8cc479d7f14afa51c27cec5a38e2540077d3400cbd3ef"}, - {file = "winrt_windows_foundation_collections-2.3.0.tar.gz", hash = "sha256:15c997fd6b64ef0400a619319ea3c6851c9c24e31d51b6448ba9bac3616d25a0"}, -] - -[package.dependencies] -winrt-runtime = "2.3.0" - -[package.extras] -all = ["winrt-Windows.Foundation[all] (==2.3.0)"] - -[[package]] -name = "winrt-windows-foundation-interop" -version = "2.3.0" -description = "Python projection of Windows Runtime (WinRT) APIs" -optional = false -python-versions = "<3.14,>=3.9" -groups = ["main"] -markers = "sys_platform == \"win32\"" -files = [ - {file = "winrt_Windows.Foundation.Interop-2.3.0-cp310-cp310-win32.whl", hash = "sha256:855fb4b3ccb08040a4c86b188d470fd9c9974cfca1ff1f2a938abc6a6d47ede7"}, - {file = "winrt_Windows.Foundation.Interop-2.3.0-cp310-cp310-win_amd64.whl", hash = "sha256:59460adcc9ad6a050313607bec9e6f664d841c7854a89f0b60b051d7c7d2b61c"}, - {file = "winrt_Windows.Foundation.Interop-2.3.0-cp310-cp310-win_arm64.whl", hash = "sha256:a0b1117b70b2a0460c34060a8aca72eb48847c3a96065bb0f5d1057637b46412"}, - {file = "winrt_Windows.Foundation.Interop-2.3.0-cp311-cp311-win32.whl", hash = "sha256:50825edbdaaa4c529dd29ef4e63b2854f4a361c84f308a315671bb74f49006fc"}, - {file = "winrt_Windows.Foundation.Interop-2.3.0-cp311-cp311-win_amd64.whl", hash = "sha256:f01952941f1099cb753cb731eb7d42febaa7661ef45de9d3322bf77139091b0e"}, - {file = "winrt_Windows.Foundation.Interop-2.3.0-cp311-cp311-win_arm64.whl", hash = "sha256:5c3394cd50c365b64de9e1e7953f10501e323881fa0f834036c500e16d4b4449"}, - {file = "winrt_Windows.Foundation.Interop-2.3.0-cp312-cp312-win32.whl", hash = "sha256:fa62403891a3333f8b9277f61b92c338303244c28fdcac79e8cc03bcdff02ad3"}, - {file = "winrt_Windows.Foundation.Interop-2.3.0-cp312-cp312-win_amd64.whl", hash = "sha256:ddd79109a01db4fe1f54e0e47a7b8a54656d3abda9722b38f643b4c9e787196a"}, - {file = "winrt_Windows.Foundation.Interop-2.3.0-cp312-cp312-win_arm64.whl", hash = "sha256:5f6dd52d3cc6d13f56f3463c7298807f3c7d964b0469f1a0e0d168e6147e8c34"}, - {file = "winrt_Windows.Foundation.Interop-2.3.0-cp313-cp313-win32.whl", hash = "sha256:917839b4d0a87730c1ff604bdbbe21f39c5d2de5b691694776e7f96fa49f8002"}, - {file = "winrt_Windows.Foundation.Interop-2.3.0-cp313-cp313-win_amd64.whl", hash = "sha256:81cf25ce23a4e7703c79c55546c012d7e274f6212e785513d0114d97537a2c0e"}, - {file = "winrt_Windows.Foundation.Interop-2.3.0-cp313-cp313-win_arm64.whl", hash = "sha256:a5dedb8559382b850b77c984b8b42a730fe2a49294716ba3e48b7e8e30140dc7"}, - {file = "winrt_Windows.Foundation.Interop-2.3.0-cp39-cp39-win32.whl", hash = "sha256:bc0cc162303b3118f160cbffe4cdc98bd6675c22d13b6b7af12692abe9c018f4"}, - {file = "winrt_Windows.Foundation.Interop-2.3.0-cp39-cp39-win_amd64.whl", hash = "sha256:3d363550aef4464784ef8445d5a01d11cca72aed5c7094fc4458b15102a45609"}, - {file = "winrt_Windows.Foundation.Interop-2.3.0-cp39-cp39-win_arm64.whl", hash = "sha256:64514ea00b70e1acf413d728e7503b7682873a4fd8c7038c0d641e7c4fc94979"}, - {file = "winrt_windows_foundation_interop-2.3.0.tar.gz", hash = "sha256:ede0d6c5ba6a1ecde35fcbb71e7e3fbeba72fdc6bfff33e8068c381cd7df53de"}, -] - -[[package]] -name = "winrt-windows-ui-notifications" -version = "2.3.0" -description = "Python projection of Windows Runtime (WinRT) APIs" -optional = false -python-versions = "<3.14,>=3.9" -groups = ["main"] -markers = "sys_platform == \"win32\"" -files = [ - {file = "winrt_Windows.UI.Notifications-2.3.0-cp310-cp310-win32.whl", hash = "sha256:2bad9b89a8d6ca018de4d411c150468ea5d3119531965ef11b29dc648d006859"}, - {file = "winrt_Windows.UI.Notifications-2.3.0-cp310-cp310-win_amd64.whl", hash = "sha256:8565e8c082fce074e3536b2e80acb48a8035077d3041e22dd9c898d2261fbe6c"}, - {file = "winrt_Windows.UI.Notifications-2.3.0-cp310-cp310-win_arm64.whl", hash = "sha256:918d8f84a03cde7154d1fa2ff494547005edee95d1ce34cee8b9f64433da3b20"}, - {file = "winrt_Windows.UI.Notifications-2.3.0-cp311-cp311-win32.whl", hash = "sha256:07e1ee644bca735c1805ce0e464cf48f1fecb2b3f0b7bcdc42df285eb280bb92"}, - {file = "winrt_Windows.UI.Notifications-2.3.0-cp311-cp311-win_amd64.whl", hash = "sha256:5503e39a41100842bb68f40d6226c81bab4d47d67bb39afb654dae36f584b5a5"}, - {file = "winrt_Windows.UI.Notifications-2.3.0-cp311-cp311-win_arm64.whl", hash = "sha256:6802f4ca4415078f0a8e78b1ca32018287bfc49a589302b733e35fb675076349"}, - {file = "winrt_Windows.UI.Notifications-2.3.0-cp312-cp312-win32.whl", hash = "sha256:ed7f9124d373de46a7d06b284df0530f2f6a2a7321d3fe28f83f1c970da923c7"}, - {file = "winrt_Windows.UI.Notifications-2.3.0-cp312-cp312-win_amd64.whl", hash = "sha256:b00c07f44d1902461151c41db9ff0b1602f0272f324d7de35242be37b0c2a073"}, - {file = "winrt_Windows.UI.Notifications-2.3.0-cp312-cp312-win_arm64.whl", hash = "sha256:0367969f0f9f8ff54508122abf0df64507dcbbecdefcab1fec5cfc1ca96d2625"}, - {file = "winrt_Windows.UI.Notifications-2.3.0-cp313-cp313-win32.whl", hash = "sha256:dc1230249d63865f33f80ab0cae1139987dca446fa44af27b593afe99a67bf05"}, - {file = "winrt_Windows.UI.Notifications-2.3.0-cp313-cp313-win_amd64.whl", hash = "sha256:33cd44d4744d3b4b0ef7dc624bcd3483c6f0c8eb92006e45e2fdeed00eea69ec"}, - {file = "winrt_Windows.UI.Notifications-2.3.0-cp313-cp313-win_arm64.whl", hash = "sha256:5a8b52b373b1b61432743ec4169b729fe35f1126eb6355a6506a8ef6d69ed18c"}, - {file = "winrt_Windows.UI.Notifications-2.3.0-cp39-cp39-win32.whl", hash = "sha256:2146a3734aaf8f2461460d0d456cae594ecc32d89fb38f5acaeebc093462d468"}, - {file = "winrt_Windows.UI.Notifications-2.3.0-cp39-cp39-win_amd64.whl", hash = "sha256:cffc71c6da06f049f77d117263d1ce603e23b72c121de9da2e7cfc622c7f93dd"}, - {file = "winrt_Windows.UI.Notifications-2.3.0-cp39-cp39-win_arm64.whl", hash = "sha256:eb151634858339f2f266a33b9bff32caa2087a73e6de0588e28c636ac4cda2bc"}, - {file = "winrt_windows_ui_notifications-2.3.0.tar.gz", hash = "sha256:3bd5b1b991bfe9cd29f9357ebbef2387cccd3dbb5203d7c143c7c5d6d2631227"}, -] - -[package.dependencies] -winrt-runtime = "2.3.0" - -[package.extras] -all = ["winrt-Windows.ApplicationModel[all] (==2.3.0)", "winrt-Windows.Data.Xml.Dom[all] (==2.3.0)", "winrt-Windows.Foundation.Collections[all] (==2.3.0)", "winrt-Windows.Foundation[all] (==2.3.0)", "winrt-Windows.System[all] (==2.3.0)"] - [metadata] -lock-version = "2.1" +lock-version = "2.0" python-versions = "~3.11.0" -content-hash = "9bb9c663ae7f778d7b3ec1025f6f937e0454c431707f1910a36d0d29b3fdd6e2" +content-hash = "608aedff736664399e91de59d7c7f452e7695b93c74d9540b2ee8853fb5232ba" diff --git a/pyproject.toml b/pyproject.toml index 6e4fd18..ef12bf6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,6 @@ description = "Affordable and Fully Opensource Mouth Tracker for VR" authors = ["SummerSigh", "RedHawk989"] license = "MIT" repository = "https://github.com/SummerSigh/ProjectBabble" -package-mode = false [tool.poetry.dependencies] python = "~3.11.0" @@ -16,7 +15,9 @@ numpy = "~1.23.5" pysimplegui = "^4.60.4" pydantic = "^1.10.2" pyserial = "^3.5" -desktop-notifier = "^6.0.0" +winotify = [ + { version = "^1.1.0", platform = 'win32' } +] onnxruntime-directml = "^1.15.0" colorama = "^0.4.6" @@ -28,7 +29,7 @@ pygrabber = "^0.2" [tool.poetry.group.dev.dependencies] black = "^22.10.0" -pyinstaller = "^6.11.1" +pyinstaller = "^5.6.2" flake8 = "^5.0.4" diff --git a/scripts/build_app_and_installer.bat b/scripts/build_app_and_installer.bat index bbe6d20..d31555a 100644 --- a/scripts/build_app_and_installer.bat +++ b/scripts/build_app_and_installer.bat @@ -11,4 +11,4 @@ robocopy %babblepath%\BabbleApp\Models %babblepath%\BabbleApp\dist\Babble_App\Mo cd %babblepath%\BabbleApp\dist\Babble_App\Models rmdir /s /q dev -::start /D %innopath% cmd /k ISCC %babblepath%\scripts\installer.iss +start /D %innopath% cmd /k ISCC %babblepath%\scripts\installer.iss From 34fbf65448297b85812b2ed24a454baec65038ef Mon Sep 17 00:00:00 2001 From: Rames The Generic Date: Tue, 4 Feb 2025 18:25:11 -0500 Subject: [PATCH 5/7] Revert "Update Build.yml" This reverts commit 2245204b0a87d1d5aad8f788c97121ff3b1e6d8a. --- .github/workflows/Build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index f19eaea..92bad77 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -9,7 +9,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: windows-latest steps: - uses: actions/checkout@v2 From 6a24320167e84b69f6702ccff77251b04876577a Mon Sep 17 00:00:00 2001 From: Rames The Generic Date: Tue, 4 Feb 2025 18:25:21 -0500 Subject: [PATCH 6/7] Revert "Update Build.yml" This reverts commit ded041b8dbe7f7509b727811d8ef80d76dc118f9. --- .github/workflows/Build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index 92bad77..f19eaea 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -9,7 +9,7 @@ on: jobs: build: - runs-on: windows-latest + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 From c038f2f68f00781d4da108e348d0fdd879baf3af Mon Sep 17 00:00:00 2001 From: Rames The Generic Date: Tue, 4 Feb 2025 18:27:47 -0500 Subject: [PATCH 7/7] Update camera.py --- BabbleApp/camera.py | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/BabbleApp/camera.py b/BabbleApp/camera.py index af4df25..ef54c88 100644 --- a/BabbleApp/camera.py +++ b/BabbleApp/camera.py @@ -10,10 +10,9 @@ import threading from enum import Enum import serial.tools.list_ports from lang_manager import LocaleStringManager as lang - from colorama import Fore from config import BabbleConfig, BabbleSettingsConfig -from utils.misc_utils import get_camera_index_by_name, list_camera_names +from utils.misc_utils import get_camera_index_by_name, list_camera_names, is_nt from vivefacialtracker.vivetracker import ViveTracker from vivefacialtracker.camera_controller import FTCameraController @@ -95,6 +94,7 @@ class Camera: self.config.capture_source is not None and self.config.capture_source != "" ): + self.current_capture_source = self.config.capture_source isSerial = any(x in str(self.config.capture_source) for x in PORTS) if isSerial: @@ -103,7 +103,7 @@ class Camera: self.cv2_camera = None if self.vft_camera is not None: self.vft_camera.close() - self.device_is_vft = False; + self.device_is_vft = False if ( self.serial_connection is None or self.camera_status == CameraState.DISCONNECTED @@ -116,7 +116,7 @@ class Camera: if self.cv2_camera is not None: self.cv2_camera.release() self.cv2_camera = None - self.device_is_vft = True; + self.device_is_vft = True if self.vft_camera is None: print(self.error_message.format(self.config.capture_source)) @@ -141,18 +141,18 @@ class Camera: self.cv2_camera is None or not self.cv2_camera.isOpened() or self.camera_status == CameraState.DISCONNECTED - or get_camera_index_by_name(self.config.capture_source) != self.current_capture_source + #or get_camera_index_by_name(self.config.capture_source) != self.current_capture_source + or self.config.capture_source != self.current_capture_source ): if self.vft_camera is not None: self.vft_camera.close() - self.device_is_vft = False; + self.device_is_vft = False print(self.error_message.format(self.config.capture_source)) # This requires a wait, otherwise we can error and possible screw up the camera # firmware. Fickle things. if self.cancellation_event.wait(WAIT_TIME): return - if self.config.capture_source not in self.camera_list: self.current_capture_source = self.config.capture_source else: @@ -163,9 +163,8 @@ class Camera: self.current_capture_source, cv2.CAP_FFMPEG ) else: - self.cv2_camera = cv2.VideoCapture( - self.current_capture_source - ) + self.cv2_camera = cv2.VideoCapture() + self.cv2_camera.open(self.current_capture_source) if not self.settings.gui_cam_resolution_x == 0: self.cv2_camera.set( @@ -181,7 +180,6 @@ class Camera: self.cv2_camera.set( cv2.CAP_PROP_FPS, self.settings.gui_cam_framerate ) - should_push = False else: # We don't have a capture source to try yet, wait for one to show up in the GUI. @@ -215,7 +213,7 @@ class Camera: return self.frame_number = self.frame_number + 1 elif self.cv2_camera is not None and self.cv2_camera.isOpened(): - ret, image = self.cv2_camera.read() + ret, image = self.cv2_camera.read() # MJPEG Stream reconnects are currently limited by the hard coded 30 second timeout time on VideoCapture.read(). We can get around this by recompiling OpenCV or using a custom MJPEG stream imp. if not ret: self.cv2_camera.set(cv2.CAP_PROP_POS_FRAMES, 0) raise RuntimeError(lang._instance.get_string("error.frame")) @@ -223,7 +221,6 @@ class Camera: else: # Switching from a Vive Facial Tracker to a CV2 camera return - self.FRAME_SIZE = image.shape # Calculate FPS current_frame_time = time.time() # Should be using "time.perf_counter()", not worth ~3x cycles? @@ -361,4 +358,4 @@ class Camera: f'{Fore.YELLOW}[{lang._instance.get_string("log.warn")}] {lang._instance.get_string("warn.backpressure1")} {qsize}. {lang._instance.get_string("warn.backpressure2")}{Fore.RESET}' ) self.camera_output_outgoing.put((self.clamp_max_res(image), frame_number, fps)) - self.capture_event.clear() + self.capture_event.clear() \ No newline at end of file