refactoring the directory structure
6
.idea/vcs.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
@ -1,32 +1,43 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="1afdfa2b-0340-4e25-8722-635281502d28" name="Default Changelist" comment="" />
|
||||
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
||||
<list default="true" id="1afdfa2b-0340-4e25-8722-635281502d28" name="Default Changelist" comment="">
|
||||
<change afterPath="$PROJECT_DIR$/.idea/vcs.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/beep-07.wav" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/black.png" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/dzialam_viedo.py" beforeDir="false" afterPath="$PROJECT_DIR$/dzialam_viedo.py" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/icon1.png" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/icon2.png" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/icon3.png" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/icon4.png" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/icon5.png" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/icon6.png" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/menu.png" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/not1.png" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/output.avi" beforeDir="false" afterPath="$PROJECT_DIR$/output.avi" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||
</component>
|
||||
<component name="Git.Settings">
|
||||
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
||||
</component>
|
||||
<component name="ProjectId" id="1U71mYN5y1LPtFlQ3SnncDLnaco" />
|
||||
<component name="ProjectViewState">
|
||||
<option name="hideEmptyMiddlePackages" value="true" />
|
||||
<option name="showExcludedFiles" value="true" />
|
||||
<option name="showLibraryContents" value="true" />
|
||||
</component>
|
||||
<component name="PropertiesComponent">
|
||||
<property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
|
||||
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
||||
<property name="settings.editor.selected.configurable" value="com.jetbrains.python.configuration.PyActiveSdkModuleConfigurable" />
|
||||
</component>
|
||||
<component name="RunDashboard">
|
||||
<option name="ruleStates">
|
||||
<list>
|
||||
<RuleState>
|
||||
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
|
||||
</RuleState>
|
||||
<RuleState>
|
||||
<option name="name" value="StatusDashboardGroupingRule" />
|
||||
</RuleState>
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="RunManager">
|
||||
<configuration name="dzialam_viedo" type="PythonConfigurationType" factoryName="Python" temporary="true">
|
||||
<component name="RunManager" selected="Python.smart_intercom">
|
||||
<configuration name="dzialam_viedo" type="PythonConfigurationType" factoryName="Python">
|
||||
<module name="OpenCV_Projekt" />
|
||||
<option name="INTERPRETER_OPTIONS" value="" />
|
||||
<option name="PARENT_ENVS" value="true" />
|
||||
@ -47,12 +58,45 @@
|
||||
<option name="INPUT_FILE" value="" />
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
<configuration name="smart_intercom" type="PythonConfigurationType" factoryName="Python" temporary="true">
|
||||
<module name="OpenCV_Projekt" />
|
||||
<option name="INTERPRETER_OPTIONS" value="" />
|
||||
<option name="PARENT_ENVS" value="true" />
|
||||
<envs>
|
||||
<env name="PYTHONUNBUFFERED" value="1" />
|
||||
</envs>
|
||||
<option name="SDK_HOME" value="" />
|
||||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
|
||||
<option name="IS_MODULE_SDK" value="true" />
|
||||
<option name="ADD_CONTENT_ROOTS" value="true" />
|
||||
<option name="ADD_SOURCE_ROOTS" value="true" />
|
||||
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/smart_intercom.py" />
|
||||
<option name="PARAMETERS" value="" />
|
||||
<option name="SHOW_COMMAND_LINE" value="false" />
|
||||
<option name="EMULATE_TERMINAL" value="false" />
|
||||
<option name="MODULE_MODE" value="false" />
|
||||
<option name="REDIRECT_INPUT" value="false" />
|
||||
<option name="INPUT_FILE" value="" />
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
<recent_temporary>
|
||||
<list>
|
||||
<item itemvalue="Python.dzialam_viedo" />
|
||||
<item itemvalue="Python.smart_intercom" />
|
||||
</list>
|
||||
</recent_temporary>
|
||||
</component>
|
||||
<component name="ServiceViewManager">
|
||||
<option name="viewStates">
|
||||
<list>
|
||||
<serviceView>
|
||||
<treeState>
|
||||
<expand />
|
||||
<select />
|
||||
</treeState>
|
||||
</serviceView>
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="SvnConfiguration">
|
||||
<configuration />
|
||||
</component>
|
||||
@ -66,4 +110,50 @@
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
<component name="WindowStateProjectService">
|
||||
<state x="444" y="211" key="#com.intellij.execution.impl.EditConfigurationsDialog" timestamp="1575643901302">
|
||||
<screen x="53" y="27" width="3787" height="1053" />
|
||||
</state>
|
||||
<state x="444" y="211" key="#com.intellij.execution.impl.EditConfigurationsDialog/53.27.3787.1053@53.27.3787.1053" timestamp="1575643901302" />
|
||||
<state width="1377" height="260" key="GridCell.Tab.0.bottom" timestamp="1575643904844">
|
||||
<screen x="53" y="27" width="3787" height="1053" />
|
||||
</state>
|
||||
<state width="1377" height="260" key="GridCell.Tab.0.bottom/53.27.1867.1053@53.27.1867.1053" timestamp="1575643274434" />
|
||||
<state width="1377" height="260" key="GridCell.Tab.0.bottom/53.27.3787.1053@53.27.3787.1053" timestamp="1575643904844" />
|
||||
<state width="1377" height="260" key="GridCell.Tab.0.center" timestamp="1575643904844">
|
||||
<screen x="53" y="27" width="3787" height="1053" />
|
||||
</state>
|
||||
<state width="1377" height="260" key="GridCell.Tab.0.center/53.27.1867.1053@53.27.1867.1053" timestamp="1575643274433" />
|
||||
<state width="1377" height="260" key="GridCell.Tab.0.center/53.27.3787.1053@53.27.3787.1053" timestamp="1575643904844" />
|
||||
<state width="1377" height="260" key="GridCell.Tab.0.left" timestamp="1575643904843">
|
||||
<screen x="53" y="27" width="3787" height="1053" />
|
||||
</state>
|
||||
<state width="1377" height="260" key="GridCell.Tab.0.left/53.27.1867.1053@53.27.1867.1053" timestamp="1575643274433" />
|
||||
<state width="1377" height="260" key="GridCell.Tab.0.left/53.27.3787.1053@53.27.3787.1053" timestamp="1575643904843" />
|
||||
<state width="1377" height="260" key="GridCell.Tab.0.right" timestamp="1575643904844">
|
||||
<screen x="53" y="27" width="3787" height="1053" />
|
||||
</state>
|
||||
<state width="1377" height="260" key="GridCell.Tab.0.right/53.27.1867.1053@53.27.1867.1053" timestamp="1575643274433" />
|
||||
<state width="1377" height="260" key="GridCell.Tab.0.right/53.27.3787.1053@53.27.3787.1053" timestamp="1575643904844" />
|
||||
<state width="1377" height="322" key="GridCell.Tab.1.bottom" timestamp="1575643647121">
|
||||
<screen x="53" y="27" width="3787" height="1053" />
|
||||
</state>
|
||||
<state width="1377" height="322" key="GridCell.Tab.1.bottom/53.27.3787.1053@53.27.3787.1053" timestamp="1575643647121" />
|
||||
<state width="1377" height="322" key="GridCell.Tab.1.center" timestamp="1575643647120">
|
||||
<screen x="53" y="27" width="3787" height="1053" />
|
||||
</state>
|
||||
<state width="1377" height="322" key="GridCell.Tab.1.center/53.27.3787.1053@53.27.3787.1053" timestamp="1575643647120" />
|
||||
<state width="1377" height="322" key="GridCell.Tab.1.left" timestamp="1575643647120">
|
||||
<screen x="53" y="27" width="3787" height="1053" />
|
||||
</state>
|
||||
<state width="1377" height="322" key="GridCell.Tab.1.left/53.27.3787.1053@53.27.3787.1053" timestamp="1575643647120" />
|
||||
<state width="1377" height="322" key="GridCell.Tab.1.right" timestamp="1575643647120">
|
||||
<screen x="53" y="27" width="3787" height="1053" />
|
||||
</state>
|
||||
<state width="1377" height="322" key="GridCell.Tab.1.right/53.27.3787.1053@53.27.3787.1053" timestamp="1575643647120" />
|
||||
<state x="642" y="380" key="com.intellij.ide.util.TipDialog" timestamp="1575641807897">
|
||||
<screen x="53" y="27" width="1867" height="1053" />
|
||||
</state>
|
||||
<state x="642" y="380" key="com.intellij.ide.util.TipDialog/53.27.1867.1053@53.27.1867.1053" timestamp="1575641807897" />
|
||||
</component>
|
||||
</project>
|
BIN
output.avi
BIN
recordings/output.avi
Normal file
@ -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:
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 7.7 KiB |