Hand Gesture Detection
Detects up to 2 hands: gesture (thumbs up/down, open palm, fist, pointing, victory, I-love-you), left or right hand, finger count 0–5 and 21 hand keypoints. Built for gesture-controlled robots, lights and IoT projects.
Get Started in Minutes
Start sending IoT notifications in just a few simple steps
Create Account
Sign up for free, no credit card required
Get API Key
Generate your API key from the dashboard
Upload Gesture Image
POST a photo of a hand showing a gesture
Get Recognition Results
Receive gesture, finger count, left/right hand and keypoints
Live demo
Runs in your browser with your webcam. Nothing is uploaded and it doesn’t use your API quota.
Try thumbs up, open palm, fist, victory or pointing up, or hold up some fingers.
cd_xxxxxxxxxxxxxxxxxxxxGesture Image
Upload Image
Upload an image for analysis. Use a clear, well-lit photo for best results.
Click or drag & drop
JPG, PNG up to 5MB
Minimum gesture confidence. Below it the hand is still returned (left/right, finger count) with gesture “Unknown”.
Result
No result yet
Upload an image and run the test to see the annotated output
1#!/usr/bin/env python3
2"""
3Raspberry Pi - CircuitDigest Hand Gesture Detection API
4--------------------------------------------------------
5Captures a frame with Pi Camera / USB webcam, sends it to
6the cloud API, and prints the detected gestures.
7
8Install: pip install requests
9"""
10import requests
11
12API_URL = "https://www.circuitdigest.cloud/api/v1/hand-gesture-detection/detect"
13API_KEY = "YOUR_API_KEY"
14
15def detect_gesture(image_path: str) -> dict:
16 with open(image_path, "rb") as img:
17 response = requests.post(
18 API_URL,
19 headers={"X-API-Key": API_KEY},
20 files={"imageFile": img},
21 timeout=30,
22 )
23 response.raise_for_status()
24 return response.json()
25
26def main():
27 result = detect_gesture("gesture.jpg")
28
29 if result["status"] == "success":
30 print(f"Gestures detected: {result['gesture_count']}")
31 for g in result["detected_gestures"]:
32 print(f" {g['gesture']} | {g['handedness']} hand | {g['finger_count']} fingers up")
33 else:
34 print(f"Status: {result['status']} - {result.get('message', '')}")
35
36if __name__ == "__main__":
37 main()Tutorials
Learn how to integrate with step-by-step guides
Coming Soon
Step-by-step guides are in progress.