From 1250a5abaec4a4596e2a18ec4abf32e0b0f89fa1 Mon Sep 17 00:00:00 2001 From: Gonzalo Belcredi <gbelcredi@fing.edu.uy> Date: Wed, 30 Oct 2019 14:59:01 -0300 Subject: [PATCH] First commit --- bit2image.py | 2 +- image2bit.py | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/bit2image.py b/bit2image.py index e7b78b7..08a620c 100644 --- a/bit2image.py +++ b/bit2image.py @@ -25,7 +25,7 @@ from PIL import Image import numpy as np import math -filename_bin = 'dat/recepcion_2.dat' +filename_bin = 'dat/recepcion.dat' img_height = 800 img_width = 549 sync_start = [0,128,255]*10 diff --git a/image2bit.py b/image2bit.py index 941b254..b98964e 100644 --- a/image2bit.py +++ b/image2bit.py @@ -1,3 +1,26 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# +# Copyright 2019 +# Author: Gonzalo Belcredi, gbelcredi@fing.edu.uy +# Instituto de Ingenieria Electrica, Facultad de Ingenieria, +# Universidad de la Republica, Uruguay. +# +# This is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# This software is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this software; see the file COPYING. If not, write to +# the Free Software Foundation, Inc., 51 Franklin Street, +# Boston, MA 02110-1301, USA. + from PIL import Image import numpy as np -- GitLab