diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 4fca350..96f4167 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -19,14 +19,11 @@
-
-
-
-
-
+
+
+
-
-
+
@@ -70,6 +67,7 @@
+
@@ -150,6 +148,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -196,10 +213,12 @@
+
+
@@ -228,7 +247,7 @@
-
+
1589815443652
@@ -251,7 +270,14 @@
1589822196451
-
+
+ 1589918562733
+
+
+
+ 1589918562733
+
+
@@ -270,12 +296,18 @@
+
-
+
+
+
+
+
+
@@ -296,10 +328,10 @@
-
+
-
+
diff --git a/coder/gr_test.png b/coder/gr_test.png
new file mode 100644
index 0000000..40cca5a
Binary files /dev/null and b/coder/gr_test.png differ
diff --git a/coder/image.py b/coder/image.py
new file mode 100644
index 0000000..9f832ee
--- /dev/null
+++ b/coder/image.py
@@ -0,0 +1,29 @@
+import numpy as np
+from PIL import Image
+import matplotlib.pyplot as plt
+import cv2
+
+img = cv2.cvtColor(cv2.imread('test.jpg'), cv2.COLOR_BGR2GRAY)
+img = cv2.GaussianBlur(img, (15, 15), 0) # poprawia jakosc
+img = cv2.resize(img, (8, 8), interpolation=cv2.INTER_AREA)
+
+print(type(img))
+print(img.shape)
+print(img)
+plt.imshow(img ,cmap='binary')
+plt.show()
+
+data = []
+
+rows, cols = img.shape
+for i in range(rows):
+ for j in range(cols):
+ k = img[i, j]
+ if k > 200:
+ k = 0 # brak czarnego
+ else:
+ k = 1
+
+ data.append(k)
+
+print(data)
\ No newline at end of file
diff --git a/coder/test.jpg b/coder/test.jpg
index 5a81770..35b669a 100644
Binary files a/coder/test.jpg and b/coder/test.jpg differ