diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..94a25f7
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 8de6083..25fc780 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -1,32 +1,43 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
@@ -47,12 +58,45 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -66,4 +110,50 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/black.png b/black.png
deleted file mode 100644
index 08bdf54..0000000
Binary files a/black.png and /dev/null differ
diff --git a/output.avi b/output.avi
deleted file mode 100644
index 5020474..0000000
Binary files a/output.avi and /dev/null differ
diff --git a/recordings/output.avi b/recordings/output.avi
new file mode 100644
index 0000000..8edb583
Binary files /dev/null and b/recordings/output.avi differ
diff --git a/dzialam_viedo.py b/smart_intercom.py
similarity index 79%
rename from dzialam_viedo.py
rename to smart_intercom.py
index 203e427..989179b 100644
--- a/dzialam_viedo.py
+++ b/smart_intercom.py
@@ -7,7 +7,7 @@ from pygame import mixer
def alert():
mixer.init()
- alert = mixer.Sound('beep-07.wav')
+ alert = mixer.Sound('src/noises/beep-07.wav')
for i in range(5):
alert.play()
time.sleep(0.1)
@@ -45,7 +45,7 @@ def click_event(event, x, y, flags, param):
def notification():
- not1 = cv2.imread('not1.png')
+ not1 = cv2.imread('src/notification/not1.png')
frame[50:50 + 139, 800:800 + 406] = not1
b = datetime.datetime.now()
global a
@@ -63,7 +63,7 @@ liczba = 0
globalna = 0
cap = cv2.VideoCapture(0)
four_cc = cv2.VideoWriter_fourcc(*'XVID')
-out = cv2.VideoWriter('output.avi', four_cc, 10.0, (1280, 720))
+out = cv2.VideoWriter('recordings/output.avi', four_cc, 10.0, (1280, 720))
cap.set(3, 1280)
cap.set(4, 720)
@@ -83,25 +83,25 @@ while cap.isOpened():
frame = cv2.putText(frame, actual_time, (10, 50), font, 1, (0, 255, 255), 2, cv2.LINE_AA)
- menu = cv2.imread('menu.png')[620:720, 0:1280]
+ menu = cv2.imread('src/images/menu.png')[620:720, 0:1280]
frame[620:720, 0:1280] = menu
- icon1 = cv2.imread('icon1.png')
+ icon1 = cv2.imread('src/icons/icon1.png')
frame[640:640 + 63, 20:169] = icon1
- icon2 = cv2.imread('icon2.png')
+ icon2 = cv2.imread('src/icons/icon2.png')
frame[640:640 + 63, 189:448] = icon2
- icon3 = cv2.imread('icon3.png')
+ icon3 = cv2.imread('src/icons/icon3.png')
frame[640:640 + 63, 468:734] = icon3
- icon4 = cv2.imread('icon4.png')
+ icon4 = cv2.imread('src/icons/icon4.png')
frame[640:640 + 63, 754:945] = icon4
- icon5 = cv2.imread('icon5.png')
+ icon5 = cv2.imread('src/icons/icon5.png')
frame[640:640 + 63, 965:1173] = icon5
- icon6 = cv2.imread('icon6.png')
+ icon6 = cv2.imread('src/icons/icon6.png')
frame[640:640 + 63, 1193:1267] = icon6
if globalna == 1:
diff --git a/icon1.png b/src/icons/icon1.png
similarity index 100%
rename from icon1.png
rename to src/icons/icon1.png
diff --git a/icon2.png b/src/icons/icon2.png
similarity index 100%
rename from icon2.png
rename to src/icons/icon2.png
diff --git a/icon3.png b/src/icons/icon3.png
similarity index 100%
rename from icon3.png
rename to src/icons/icon3.png
diff --git a/icon4.png b/src/icons/icon4.png
similarity index 100%
rename from icon4.png
rename to src/icons/icon4.png
diff --git a/icon5.png b/src/icons/icon5.png
similarity index 100%
rename from icon5.png
rename to src/icons/icon5.png
diff --git a/icon6.png b/src/icons/icon6.png
similarity index 100%
rename from icon6.png
rename to src/icons/icon6.png
diff --git a/menu.png b/src/images/menu.png
similarity index 100%
rename from menu.png
rename to src/images/menu.png
diff --git a/beep-07.wav b/src/noises/beep-07.wav
similarity index 100%
rename from beep-07.wav
rename to src/noises/beep-07.wav
diff --git a/not1.png b/src/notification/not1.png
similarity index 100%
rename from not1.png
rename to src/notification/not1.png