krogk / Webcam-morse-decoder

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:Python 100.0%