Skip to content

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
Qaanaaq committed Nov 13, 2023
1 parent da661e2 commit 3fba7b9
Show file tree
Hide file tree
Showing 8 changed files with 114 additions and 8 deletions.
9 changes: 1 addition & 8 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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


6 changes: 6 additions & 0 deletions Face_Landmarker/.gitignore
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
51 changes: 51 additions & 0 deletions Face_Landmarker/Face_Landmarker_Link_stream.spec
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',
)
56 changes: 56 additions & 0 deletions Face_Landmarker/UI_test.py
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 added Face_Landmarker/tracker.ico
Binary file not shown.
Binary file added Face_Landmarker/tracker2.ico
Binary file not shown.

0 comments on commit 3fba7b9

Please sign in to comment.