From a3d32fcc91c932fd930844d2bdc1ceda4e5e9c8c Mon Sep 17 00:00:00 2001 From: sleebapaul Date: Tue, 7 Jan 2020 02:06:25 -0800 Subject: [PATCH] Fix the refline drawing issue --- src/modules/view/WindowController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/view/WindowController.cpp b/src/modules/view/WindowController.cpp index 86c51ee..6a937b2 100644 --- a/src/modules/view/WindowController.cpp +++ b/src/modules/view/WindowController.cpp @@ -41,7 +41,7 @@ class WindowController : public VideoCapturePeopleCounterDelegate { void onFrameProcess(const Mat& frame, const Mat& debugFrame) { // draw measurement lines - line(frame, Point(0, counter->refLine.end.y), Point(frame.cols, counter->refLine.end.y), COLOR_ENTRANCE_LINE, 2); + line(frame, Point(0, counter->refLine.start.y), Point(frame.cols, counter->refLine.end.y), COLOR_ENTRANCE_LINE, 2); // draw counters putText(frame, to_string(counter->peopleWhoEnteredCount) + " UP", Point(10, 20), FONT_HERSHEY_COMPLEX_SMALL, 0.75, COLOR_ENTRANCE_LINE);