1
0
mirror of https://github.com/Klagarge/PokeHES.git synced 2025-06-27 04:32:31 +00:00

move data

This commit is contained in:
2022-06-16 10:26:51 +02:00
parent 77ace754ff
commit ada69759d5
160 changed files with 5 additions and 588 deletions

BIN
Data/img/Character.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

View File

@ -0,0 +1,31 @@
Informatique :
Mudry Pierre-André
Mathématique :
Epiney Jacques
Evéquoz Gilles
Nicollier Grégoire
Savioz Christian
Physique :
Ellert Christoph
Electricité :
Bianchi Christophe
Davide Pavanello
Mécanique :
Samuel Rey-Mermet
Paciotti Gabriel
Haifa Sallem
Wittmann Christian
Bezençon Cyrille
Rapillard Laurent
Langue :
Gloeckner Caroline
Laffargue-Rieder Laurence

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -0,0 +1,26 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from PIL import Image
import numpy as np
import os
W, H = 32, 32
if __name__ == "__main__":
path = input("Path: ")
img = Image.open(path).convert()
a = np.array(img)
b = np.zeros((a.shape[1], a.shape[0], *a.shape[2:]), dtype=a.dtype)
w, h = a.shape[1]//W, a.shape[0]//H
for y in range(h):
for x in range(w):
b[x*W:x*W+W,y*H:y*H+H] = a[y*H:y*H+H,x*W:x*W+W]
img.close()
img = Image.fromarray(b)
dirname, basename = os.path.dirname(path), os.path.basename(path)
basename, ext = os.path.splitext(basename)
img.save(os.path.join(dirname, basename+"_flipped"+ext))