{"id":20316081,"url":"https://github.com/pushtogithub23/trackandcountyourfingers","last_synced_at":"2026-06-08T19:02:43.540Z","repository":{"id":258694411,"uuid":"874419274","full_name":"Pushtogithub23/TrackandCountYourFingers","owner":"Pushtogithub23","description":"This project uses MediaPipe's hand landmark detection module to count and identify different fingers on a person's hand by tracking and detecting various hand landmarks.","archived":false,"fork":false,"pushed_at":"2024-10-17T20:12:57.000Z","size":11180,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T09:13:36.906Z","etag":null,"topics":["computer-vision","hand-tracking","mediapipe-hands","opencv-python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Pushtogithub23.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-17T19:45:02.000Z","updated_at":"2024-10-17T20:18:50.000Z","dependencies_parsed_at":"2024-10-21T17:46:30.063Z","dependency_job_id":null,"html_url":"https://github.com/Pushtogithub23/TrackandCountYourFingers","commit_stats":null,"previous_names":["pushtogithub23/trackandcountyourfingers"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Pushtogithub23/TrackandCountYourFingers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pushtogithub23%2FTrackandCountYourFingers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pushtogithub23%2FTrackandCountYourFingers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pushtogithub23%2FTrackandCountYourFingers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pushtogithub23%2FTrackandCountYourFingers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pushtogithub23","download_url":"https://codeload.github.com/Pushtogithub23/TrackandCountYourFingers/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pushtogithub23%2FTrackandCountYourFingers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34075987,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["computer-vision","hand-tracking","mediapipe-hands","opencv-python"],"created_at":"2024-11-14T18:24:13.636Z","updated_at":"2026-06-08T19:02:43.507Z","avatar_url":"https://github.com/Pushtogithub23.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Finger Tracking and Counting Projects using MediaPipe and OpenCV\n\n## Overview\nThis repository contains two Python scripts (`finger_tracker.py` and `finger_counter.py`) that use the `HandTrackingModule` to detect, track, and analyze hand gestures using MediaPipe's hand landmarks detection.\n\nThe `HandTrackingModule` is a custom-built class that wraps MediaPipe's hand detection functionality, allowing easy detection of hand landmarks and tracking their positions in real-time.\n\n## Dependencies\nBefore running the scripts, ensure the following dependencies are installed:\n- Python 3.x\n- OpenCV (`cv2`)\n- MediaPipe (`mediapipe`)\n\nYou can install these dependencies using:\n```bash\npip install opencv-python mediapipe\n```\n\n## HandTrackingModule\nThis module provides a `HandDetector` class used in both scripts for hand detection and drawing landmarks. The class includes methods like:\n- `findHands`: Detects hands in a video frame and draws the landmarks.\n- `findPositions`: Returns the (x, y) coordinates of hand landmarks.\n- `fingersUp`: Determines which fingers are extended.\n\nThe `HandDetector` class is used in both scripts to simplify hand tracking and finger state detection.\n\n## Scripts\n\n### 1. Finger Tracker (`finger_tracker.py`)\nThe `finger_tracker.py` script tracks and labels each finger (Thumb, Index, Middle, Ring, Pinky) based on the detected hand landmarks. It determines whether the detected hand is right or left and labels the fingers accordingly.\n\nhttps://github.com/user-attachments/assets/a87656b3-e3dd-40f5-8e6b-eb3f6c6e267a\n\n#### Key Features:\n- Detects hands and draws hand landmarks on the video stream.\n- Identifies and labels each finger based on hand orientation (left/right hand).\n- Supports recording the video output when toggled.\n- Displays real-time frames per second (FPS) for performance monitoring.\n\n#### Usage:\n```bash\npython finger_tracker.py\n```\nPress `r` to toggle recording, and press `p` to stop the script.\n\n### 2. Finger Counter (`finger_counter.py`)\nThe `finger_counter.py` script tracks the number of fingers extended on a detected hand and displays an image corresponding to the number of fingers held up. This script can be used to visually count fingers in real time.\n\n\n\nhttps://github.com/user-attachments/assets/5423949d-41a4-435b-b5f6-1aa07edfc080\n\n\n\n#### Key Features:\n- Counts the number of fingers extended on a hand.\n- Displays an image based on the number of fingers extended (e.g., an image for one finger, two fingers, etc.).\n- Draws the count of extended fingers on the video frame.\n- Supports recording the video output when toggled.\n- Displays FPS for performance monitoring.\n\n#### Usage:\n```bash\npython finger_counter.py\n```\nPress `r` to toggle recording, and press `p` to stop the script.\n\n## Recording Videos\nBoth scripts allow recording the video output:\n- Press the `r` key to start or stop recording.\n- The output video files will be saved in the `VIDEOS` directory.\n\n### Output Files:\n- `identify_fingers.mp4` for `finger_tracker.py`\n- `finger_counter.mp4` for `finger_counter.py`\n\n## Conclusion\nThese scripts demonstrate basic hand tracking and finger counting using the MediaPipe framework, providing an interactive way to track and analyze hand gestures in real time. Feel free to extend the functionality or adapt it for custom applications such as gesture control, sign language interpretation, or touchless interfaces.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpushtogithub23%2Ftrackandcountyourfingers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpushtogithub23%2Ftrackandcountyourfingers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpushtogithub23%2Ftrackandcountyourfingers/lists"}