Spaces:
Sleeping
Sleeping
Siyun He
commited on
Commit
·
15023ca
1
Parent(s):
cf85ac5
adjust glass postion
Browse files- __pycache__/app.cpython-311.pyc +0 -0
- app.py +1 -1
__pycache__/app.cpython-311.pyc
CHANGED
Binary files a/__pycache__/app.cpython-311.pyc and b/__pycache__/app.cpython-311.pyc differ
|
|
app.py
CHANGED
@@ -62,7 +62,7 @@ def process_frame(frame):
|
|
62 |
|
63 |
# Calculate the position to center the glasses on the eyes
|
64 |
overlay_x = eye_center_x - overlay_resize.shape[1] // 2
|
65 |
-
overlay_y = eye_center_y - overlay_resize.shape[0] //
|
66 |
|
67 |
# Overlay the glasses
|
68 |
try:
|
|
|
62 |
|
63 |
# Calculate the position to center the glasses on the eyes
|
64 |
overlay_x = eye_center_x - overlay_resize.shape[1] // 2
|
65 |
+
overlay_y = eye_center_y - overlay_resize.shape[0] // 2 # Adjust vertical position
|
66 |
|
67 |
# Overlay the glasses
|
68 |
try:
|