From da4a84360cddbce5bbc69edc89b304b5875548bb Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Sun, 31 Jan 2016 21:28:13 -0500 Subject: [PATCH] Hiding Frame: from video output when using JSON output --- src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index c21bcff..190072f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -232,7 +232,9 @@ int main( int argc, const char** argv ) { cv::imwrite(LAST_VIDEO_STILL_LOCATION, frame); } - std::cout << "Frame: " << framenum << std::endl; + if (!outputJson) + std::cout << "Frame: " << framenum << std::endl; + if (framenum == 0) motiondetector.ResetMotionDetection(&frame); detectandshow(&alpr, frame, "", outputJson);