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

BIN
.ieemoo-ai-searchv2.py.swp Normal file

Binary file not shown.

BIN
utils/.config.py.swp Normal file

Binary file not shown.

BIN
utils/.updateObs.py.swp Normal file

Binary file not shown.

View File

@ -51,7 +51,7 @@ _C.fgbgmask_old = '../module/ieemoo-ai-searchv2/model/now/ori_old.jpg'
_C.URL = 'https://api.ieemoo.com/emoo-api/intelligence' #online
#_C.URL = 'http://api.test.ieemoo.com/emoo-api/intelligence'
_C.Vre = 'http://api.test.ieemoo.com/emoo-api/intelligence/queryVideoCompareResult.do'
_C.Vre = 'http://api.test2.ieemoo.cn/emoo-api/intelligence/queryVideoCompareResult.do'
#_C.Vre = 'http://192.168.1.98:8088/emoo-api/intelligence/queryVideoCompareResult.do'
_C.Ocrimg = '../module/ieemoo-ai-ocr/imgs'#post ocr img

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: