From 1e24b39da382d07653198b5eb16c4f9e0ada7c99 Mon Sep 17 00:00:00 2001 From: Aniela Walczak Date: Wed, 1 Jun 2022 17:17:20 +0200 Subject: [PATCH] Zaktualizuj 'neural_network.py' --- neural_network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neural_network.py b/neural_network.py index eda8df9..4b3d0ed 100644 --- a/neural_network.py +++ b/neural_network.py @@ -29,7 +29,7 @@ def recognition(): digits=[] try: for i in range(0,3): - image_number = random.randint(1, 19) + image_number = random.randint(1, 17) img = cv2.imread(f"digits/digit{image_number}.png")[:,:,0] img = np.invert(np.array([img])) prediction = model.predict(img)