Update app.py
Browse files
app.py
CHANGED
|
@@ -136,7 +136,7 @@ def get_point(point_type, tracking_points, trackings_input_label, input_first_fr
|
|
| 136 |
print(f"TRACKING INPUT LABEL: {trackings_input_label.value}")
|
| 137 |
|
| 138 |
# Open the image and get its dimensions
|
| 139 |
-
transparent_background = Image.open(
|
| 140 |
w, h = transparent_background.size
|
| 141 |
|
| 142 |
# Define the circle radius as a fraction of the smaller dimension
|
|
|
|
| 136 |
print(f"TRACKING INPUT LABEL: {trackings_input_label.value}")
|
| 137 |
|
| 138 |
# Open the image and get its dimensions
|
| 139 |
+
transparent_background = Image.open(input_first_frame_path).convert('RGBA')
|
| 140 |
w, h = transparent_background.size
|
| 141 |
|
| 142 |
# Define the circle radius as a fraction of the smaller dimension
|