提交 7a1deec8 authored 作者: blu's avatar blu

evmlmotion: image scalor

上级 2c92950c
...@@ -326,7 +326,7 @@ private: ...@@ -326,7 +326,7 @@ private:
p2.y = region["maxY"].get<float>(); p2.y = region["maxY"].get<float>();
if(p1.x < 0 || p1.x>=1 || p1.y <=0 || p1.y > 1|| if(p1.x < 0 || p1.x>=1 || p1.y <=0 || p1.y > 1||
p2.x <=0 || p2.x > 1 || p2.y <=0 || p2.y >1 || p1.x < p2.x || p1.y < p2.y) { p2.x <=0 || p2.x > 1 || p2.y <=0 || p2.y >1 || p1.x >= p2.x || p1.y >= p2.y) {
spdlog::error("evmlmotion {} invalid region config: invalid value range. ignored", selfId); spdlog::error("evmlmotion {} invalid region config: invalid value range. ignored", selfId);
}else{ }else{
detPara.region[0] = p1; detPara.region[0] = p1;
...@@ -338,7 +338,7 @@ private: ...@@ -338,7 +338,7 @@ private:
} }
} }
}else{ }else{
spdlog::error("evmlmotion {} no/invalid region config. ignored"); spdlog::error("evmlmotion {} no/invalid region config. ignored", selfId);
} }
spdlog::info("evmlmotion {} detection params: entropy {}, area {}, thresh {}, fpsProc {}", selfId, detPara.entropy, detPara.area, detPara.thre, detPara.fpsProc); spdlog::info("evmlmotion {} detection params: entropy {}, area {}, thresh {}, fpsProc {}", selfId, detPara.entropy, detPara.area, detPara.thre, detPara.fpsProc);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论