{"id":26901974,"url":"https://github.com/malwarekid/ai-virtual-mouse","last_synced_at":"2025-08-04T18:34:36.101Z","repository":{"id":172207844,"uuid":"648614730","full_name":"malwarekid/AI-Virtual-Mouse","owner":"malwarekid","description":"AI virtual mouse than can do everything that a mouse does without even touching your system.","archived":false,"fork":false,"pushed_at":"2023-06-02T11:42:52.000Z","size":3,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-13T15:49:18.339Z","etag":null,"topics":["ai","ai-mouse","mouse","virtual-mouse"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/malwarekid.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}},"created_at":"2023-06-02T11:40:14.000Z","updated_at":"2025-03-18T10:16:10.000Z","dependencies_parsed_at":"2024-01-05T15:29:04.574Z","dependency_job_id":null,"html_url":"https://github.com/malwarekid/AI-Virtual-Mouse","commit_stats":null,"previous_names":["itzcloudyy/ai-virtual-mouse","scriptkiddieeee/ai-virtual-mouse","malwarekid/ai-virtual-mouse"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/malwarekid/AI-Virtual-Mouse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malwarekid%2FAI-Virtual-Mouse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malwarekid%2FAI-Virtual-Mouse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malwarekid%2FAI-Virtual-Mouse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malwarekid%2FAI-Virtual-Mouse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/malwarekid","download_url":"https://codeload.github.com/malwarekid/AI-Virtual-Mouse/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malwarekid%2FAI-Virtual-Mouse/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268746056,"owners_count":24301103,"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","status":"online","status_checked_at":"2025-08-04T02:00:09.867Z","response_time":79,"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":["ai","ai-mouse","mouse","virtual-mouse"],"created_at":"2025-04-01T09:09:00.932Z","updated_at":"2025-08-04T18:34:36.014Z","avatar_url":"https://github.com/malwarekid.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Virtual Mouse Using OpenCV\nIn this project we will be using the live feed coming from the webcam to create a virtual mouse using hand tracking.\n\n## Project Description:\nIn this project, I am using my hand as a virtual mouse than can do everything that a mouse does without even touching your system. I am using the webcam of my system to detect my hands. It will then create a bounding box around my hand and focus on two fingers: The fore finger and the middle finger. The fore finger will act as a cursor and moving it around, we will be moving the cursor around. Now, inorder to successfully click using hand tracking, it is detecting the distance between the fore finger and the middle finger. If they are joined together, then it will perform a click. \n\nFurthermore, a smoothness factor was added as the movement was really shaky.\n\n## Requirements:\nFollowing modules need to be installed for it to work properly:\n- OpenCV\n- Mediapipe\n- Autopy\n\n### OpenCV:\nOpenCV is a huge open-source library for computer vision, machine learning, and image processing. OpenCV supports a wide variety of programming languages like Python, C++, Java, etc. It can process images and videos to identify objects, faces, or even the handwriting of a human.\n\nIt can be installed using \"pip install opencv-python\"\n\n\n### Mediapipe:\nMediaPipe is a framework for building multimodal (eg. video, audio, any time series data), cross platform (i.e Android, iOS, web, edge devices) applied ML pipelines.\n\nIt can be installed using \"pip install mediapipe\"\n\n### Autopy:\nAutoPy is a simple, cross-platform GUI automation library for Python. It includes functions for controlling the keyboard and mouse, finding colors and bitmaps on-screen, and displaying alerts.\n\nIt can be installed using \"pip install autopy\"\n\n## Important Note:\nI faced alot of dependency issues throughout this project. Some of the issues and their solutions are as follows:\n- autopy not installing: This is because autopy currently doesn't support Python versions above 3.8\n- webcam not opening: It was a bug in mediapipe and was fixed in latest python versions\n\nHence, inorder for the project to run smoothly, you need to degrade the Python version to 3.8\n\n### How to Degrade Python Version:\nFollow the following steps:\n- Uninstall Python from add/remove programs\n- Go to AppData and remove any python folder you see.\n- Download Python 3.8 from this link : [Python 3.8](https://www.python.org/downloads/release/python-380/)\n- Install it.\n- Open command promt and run \"pip\" inorder to confirm installation.\n- Your Python version has been degraded :)\n\n## 📫 Contact Me: \n\u003cp align=\"center\"\u003e\n\t\u003ca href=\"mailto:nitinsharmahd123@gmail.com\"\u003e\u003cimg src=\"https://img.icons8.com/bubbles/50/000000/gmail.png\" alt=\"Gmail\"/\u003e\u003c/a\u003e\n\t\u003ca href=\"https://github.com/itzcloudyy\"\u003e\u003cimg src=\"https://img.icons8.com/bubbles/50/000000/github.png\" alt=\"GitHub\"/\u003e\u003c/a\u003e\n\t\u003ca href=\"https://www.linkedin.com/in/-nitinsharma/\"\u003e\u003cimg src=\"https://img.icons8.com/bubbles/50/000000/linkedin.png\" alt=\"LinkedIn\"/\u003e\u003c/a\u003e\n\t\u003ca href=\"https://www.instagram.com/itzcloudy9/?hl=en\"\u003e\u003cimg src=\"https://img.icons8.com/bubbles/50/000000/instagram.png\" alt=\"Instagram\"/\u003e\u003c/a\u003e\n\t\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalwarekid%2Fai-virtual-mouse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmalwarekid%2Fai-virtual-mouse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalwarekid%2Fai-virtual-mouse/lists"}