-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
114 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
*/UI_test.py | ||
*/tracker.ico | ||
*/__pycache__/face_geometry.cpython-311.pyc | ||
*/__pycache__/pylivelinkface.cpython-311.pyc | ||
*/tracker2.ico | ||
*/.gitignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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', | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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() |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.