-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.py
More file actions
28 lines (26 loc) · 760 Bytes
/
Copy pathMain.py
File metadata and controls
28 lines (26 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# import the opencv library
#5172556132:AAFOLQF8BpBrckxNnKLsfyeljlLmWHdZpQw API token
#1122917287 group chat id
import serial
import RecordVideo
import RecordTwo
import Compress
import MakeVideo
import pcacompress
serialport = serial.Serial('COM4',baudrate=115200,timeout=2)
def readData():
arduinodata = serialport.readline()
print(arduinodata)
if(arduinodata == b'1\r\n'):
serialport.close()
RecordVideo.record()
Compress.compression1()
Compress.deleteFrames()
MakeVideo.makeVideo()
RecordTwo.record()
pcacompress.compression1()
MakeVideo.makeVideo()
Compress.deleteFrames()
serialport.open()
while(True):
readData()