YOLO Pose Estimation API
Upload an image to detect pose keypoints
API Usage
This Gradio app also provides a REST API endpoint at /api/predict
.
Example usage:
import requests
# Send a POST request to the API endpoint
response = requests.post(
"YOUR_HUGGINGFACE_SPACE_URL/api/predict",
files={"input_image": open("image.jpg", "rb")}
)
# Process results
if response.status_code == 200:
results = response.json()
keypoints = results.get("keypoints", {})
print(keypoints)
else:
print(f"Error: {response.text}")