@@ -50,10 +50,10 @@ async def speed(request: Request):
text = f"{plate} : {speed} km/h"
draw(img, text, (100, 100))
byte_data = pil2byte(img)
- if ip_addr not in conf["ip2channle"]:
- logger.info(f"{ip_addr} not in ip2channle")
+ if ip_addr not in conf["ip2channel"]:
+ logger.info(f"{ip_addr} not in ip2channel")
return
- channel = conf["ip2channle"][ip_addr]
+ channel = conf["ip2channel"][ip_addr]
res = await upload(url, ip_addr, classIndex, nvr, videoTime, filename, byte_data, plate, speed)
logger.info(res)
except Exception as error: