提交 c85e0cb1 authored 作者: blu's avatar blu

humandetect: revise camera configure api

上级 146be03c
...@@ -191,7 +191,7 @@ def getRegionConfig(ipcSN): ...@@ -191,7 +191,7 @@ def getRegionConfig(ipcSN):
if ipcSN in CAMERA_CONFIG_MAP and type(CAMERA_CONFIG_MAP[ipcSN]) is dict: if ipcSN in CAMERA_CONFIG_MAP and type(CAMERA_CONFIG_MAP[ipcSN]) is dict:
region = CAMERA_CONFIG_MAP[ipcSN]['region'] region = CAMERA_CONFIG_MAP[ipcSN]['region']
elif CAMERA_CONFIG_MAP.get(ipcSN) is None and API_HOST: elif CAMERA_CONFIG_MAP.get(ipcSN) is None and API_HOST:
res = requests.get(API_HOST + API_CAMERA_CFG_URI) res = requests.get(API_HOST + API_CAMERA_CFG_URI.format(ipcSN))
try: try:
if res.status_code == 200: if res.status_code == 200:
ret = res.json() ret = res.json()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论