update
This commit is contained in:
@ -17,6 +17,7 @@ def AddObs(file_path, status):
|
||||
with lock:
|
||||
if not cfg.flag:
|
||||
addobs(file_path, status)
|
||||
os.remove(file_path)
|
||||
else:
|
||||
if status == '02':
|
||||
addobs(file_path, status)
|
||||
@ -49,7 +50,7 @@ def addobs(file_path, status): #save videos
|
||||
if objectkey.split('.')[-1] in ['avi','mp4']:
|
||||
objectkey = 'videos/'+time+'/'+status+'/'+status+'_'+objectkey
|
||||
resp = obsClient.putFile(bucketName, objectkey, file_path)
|
||||
os.remove(file_path)
|
||||
#os.remove(file_path)
|
||||
|
||||
def Addimg(uuid_barcode):
|
||||
time = uuid_barcode.split('-')[0].split('_')[-1]
|
||||
|
Reference in New Issue
Block a user