update
This commit is contained in:
@ -80,16 +80,28 @@ def search():
|
||||
else:
|
||||
state = analysis_video(raft_model, videoPath, '',uuid_barcode,None,net=net, transform=transform,ms=ms, match=True)
|
||||
result = uuid_barcode+'_'+state #参数修改返回结果
|
||||
try:
|
||||
thread = Thread(target=AddObs, kwargs={'file_path':videoPath, 'status':state})
|
||||
thread.start()
|
||||
logger.info(result)
|
||||
print('result >>>>> {}'.format(result))
|
||||
return result
|
||||
except Exception as e:
|
||||
print('result >>>>> {}'.format(result))
|
||||
return result
|
||||
except Exception as e:
|
||||
logger.warning(e) #异常返回00
|
||||
thread = Thread(target=AddObs, kwargs={'file_path':videoPath, 'status':status[3]})
|
||||
thread.start()
|
||||
return uuid_barcode+'_'+status[3] #参数修改返回00
|
||||
thread = Thread(target=AddObs, kwargs={'file_path':videoPath, 'status':state})
|
||||
thread.start()
|
||||
logger.info(result)
|
||||
print('result >>>>> {}'.format(result))
|
||||
return result
|
||||
try:
|
||||
thread = Thread(target=AddObs, kwargs={'file_path':videoPath, 'status':status[3]})
|
||||
thread.start()
|
||||
return uuid_barcode+'_'+status[3] #参数修改返回00
|
||||
except Exception as e:
|
||||
return uuid_barcode+'_'+status[3] #参数修改返回00
|
||||
#thread = Thread(target=AddObs, kwargs={'file_path':videoPath, 'status':state})
|
||||
#thread.start()
|
||||
#logger.info(result)
|
||||
#print('result >>>>> {}'.format(result))
|
||||
#return result
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(host='0.0.0.0', port=8085)
|
||||
|
Reference in New Issue
Block a user