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