Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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.dat

To 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).