{"id":13484658,"url":"https://github.com/everythingishacked/Semaphore","last_synced_at":"2025-03-27T16:31:08.814Z","repository":{"id":152686547,"uuid":"619373803","full_name":"everythingishacked/Semaphore","owner":"everythingishacked","description":"A full-body keyboard using gestures to type through computer vision","archived":false,"fork":false,"pushed_at":"2023-06-29T15:56:29.000Z","size":6395,"stargazers_count":1935,"open_issues_count":3,"forks_count":28,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-03-25T07:01:37.229Z","etag":null,"topics":["mediapipe","opencv","python"],"latest_commit_sha":null,"homepage":"https://youtube.com/EverythingIsHacked","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/everythingishacked.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}},"created_at":"2023-03-27T02:27:09.000Z","updated_at":"2025-03-20T19:38:43.000Z","dependencies_parsed_at":"2024-01-27T23:49:48.352Z","dependency_job_id":null,"html_url":"https://github.com/everythingishacked/Semaphore","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/everythingishacked%2FSemaphore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/everythingishacked%2FSemaphore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/everythingishacked%2FSemaphore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/everythingishacked%2FSemaphore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/everythingishacked","download_url":"https://codeload.github.com/everythingishacked/Semaphore/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245882337,"owners_count":20687868,"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","python"],"created_at":"2024-07-31T17:01:28.711Z","updated_at":"2025-03-27T16:31:08.792Z","avatar_url":"https://github.com/everythingishacked.png","language":"Python","readme":"# Semaphore\n\n### A full-body keyboard\n\n[![demo](demo.gif)](https://youtu.be/h376W93gQq4)\n\nView a fuller demo and more background on the project at https://youtu.be/h376W93gQq4\n\nThe next iteration of this project, designed as a full-body *game* controller, is also available at https://github.com/everythingishacked/Gamebody\n\nSemaphore uses [OpenCV](https://github.com/opencv/opencv-python) and MediaPipe's [Pose detection](https://google.github.io/mediapipe/solutions/pose.html#python-solution-api) to perform real-time detection of body landmarks from video input. From there, relative differences are calculated to determine specific positions and translate those into keys and commands sent via [keyboard](https://github.com/boppreh/keyboard).\n\nThe primary input is to \"type\" letters, digits, and symbols via [flag semaphore](https://en.wikipedia.org/wiki/Flag_semaphore) by extending both arms at various angles. Rather than waiting a set time after every signal, you can jump to repeat the last sent symbol.\n\nSee the `SEMAPHORES` dictionary in the code for a full set\nof angles, which mostly conform to standard US semaphore with some custom additions. Most of the rest of the keyboard is included as other modifier gestures, such as:\n\n- `shift`: open both hands, instead of fists\n- `backspace`: both hands over mouth\n- `digits` and other extra symbols: squat while signaling\n- `command`: lift left leg to ~horizontal thigh\n- `control`: lift right leg to ~horizontal thigh\n- `arrow left/right/up/down`: cross arms and raise each straight leg `LEG_ARROW_ANGLE` degrees\n- repeat previous letter/command: jump\n\nRunning on latest MacOS from Terminal, toggle the following for keyboard access:\nSystem Settings -\u003e Privacy \u0026 Security -\u003e Accessibility -\u003e Terminal -\u003e slide to allow\n\nFor Mac, this uses a [custom keyboard library](https://github.com/everythingishacked/keyboard). This is built for a Mac keyboard, but you can also swap e.g. Windows key for Command simply enough.\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feverythingishacked%2FSemaphore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feverythingishacked%2FSemaphore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feverythingishacked%2FSemaphore/lists"}