https://github.com/everythingishacked/CheekyKeys Skip to content Toggle navigation Sign up * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code Explore + All features + Documentation + GitHub Skills + Blog * Solutions For + Enterprise + Teams + Startups + Education By Solution + CI/CD & Automation + DevOps + DevSecOps Case Studies + Customer Stories + Resources * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Pricing [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this user All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} everythingishacked / CheekyKeys Public * Notifications * Fork 9 * Star 95 Use Python, OpenCV, and MediaPipe to control a keyboard with facial gestures License GPL-3.0 license 95 stars 9 forks Star Notifications * Code * Issues 0 * Pull requests 0 * Actions * Projects 0 * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Security * Insights everythingishacked/CheekyKeys This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. master Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags Name already in use A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch? Cancel Create 1 branch 0 tags Code * Local * Codespaces * Clone HTTPS GitHub CLI [https://github.com/e] Use Git or checkout with SVN using the web URL. [gh repo clone everyt] Work fast with our official CLI. Learn more. * Open with GitHub Desktop * Download ZIP Sign In Required Please sign in to use Codespaces. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching Xcode If nothing happens, download Xcode and try again. Launching Visual Studio Code Your codespace will open once ready. There was a problem preparing your codespace, please try again. Latest commit @everythingishacked everythingishacked Add LICENSE ... bb2488f Apr 14, 2023 Add LICENSE bb2488f Git stats * 9 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time .gitignore Add canonical face March 31, 2022 13:35 LICENSE Add LICENSE April 14, 2023 11:07 Morse cheatsheet.md fix: it's a COM-MA April 9, 2022 09:51 README.md typo May 7, 2022 01:54 demo.gif Add README and demo gif April 6, 2022 20:36 numbered MediaPipe features.png Add canonical face March 31, 2022 13:35 pipeface.py Initial commit WITH MY FACE March 31, 2022 13:26 requirements.txt Update requirements.txt September 7, 2022 15:19 View code CheekyKeys A Face-Computer Interface README.md CheekyKeys A Face-Computer Interface CheekyKeys lets you control your keyboard using your face. demo View a fuller demo and more background on the project at https:// youtu.be/rZ0DBi1avMM CheekyKeys uses OpenCV and MediaPipe's Face Mesh to perform real-time detection of facial landmarks from video input. From there, relative differences are calculated to determine specific facial gestures and translate those into commands sent via keyboard. This version 0.1 is hardcoded to my facial features, but thresholds can easily be modified. It's also built for a Mac keyboard, but you can also swap i.e. Windows key for Command simply enough. The primary input is to "type" letters, digits, and symbols via Morse code by opening and closing your mouth quickly for . and slightly longer for -. Rather than waiting a set time after every letter, you scrunch your mouth upward once to finish a letter, or twice to add a space (end a word). Three mouth scrunches types enter/return. The cheatsheet includes the full alphabet as well as special characters and hotkeys. Most of the rest of the keyboard and other helpful actions are included as modifier gestures, such as: * shift: close right eye * command: close left eye * arrow up/down: raise left/right eyebrow * arrow left/right: raise left/right eyebrow + duckface (pursed lips) * backspace: duckface + double blink * zoom in: eyes bulge * zoom out: eyes squint * repeat previous letter/command: double raise of both eyebrows * clear current Morse queue: wink right eye, then wink left eye * escape: wink left eye, then wink right eye About Use Python, OpenCV, and MediaPipe to control a keyboard with facial gestures Topics python opencv accessibility python3 face-detection opencv-python mediapipe Resources Readme License GPL-3.0 license Stars 95 stars Watchers 6 watching Forks 9 forks Report repository Releases No releases published Packages 0 No packages published Contributors 2 * @everythingishacked everythingishacked * @Emilien-Etadam Emilien-Etadam emilien Languages * Python 100.0% Footer (c) 2023 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.