MaximeSharp / sstv

SSTV Decoder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SSTV Decoder (modified)

Modified version of SSTV Decoder

This version has no console output so it can be used in a bot.

Installation

$ pip install sstv@git+https://github.com/MaximeSharp/sstv.git

Usage

from sstv.decode import SSTVDecoder

wav_file = "my_wave_file.wav"
img_file = "my_img_file.png"

with SSTVDecoder(wav_file) as sstv:
  img = sstv.decode(0.0)
  if img is None:
    print("Not a valid audio file")
  try:
    img.save(img_file)
    print("Image saved successfully")
  except:
    print("Error while saving the image")
Original README.md

SSTV Decoder

A command line slow-scan television decoder that works on audio files rather than reading a soundcard (like most other decoders). Currently supports the following modes:

  • Martin 1, 2
  • Scottie 1, 2, DX
  • Robot 36, 72

Installation

$ git clone https://github.com/colaclanth/sstv.git

$ python setup.py install

Usage

$ sstv -d audio_file.wav -o result.png

Resources Used

About

SSTV Decoder

License:GNU General Public License v3.0


Languages

Language:Python 100.0%