mirror of
https://github.com/dnet/pySSTV.git
synced 2025-12-06 07:12:00 +01:00
updated examples to use absolute import
This commit is contained in:
parent
bb0ce04554
commit
1b895577a9
|
|
@ -7,7 +7,7 @@ http://vsza.hu/c6fa52b2c7b20320bdab2da15877f0efbd466e67d37c8d124a557367de9380da.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from PIL import Image, ImageFont, ImageDraw
|
from PIL import Image, ImageFont, ImageDraw
|
||||||
from grayscale import Robot8BW
|
from pysstv.grayscale import Robot8BW
|
||||||
|
|
||||||
img = Image.open("160x120bw.png")
|
img = Image.open("160x120bw.png")
|
||||||
font = ImageFont.load_default()
|
font = ImageFont.load_default()
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ Tested on PyAudio 0.2.7 http://people.csail.mit.edu/hubert/pyaudio/
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
from sstv import SSTV
|
from pysstv.sstv import SSTV
|
||||||
from time import sleep
|
from time import sleep
|
||||||
from itertools import islice
|
from itertools import islice
|
||||||
import struct, pyaudio
|
import struct, pyaudio
|
||||||
|
|
@ -40,7 +40,7 @@ class PyAudioSSTV(object):
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
from grayscale import Robot8BW
|
from pysstv.grayscale import Robot8BW
|
||||||
|
|
||||||
img = Image.open("160x120bw.png")
|
img = Image.open("160x120bw.png")
|
||||||
sstv = Robot8BW(img, 44100, 16)
|
sstv = Robot8BW(img, 44100, 16)
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,8 @@ receiver such as slowrx or QSSTV.
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from pyinotify import WatchManager, Notifier, ProcessEvent, IN_CREATE
|
from pyinotify import WatchManager, Notifier, ProcessEvent, IN_CREATE
|
||||||
from pyaudio_sstv import PyAudioSSTV
|
from pyaudio_sstv import PyAudioSSTV
|
||||||
from color import MartinM1, MartinM2, ScottieS1, ScottieS2
|
from pysstv.color import MartinM1, MartinM2, ScottieS1, ScottieS2
|
||||||
from grayscale import Robot8BW, Robot24BW
|
from pysstv.grayscale import Robot8BW, Robot24BW
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
from os import path
|
from os import path
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue