{"id":21894908,"url":"https://github.com/rajputrockstar/hand-star","last_synced_at":"2025-02-25T21:15:37.771Z","repository":{"id":246946689,"uuid":"824729633","full_name":"RAJPUTRoCkStAr/hand-star","owner":"RAJPUTRoCkStAr","description":"HandStar is a Python library that uses Mediapipe and OpenCV to make hand detection and tracking easy.","archived":false,"fork":false,"pushed_at":"2024-07-05T20:13:55.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T09:51:07.698Z","etag":null,"topics":["mediapipe","opencv","opencv-python","opencv2","pypi","pypi-package","pypi-packages","python","python-modules","python-script","python3"],"latest_commit_sha":null,"homepage":"https://github.com/RAJPUTRoCkStAr/hand-star","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/RAJPUTRoCkStAr.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-07-05T19:53:59.000Z","updated_at":"2024-07-10T17:58:33.000Z","dependencies_parsed_at":"2024-07-06T00:24:17.060Z","dependency_job_id":null,"html_url":"https://github.com/RAJPUTRoCkStAr/hand-star","commit_stats":null,"previous_names":["rajputrockstar/hand-star"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RAJPUTRoCkStAr%2Fhand-star","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RAJPUTRoCkStAr%2Fhand-star/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RAJPUTRoCkStAr%2Fhand-star/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RAJPUTRoCkStAr%2Fhand-star/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RAJPUTRoCkStAr","download_url":"https://codeload.github.com/RAJPUTRoCkStAr/hand-star/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240746959,"owners_count":19850996,"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","opencv","opencv-python","opencv2","pypi","pypi-package","pypi-packages","python","python-modules","python-script","python3"],"created_at":"2024-11-28T13:29:25.694Z","updated_at":"2025-02-25T21:15:37.728Z","avatar_url":"https://github.com/RAJPUTRoCkStAr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HandStar\n\nHandStar is a Python library that uses Mediapipe and OpenCV to make hand detection and tracking easy. It provides functionalities to detect hands in real-time from camera feed, visualize hand landmarks, and calculate distances between specific landmarks.\n\n## Features\n\n- Real-time hand detection and tracking.\n- Visualization of hand landmarks and connections.\n- Calculation of distances between specified landmarks (e.g., fingertips).\n\n## Installation\n\nYou can install HandStar using pip:\n\n```bash\npip install hand-star\n```\n## Code\n```bash\nimport cv2\nfrom hand_star.hand_star import HandStar\n\ndef main():\n    cap = cv2.VideoCapture(0)\n    detector = HandStar(maxHands=2)\n\n    while True:\n        success, img = cap.read()\n        if not success:\n            break\n        \n        img = detector.detect_hands(img)\n        lmList = detector.get_hand_positions(img)\n        \n        # Additional functionalities\n        fingersList = detector.get_fingers_status()\n        for i, fingers in enumerate(fingersList):\n           print(f\"Hand {i+1}:\", fingers)\n            length, img, lineInfo = detector.calculate_distance(4, 8, img, handNo=i)\n            print(f\"Hand {i+1} Distance:\", length)\n        \n        cv2.imshow('Hand Detection', img)\n        \n        if cv2.waitKey(1) == ord('q'):\n            break\n\n    cap.release()\n    cv2.destroyAllWindows()\n\nif __name__ == '__main__':\n    main()\n\n```\n\n## Contact\nFor any questions or feedback, feel free to reach out at [sumitsingh9441@gmail.com](mailto:sumitsingh9441@gmail.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajputrockstar%2Fhand-star","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frajputrockstar%2Fhand-star","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajputrockstar%2Fhand-star/lists"}