Skip to content

Computer vision application to type based on detection of eyes blinking morse code.

License

Notifications You must be signed in to change notification settings

robmcelhinney/blink-morse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blink Morse

Eye blink detection of Morse code that types.

Demo

Blinking Hello World

Requirements

Download dlib pre-trained facial landmark predictor available at dlib.net

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][Footage]

Acknowledgments

Blink detection based off of tutorial from pyimagesearch.

About

Computer vision application to type based on detection of eyes blinking morse code.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages