Skip to content

Real-time light webcam Morse decoder in Python using IIR filter

License

Notifications You must be signed in to change notification settings

krogk/Webcam-morse-decoder

Repository files navigation

Morse Code Decoder using IIR Filter

The coding language is Python.

Dependencies

pip3 install opencv-contrib-python
pip3 install opencv-python

Description

Morse Code Decoder using a webcam, based on binary tree encoding.

The relative luminance is measured and a high-pass IIR filter is applied to remove the DC offset from the signal, the filtered output is passed to the detector which adds dots and dashes to the sequence. The sequences are decoded upon next exceed of the threshold.

alt text

Flow Diagram

alt text

Running Instructions

Webcam must be running at 30Hz! Dot time must be set to 300ms!

Run realtime_iir_main.py

For best effect start with the phone in the position about 0.5-1m away but in line with camera and minimize your movement to reduce changes in relative luminance. Filter must first settle so the program is not going to decode anything until 5 seconds elapse, assuming sampling frequency is 30Hz.

Demo

The Demo The application used in demo.

About

Real-time light webcam Morse decoder in Python using IIR filter

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages