przeniesienie zdjęć

This commit is contained in:
Weranda 2023-06-14 12:31:39 +02:00
parent 18d27c63c3
commit e90f5b5d75
13 changed files with 4 additions and 4 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -14,7 +14,7 @@ class Archer_ork(pygame.sprite.Sprite):
self.width = TILE_SIZE self.width = TILE_SIZE
self.height = TILE_SIZE self.height = TILE_SIZE
self.image_path = "./pozostale_zdjecia/ork_lucznik.png" self.image_path = "./zdjecia/ORK_ARCHER/ork_lucznik.png"
self.ARCHER_ORK_IMG = pygame.image.load(self.image_path) self.ARCHER_ORK_IMG = pygame.image.load(self.image_path)
self.ARCHER_ORK = pygame.transform.scale(self.ARCHER_ORK_IMG,(64,64)) self.ARCHER_ORK = pygame.transform.scale(self.ARCHER_ORK_IMG,(64,64))
@ -43,7 +43,7 @@ class Infantry_ork(pygame.sprite.Sprite):
self.width = TILE_SIZE self.width = TILE_SIZE
self.height = TILE_SIZE self.height = TILE_SIZE
self.image_path = "./pozostale_zdjecia/ork-piechota.png" self.image_path = "./zdjecia/ORK_MELEE/ork-piechota.png"
self.INFANTRY_ORK_IMG = pygame.image.load(self.image_path) self.INFANTRY_ORK_IMG = pygame.image.load(self.image_path)
self.INFANTRY_ORK = pygame.transform.scale(self.INFANTRY_ORK_IMG,(64,64)) self.INFANTRY_ORK = pygame.transform.scale(self.INFANTRY_ORK_IMG,(64,64))
@ -73,7 +73,7 @@ class Sauron(pygame.sprite.Sprite):
self.width = TILE_SIZE self.width = TILE_SIZE
self.height = TILE_SIZE self.height = TILE_SIZE
self.image_path = "./pozostale_zdjecia/sauron.png" self.image_path = "./zdjecia/SAURON/sauron.png"
self.SAURON_IMG = pygame.image.load(self.image_path) self.SAURON_IMG = pygame.image.load(self.image_path)
self.SAURON = pygame.transform.scale(self.SAURON_IMG,(64,64)) self.SAURON = pygame.transform.scale(self.SAURON_IMG,(64,64))

2
nn.py
View File

@ -93,7 +93,7 @@ class NeuralN:
tf.keras.layers.Softmax()]) tf.keras.layers.Softmax()])
#image_path = image #image_path = image
image_path = pathlib.Path('zdjecia\ORK_ARCHER\ork_archer (942).jpg') image_path = pathlib.Path('zdjecia\ORK_ARCHER\ork_lucznik.png')
image = Image.open(image_path) image = Image.open(image_path)
# Preprocess the image # Preprocess the image

Binary file not shown.

Before

Width:  |  Height:  |  Size: 216 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 KiB

BIN
zdjecia/SAURON/sauron.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 KiB