diff --git a/.gitignore b/.gitignore index cc4cdb4..2d07728 100644 --- a/.gitignore +++ b/.gitignore @@ -3,12 +3,5 @@ build dist .DS_Store -*/UI_test.py -*/Face_Landmarker_Link_stream.spec -*/Face_Landmarker_Link.spec -Face_Landmarker/Face_Landmarker_Link_stream.spec -Face_Landmarker/tracker.ico -Face_Landmarker/__pycache__/face_geometry.cpython-311.pyc -Face_Landmarker/__pycache__/pylivelinkface.cpython-311.pyc -Face_Landmarker/tracker2.ico + diff --git a/Face_Landmarker/.gitignore b/Face_Landmarker/.gitignore new file mode 100644 index 0000000..ca87350 --- /dev/null +++ b/Face_Landmarker/.gitignore @@ -0,0 +1,6 @@ +*/UI_test.py +*/tracker.ico +*/__pycache__/face_geometry.cpython-311.pyc +*/__pycache__/pylivelinkface.cpython-311.pyc +*/tracker2.ico +*/.gitignore \ No newline at end of file diff --git a/Face_Landmarker/Face_Landmarker_Link_stream.spec b/Face_Landmarker/Face_Landmarker_Link_stream.spec new file mode 100644 index 0000000..0b3d930 --- /dev/null +++ b/Face_Landmarker/Face_Landmarker_Link_stream.spec @@ -0,0 +1,51 @@ +# -*- mode: python ; coding: utf-8 -*- + + +block_cipher = None + + +a = Analysis( + ['Face_Landmarker_Link_stream.py'], + pathex=[], + binaries=[], + datas=[], + hiddenimports=[], + hookspath=[], + hooksconfig={}, + runtime_hooks=[], + excludes=[], + win_no_prefer_redirects=False, + win_private_assemblies=False, + cipher=block_cipher, + noarchive=False, +) +pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) + +exe = EXE( + pyz, + a.scripts, + [], + exclude_binaries=True, + name='Face_Landmarker_Link_stream', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + console=True, + disable_windowed_traceback=False, + argv_emulation=False, + target_arch=None, + codesign_identity=None, + entitlements_file=None, + icon=['tracker.ico'], +) +coll = COLLECT( + exe, + a.binaries, + a.zipfiles, + a.datas, + strip=False, + upx=True, + upx_exclude=[], + name='Face_Landmarker_Link_stream', +) diff --git a/Face_Landmarker/UI_test.py b/Face_Landmarker/UI_test.py new file mode 100644 index 0000000..cfea501 --- /dev/null +++ b/Face_Landmarker/UI_test.py @@ -0,0 +1,56 @@ +import tkinter as tk +from tkinter import ttk +import cv2 +import mediapipe as mp + +# Initialize MediaPipe components +mp_drawing = mp.solutions.drawing_utils +mp_hands = mp.solutions.hands + +# Create a function to update webcam processing +def update_processing(): + # Get the slider values + slider_value_1 = slider1.get() + slider_value_2 = slider2.get() + slider_value_3 = slider3.get() + + # Apply MediaPipe processing using the slider values + # Replace this with your actual processing logic + +# Initialize the webcam +cap = cv2.VideoCapture(0) + +# Create the main Tkinter window +root = tk.Tk() +root.title("Webcam Processing") + +# Create sliders and labels +slider1 = ttk.Scale(root, from_=0, to=100, orient="horizontal") +label1 = ttk.Label(root, text="Slider 1") +slider2 = ttk.Scale(root, from_=0, to=100, orient="horizontal") +label2 = ttk.Label(root, text="Slider 2") +slider3 = ttk.Scale(root, from_=0, to=100, orient="horizontal") +label3 = ttk.Label(root, text="Slider 3") + +# Create an "Update" button to apply changes +update_button = ttk.Button(root, text="Update", command=update_processing) + +# Pack the widgets +label1.pack() +slider1.pack() +label2.pack() +slider2.pack() +label3.pack() +slider3.pack() +update_button.pack() + +# Start the webcam capture loop +while True: + _, webcam_frame = cap.read() + # Display the webcam frame (you can update this part) + + root.update() # Update the Tkinter window + +# Close the webcam and the Tkinter window +cap.release() +root.destroy() \ No newline at end of file diff --git a/Face_Landmarker/__pycache__/face_geometry.cpython-311.pyc b/Face_Landmarker/__pycache__/face_geometry.cpython-311.pyc new file mode 100644 index 0000000..2727c8c Binary files /dev/null and b/Face_Landmarker/__pycache__/face_geometry.cpython-311.pyc differ diff --git a/Face_Landmarker/__pycache__/pylivelinkface.cpython-311.pyc b/Face_Landmarker/__pycache__/pylivelinkface.cpython-311.pyc new file mode 100644 index 0000000..c36eff1 Binary files /dev/null and b/Face_Landmarker/__pycache__/pylivelinkface.cpython-311.pyc differ diff --git a/Face_Landmarker/tracker.ico b/Face_Landmarker/tracker.ico new file mode 100644 index 0000000..c2acd09 Binary files /dev/null and b/Face_Landmarker/tracker.ico differ diff --git a/Face_Landmarker/tracker2.ico b/Face_Landmarker/tracker2.ico new file mode 100644 index 0000000..b1bc0e6 Binary files /dev/null and b/Face_Landmarker/tracker2.ico differ