This commit is contained in:
2022-11-22 19:35:42 +08:00
parent 1edf9b6f7c
commit a836fe7bac
5 changed files with 5 additions and 2 deletions

View File

@ -26,12 +26,15 @@ def AddObs(file_path, status):
shutil.move(file_path, f_dst)
def addobs(file_path, status): #save videos
ti.sleep(5)
ti.sleep(2)
videoUuid = os.path.basename(file_path).split('_')[1]
json_data = {'videoUuid': videoUuid}
resp = requests.post(url=cfg.Vre,
data=json_data)
#print('>>>>>>>>>',resp)
status = resp.json()
#print('>>>>>>>>>>>>>', json_data)
#print('>>>>>>>>>>>>>', status)
try:
status = status['data']
except Exception as e: