BSuruchi commited on
Commit
85f977b
·
verified ·
1 Parent(s): b166f48

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -13
app.py CHANGED
@@ -232,19 +232,8 @@ def calculateAngle(landmark1, landmark2, landmark3):
232
  #***************************Create a Function to Perform Pose Classification***************
233
 
234
  def classifyPose(landmarks, output_image, display=False):
235
- '''
236
- This function classifies yoga poses depending upon the angles of various body joints.
237
- Args:
238
- landmarks: A list of detected landmarks of the person whose pose needs to be classified.
239
- output_image: A image of the person with the detected pose landmarks drawn.
240
- display: A boolean value that is if set to true the function displays the resultant image with the pose label
241
- written on it and returns nothing.
242
- Returns:
243
- output_image: The image with the detected pose landmarks drawn and pose label written.
244
- label: The classified pose label of the person in the output_image.
245
-
246
- '''
247
-
248
  # Initialize the label of the pose. It is not known at this stage.
249
  label = 'Unknown Pose'
250
 
 
232
  #***************************Create a Function to Perform Pose Classification***************
233
 
234
  def classifyPose(landmarks, output_image, display=False):
235
+
236
+
 
 
 
 
 
 
 
 
 
 
 
237
  # Initialize the label of the pose. It is not known at this stage.
238
  label = 'Unknown Pose'
239