From c14124d63c97436428496a0e543ca990ccbcae0a Mon Sep 17 00:00:00 2001 From: Tomasz Adamczyk Date: Sat, 5 Jun 2021 16:45:00 +0200 Subject: [PATCH] def --- .idea/workspace.xml | 62 +++------------------------------------------ py.py | 2 +- 2 files changed, 5 insertions(+), 59 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 6c9fe61..a0e1c28 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,63 +3,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -289,10 +235,10 @@ - + - + diff --git a/py.py b/py.py index e1800f9..66e588a 100644 --- a/py.py +++ b/py.py @@ -44,7 +44,7 @@ def main(): tiles = image_slicer.slice(os.path.join('resources/neural_network/tiles/', 'screen.jpg'), row=definitions.HEIGHT_AMOUNT + 1, col=definitions.WIDTH_AMOUNT, save=False) #pocięcie ekranu na sto części image_slicer.save_tiles(tiles, directory=os.path.join('resources/neural_network/tiles/'), prefix='tile', format='png') #zapisanie części do folderu tiles os.remove('resources/neural_network/tiles/screen.jpg') - for char in range(0, 10): + for char in range(0, definitions.WIDTH_AMOUNT): if str(char) == "0": os.remove('resources/neural_network/tiles/tile_11_10.png') else: