From 865a1e8ca820da17a9f9c034677a7a959ddaee36 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Wed, 4 Oct 2023 16:46:57 -0600 Subject: app, doc, image_processing, tb/sim/descifrador: remove;5D --- image_processing/array2rgb32.py | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100755 image_processing/array2rgb32.py (limited to 'image_processing/array2rgb32.py') diff --git a/image_processing/array2rgb32.py b/image_processing/array2rgb32.py deleted file mode 100755 index 167aa74..0000000 --- a/image_processing/array2rgb32.py +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env python3 - -import sys -import numpy as np -from PIL import Image -import matplotlib.pyplot as plt - -def get_base_image(image): - image = Image.fromarray(np.uint8(image)) - image = image.convert(mode="RGBA", colors=256) - - if image.size != (640, 480): # width, height - image = image.resize(size=(640, 480)) - - return image - -def show_image(image): - plt.imshow(image) - plt.show() - -image = get_base_image(eval(input(""))) -image_bytes = image.tobytes() - -#show_image(image) - -out_file, = sys.argv[1:] - -with open(out_file, 'wb') as f: - f.write(image_bytes) -- cgit v1.2.3