{"id":14958374,"url":"https://github.com/szymciem8/openleap","last_synced_at":"2026-03-05T06:01:41.842Z","repository":{"id":57449117,"uuid":"415988358","full_name":"szymciem8/OpenLeap","owner":"szymciem8","description":"Hand gesture Python module","archived":false,"fork":false,"pushed_at":"2022-01-27T10:10:34.000Z","size":81892,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-06T07:27:05.552Z","etag":null,"topics":["gesture-recognition","library","machine-learning","mediapipe","opencv","python","scikit-learn"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","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/szymciem8.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}},"created_at":"2021-10-11T15:38:18.000Z","updated_at":"2022-11-05T13:54:40.000Z","dependencies_parsed_at":"2022-09-14T07:22:05.585Z","dependency_job_id":null,"html_url":"https://github.com/szymciem8/OpenLeap","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/szymciem8/OpenLeap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szymciem8%2FOpenLeap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szymciem8%2FOpenLeap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szymciem8%2FOpenLeap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szymciem8%2FOpenLeap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/szymciem8","download_url":"https://codeload.github.com/szymciem8/OpenLeap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szymciem8%2FOpenLeap/sbom","scorecard":{"id":864470,"data":{"date":"2025-08-11","repo":{"name":"github.com/szymciem8/OpenLeap","commit":"2cb37d11aecc85cfe23fafa6ac285e0a3a979f90"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}}]},"last_synced_at":"2025-08-24T02:18:01.685Z","repository_id":57449117,"created_at":"2025-08-24T02:18:01.685Z","updated_at":"2025-08-24T02:18:01.685Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30111779,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T03:40:26.266Z","status":"ssl_error","status_checked_at":"2026-03-05T03:39:15.902Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["gesture-recognition","library","machine-learning","mediapipe","opencv","python","scikit-learn"],"created_at":"2024-09-24T13:16:53.772Z","updated_at":"2026-03-05T06:01:41.808Z","avatar_url":"https://github.com/szymciem8.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenLeap\n![python][] ![license][] [![pypi][]](https://pypi.org/project/openleap/)\n\n## Table of contents\n- [OpenLeap](#openleap)\n  - [Table of contents](#table-of-contents)\n  - [General Info](#general-info)\n  - [Technologies](#technologies)\n  - [Setup](#setup)\n  - [Simple Example](#simple-example)\n  - [Access Hand Information](#access-hand-information)\n    - [Example](#example)\n    - [Another Example](#another-example)\n\n## General Info\nOpenLeap is an open source project that allows you to add hand gesture control to your Python projects. \n\n## Technologies\n\nProject was created with technologies:\n\n- Python\n- OpenCV\n- MediaPipe\n- SciKit Learn\n\n## Setup\nOpenLeap can be installed using pip, as shown below.\n\n```\n$ pip install openleap\n```\n\n## Simple Example\n\nTest openleap controller with an example program. Code below will create an instance of opencv window with feed from the camera. \n\n\n```\nimport openleap\n\ncontroller = openleap.OpenLeap(screen_show=True, \n                               screeen_type='BLACK', \n                               show_data_on_image=True,\n                               show_data_in_console=True,\n                               gesture_model='sign_language')\n\ncontroller.loop()\n\n```\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/szymciem8/OpenLeap/main/Documentation/images/example_program.gif?token=AMBI64BGASHC4OPJW6OD3YDBV2BJK\" width=\"850\" /\u003e\n\u003c/p\u003e\n\nOpenLeap returns relative position of each hand, distance between thumb tip and index finger tip, rotation angle by wrist point and recognized gesture. There are two models for gesture recognition. \n\nThe first one can recognized wheter hand is opened or closed into fist, second model can recognized sign language alphabet as shown below. \n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://pastevents.impactcee.com/wp-content/uploads/2016/10/DayTranslationsBlog-Learn-American-Sign-Language.jpg\" width=\"850\" /\u003e\n\u003c/p\u003e\n\n\nOpenLeap object can be created with couple of options. \n- **screen_show** - if set to True, window with camera feed will be created. \n- **screen_type** - \"CAM\" or \"BLACK\" background. \n- **show_data_on_image** - descriptive\n- **show_data_in_console** - descriptive\n- **gesture_model** - chose gesture recognition model, \"basic\" or \"sign_language\"\n\n## Access Hand Information\n\nRecognized gestures, hand position, tilt and so on are stored in a dictionary called 'data' that consists of two dataclass objects for right and left hand. Dataclass object is of given structure:\n\n```\n@dataclass\nclass Data:\n    x : float = 0\n    y : float = 0\n    z : float = 0\n    distance: float = 0.0\n    angle: float = 0.0\n    gesture: str = None\n```\n\nDataclass containing all of the data above is continuously being updated in **main()** or **loop()** function depending on which one is being used. \n\n### Example\n\n```\nif controller.data['right'].gesture == 'open':\n    print('Right hand is opened!')\nelif controller.data['right'].gesture == 'fist':\n    print('Right hand is closed!')\n```\n\n### Another Example\n\n```\nif controller.data['right'].distance \u003c 20:\n    print('Click has been detected!')\n```\n\n[python]:https://img.shields.io/pypi/pyversions/openleap\n[pypi]:https://img.shields.io/pypi/v/openleap\n[license]:https://img.shields.io/github/license/szymciem8/OpenLeap\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fszymciem8%2Fopenleap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fszymciem8%2Fopenleap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fszymciem8%2Fopenleap/lists"}