Skip to content

Commit

Permalink
Add hand gesture recognition project
Browse files Browse the repository at this point in the history
  • Loading branch information
mehul-m-prajapati committed Oct 14, 2024
1 parent 6dc388c commit fa073f3
Show file tree
Hide file tree
Showing 2 changed files with 391 additions and 0 deletions.
37 changes: 37 additions & 0 deletions Computer Vision/Hand Gesture Recongnition/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Hand Gesture Recognition with OpenCV and MediaPipe

This project implements a hand gesture recognition system using OpenCV for image processing and MediaPipe for hand detection. Users can upload images containing hand gestures, which are then processed to identify specific gestures and display the results.

## Code Breakdown:

1. **Image Upload**:
- Users can upload images directly through Google Colab, allowing for easy testing with various hand gesture images.

2. **Image Processing**:
- **Hand Detection**: Uses MediaPipe to detect hands in the uploaded image.
- **Gesture Identification**: Analyzes hand landmarks to identify simple gestures (e.g., "thumbs up").

3. **Visualization**:
- Displays the processed image with detected hand landmarks and identified gestures using Matplotlib (`plt.imshow()`).

4. **Output**:
- Prints identified gestures in the console for user reference.

## Possible Enhancements:
- **Gesture Variety**: Expand gesture recognition capabilities to include more complex gestures.
- **Real-Time Recognition**: Implement real-time video feed recognition using webcam input.
- **Custom Configurations**: Adjust hand detection parameters to improve accuracy under different conditions.
- **Error Handling**: Add checks for unsupported image formats or cases where no hands are detected.

## Example Use Case:
This hand gesture recognition system can be utilized in applications such as sign language interpretation, human-computer interaction, or control systems that respond to hand gestures.

## Requirements:
- OpenCV
- MediaPipe
- Matplotlib

### How to Run:
1. Upload your image file containing a hand gesture.
2. Run the cell to process the image and identify the gesture.
3. View the results, including the processed image and identified gestures, in the output.
354 changes: 354 additions & 0 deletions Computer Vision/Hand Gesture Recongnition/hand_gesture.ipynb

Large diffs are not rendered by default.

0 comments on commit fa073f3

Please sign in to comment.