提交 2dd31640 authored 作者: blu's avatar blu

motion detect: new alg

上级 4a093a7a
......@@ -651,7 +651,7 @@ private:
}
cv::threshold(thresh, gray, detPara.thre, 255, cv::THRESH_BINARY);
cv::dilate(gray, thresh, cv::Mat(), cv::Point(-1,-1), 2);
// cv::dilate(gray, thresh, cv::Mat(), cv::Point(-1,-1), 2);
#ifdef DEBUG
matShow1 = thresh.clone();
......@@ -673,7 +673,6 @@ private:
else {
hasEvent = true;
evtCnt++;
#ifdef DEBUG
cv::putText(origin, "motion detected", cv::Point(10, 20), cv::FONT_HERSHEY_SIMPLEX, 0.75, cv::Scalar(0,0,255),2);
#endif
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论