新增 function 上傳 南側門進出資料

This commit is contained in:
威勝 張 2024-04-29 13:54:19 +08:00
parent e13ee1284a
commit 0fe01e5508
2 changed files with 11 additions and 0 deletions

6
.idea/vcs.xml Normal file
View 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>

View File

@ -493,6 +493,7 @@ class Camera(mp.Process):
self.licence_check(cars_data) self.licence_check(cars_data)
self.IO_control() self.IO_control()
# self.all_open() # self.all_open()
self.state_check()
img = self.img.copy() img = self.img.copy()
self.show_img(car_img) self.show_img(car_img)
@ -610,6 +611,10 @@ class Camera(mp.Process):
time.sleep(0.5) time.sleep(0.5)
self.IO.IO.break_1_clicked() self.IO.IO.break_1_clicked()
# 判斷狀態並上傳到API
def state_check(self):
pass
## 將指定時間影片儲存 ## 將指定時間影片儲存
def save_video(self): def save_video(self):
day_7_date = (datetime.datetime.now() + datetime.timedelta(days=-7)).strftime("%Y%m%d") day_7_date = (datetime.datetime.now() + datetime.timedelta(days=-7)).strftime("%Y%m%d")