diff --git a/README.md b/README.md index 261753ee8a8b53c192ae37ee372a460dc5d11bba..7e4f4557d5008b220a75eca2fadce17b2c7e24b0 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ ### LABORATORIO INTEGRADOR Dependencias Python: + - Python 3 - Pillow (Python Imaging Library) - Numpy diff --git a/bit2image.py b/bit2image.py index 08a620c18e47f187021d08d5a1d093bc735c5770..d7c822c33ef6dd50c173cc4c6188571ecd927e55 100644 --- a/bit2image.py +++ b/bit2image.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- # -# Copyright 2019 +# Copyright 2020 # Author: Gonzalo Belcredi, gbelcredi@fing.edu.uy # Instituto de Ingenieria Electrica, Facultad de Ingenieria, # Universidad de la Republica, Uruguay. @@ -104,8 +104,8 @@ image.show() if DECODE_IMAGE: peaks = get_sync_peaks(array_rx,sync_start) nr_images = len(peaks) - print "Se identificaron ", nr_images, " imágenes." - print "Indices de comienzo de imagen:", peaks + print("Se identificaron ", nr_images, " imágenes.") + print("Indices de comienzo de imagen:", peaks) for i in range(0,nr_images): if (peaks[i]+img_width*columnas) < len(array_rx): @@ -126,5 +126,5 @@ if DECODE_IMAGE: img_rx.load() MSE, PSNR = get_PSNR(img,img_rx) - print "MSE: ", MSE - print "PSNR (dB): ", PSNR \ No newline at end of file + print("MSE: ", MSE) + print("PSNR (dB): ", PSNR) \ No newline at end of file diff --git a/image2bit.py b/image2bit.py index b98964e1cd790804aeacce24fc487d7b4870b4ef..27f5224374c5206f51621acb9b5b8e822c1dbe16 100644 --- a/image2bit.py +++ b/image2bit.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- # -# Copyright 2019 +# Copyright 2020 # Author: Gonzalo Belcredi, gbelcredi@fing.edu.uy # Instituto de Ingenieria Electrica, Facultad de Ingenieria, # Universidad de la Republica, Uruguay. @@ -32,7 +32,7 @@ img.show() filas, columnas = data.shape -print "filas: ", filas, ", columnas: ", columnas +print("filas: ", filas, ", columnas: ", columnas) sync_start = [0,128,255]*10 @@ -56,7 +56,7 @@ framed_image.save('images/imagen_transmitida.png') filas, columnas = framed_data.shape -print "filas (framed): ", filas, ", columnas (framed): ", columnas +print("filas (framed): ", filas, ", columnas (framed): ", columnas) array = framed_data.flatten() array = array.astype('uint8')