Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -231,11 +231,10 @@ def calculateAngle(landmark1, landmark2, landmark3):
|
|
231 |
|
232 |
#***************************Create a Function to Perform Pose Classification***************
|
233 |
|
234 |
-
|
235 |
-
|
236 |
|
237 |
# Initialize the label of the pose. It is not known at this stage.
|
238 |
-
|
239 |
|
240 |
# Specify the color (Red) with which the label will be written on the image.
|
241 |
color = (0, 0, 255)
|
|
|
231 |
|
232 |
#***************************Create a Function to Perform Pose Classification***************
|
233 |
|
234 |
+
def classifyPose(landmarks, output_image, display=False):
|
|
|
235 |
|
236 |
# Initialize the label of the pose. It is not known at this stage.
|
237 |
+
label = "Unknown Pose"
|
238 |
|
239 |
# Specify the color (Red) with which the label will be written on the image.
|
240 |
color = (0, 0, 255)
|