{"id":24569595,"url":"https://github.com/kareem1207/hand-gestures","last_synced_at":"2025-03-17T06:29:58.214Z","repository":{"id":264206233,"uuid":"892694319","full_name":"kareem1207/Hand-gestures","owner":"kareem1207","description":"A Python code used to operate laptop using fingers","archived":false,"fork":false,"pushed_at":"2024-11-24T14:18:09.000Z","size":7330,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T15:54:57.960Z","etag":null,"topics":["mediapipe-hands","opencv-python","pyautogui","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/kareem1207.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-11-22T15:42:46.000Z","updated_at":"2025-01-01T10:28:24.000Z","dependencies_parsed_at":"2024-11-22T16:36:01.089Z","dependency_job_id":"d6650d88-10d5-4dd8-8b80-8de8a793786d","html_url":"https://github.com/kareem1207/Hand-gestures","commit_stats":null,"previous_names":["kareem1207/hand-gestures"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kareem1207%2FHand-gestures","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kareem1207%2FHand-gestures/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kareem1207%2FHand-gestures/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kareem1207%2FHand-gestures/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kareem1207","download_url":"https://codeload.github.com/kareem1207/Hand-gestures/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243985136,"owners_count":20379075,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["mediapipe-hands","opencv-python","pyautogui","python"],"created_at":"2025-01-23T15:55:03.804Z","updated_at":"2025-03-17T06:29:58.166Z","avatar_url":"https://github.com/kareem1207.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hand Gestures\r\n\r\n## Introduction\r\n\r\nThis is code is used for controlling laptop developed using python.\r\n\r\n## Description\r\n\r\nThe file named \"main.py\" is the code which runs captures the video and the gestures of done by the user which is fingers count. This code have a lot of dependencies as we are using modules for detecting the gestures.\r\n\r\n## Installation and Usage\r\n\r\n### Clone the Repository\r\n\r\ngit clone \u003crepository-url\u003e\r\ncd \u003crepository-folder\u003e\r\n\r\n### Install dependencies\r\n\r\npip install opencv-python mediapipe pyautogui\r\n\r\n### Run the Script\r\n\r\npython main.py\r\n\r\n### Opencv\r\n\r\nThe use of opencv library in this code is to capture the video from the camera of the computer and show what it is seeing using \"cv2.imshow()\" and capturing video using \"cv2.VideoCapture(value)\".\r\n\r\n- value:0 = gets the video data from the primary camera.\r\n- value:1 = gets the video data from the secondary camera.\r\n- value:-1 = gets the video data from the nearest camera.\r\n\r\n### Mediapipe\r\n\r\nThe use of Mediapipe library in this code mandatory as it detects the hand motion , it is basically developed using non regression concept and it is flexible as we can use that for many functionality like face detection , motion detection etc..\r\n\r\nin this code we are detecting the code based on the confidence levels of the computer that the hand in a video is really hand , it has been set to 90%(0.9) and can be changed to any value.\r\n\r\n### Pyautogui\r\n\r\nThe use of Pyautogui library in this code is used to perform operations like clicking a certain key board button\r\n\r\n## Tech stack\r\n\r\n- python\r\n\r\n## Requirements\r\n\r\n- python version 3.12.7 or below\r\n- a good code editor like vs code , anaconda , etc..\r\n- modules like opencv , mediapipe , pyautogui\r\n\r\n## Features\r\n\r\n- controlling laptop using finger gestures\r\n- customization\r\n\r\n## Output\r\n\r\nThis is the output of the code (sorry not suited in better environment) :\r\n\r\n[![output](output.png)](output.mp4)\r\n\r\n## Gestures table\r\n\r\n| Count | Gestures |\r\n| :---: | :------: |\r\n|   1   |   left   |\r\n|   2   |  right   |\r\n|   3   |   down   |\r\n|   4   |    up    |\r\n|   5   |  space   |\r\n\r\n\u003e [!Note]\r\n\u003e Please always check for the version as opencv , mediapipe and pyautogui is not at all integrated to python version 3.13\r\n\r\n\u003e [!Tip]\r\n\u003e It is suggested to check for the requirements by using bellow command\r\n\u003e pip install opencv mediapipe pyautogui or\r\n\u003e pip install opencv , pip install mediapipe, pip install pyautogui don't run at a time\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkareem1207%2Fhand-gestures","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkareem1207%2Fhand-gestures","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkareem1207%2Fhand-gestures/lists"}