Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/robmcelhinney/blink-morse
Computer vision application to type based on detection of eyes blinking morse code.
https://github.com/robmcelhinney/blink-morse
blink-detection computer-vision facial-recognition morse-code opencv python
Last synced: 26 days ago
JSON representation
Computer vision application to type based on detection of eyes blinking morse code.
- Host: GitHub
- URL: https://github.com/robmcelhinney/blink-morse
- Owner: robmcelhinney
- License: gpl-2.0
- Created: 2020-04-25T18:14:41.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-07-06T21:58:26.000Z (over 1 year ago)
- Last Synced: 2024-10-09T19:36:16.412Z (about 1 month ago)
- Topics: blink-detection, computer-vision, facial-recognition, morse-code, opencv, python
- Language: Python
- Homepage:
- Size: 9.37 MB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Blink Morse
Eye blink detection of Morse code that types.## Demo
![Blinking Hello World](demo/sample.gif)## Requirements
Download dlib pre-trained facial landmark predictor available at [dlib.net](http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2)Uncompress the file and store the .dat file in the same dir as detect_blinks.py
Install requirements:
```
pip install -r requirements.txt
```
## Using from command line
python detect_blinks.py -p shape_predictor_68_face_landmarks.datTo exit the program:
Type ']' when webcam in focus or close eyes for constants.BREAK_LOOP_FRAMES frames.### Change variables
I'd suggest you change the variables in constants.py so your blinks are better recognised.By editing the variables you can give yourself more time before the next blink/pause is detected making Morse code easier to input.
## Built With
* dlib - C++ toolkit containing machine learning algorithms.
* OpenCV - Library mainly aimed at real-time computer vision.
* imutils - Series of convenience functions to make basic image processing functions.## Inspiration
US Admiral Jeremiah Denton was taken prisoner during the Vietnam War and was forced to participate in a propaganda interview, he blinked his eyes in Morse code, spelling T-O-R-T-U-R-E to confirm that US POWs were being tortured. [[Wiki](https://en.wikipedia.org/wiki/Jeremiah_Denton#Vietnam_War)][[Footage](https://youtu.be/rufnWLVQcKg)]## Acknowledgments
Blink detection based off of tutorial from [pyimagesearch](https://pyimagesearch.com/2017/04/24/eye-blink-detection-opencv-python-dlib).