From 86949443bb6d715f01ac7abd6c69d7c226a9131c Mon Sep 17 00:00:00 2001 From: DucDangAnh Date: Fri, 19 Jun 2020 16:30:12 +0700 Subject: [PATCH] LaneIn - Add Start, Stop Method. --- AIParkingApplication/LaneIn.cs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/AIParkingApplication/LaneIn.cs b/AIParkingApplication/LaneIn.cs index 8f3e3c8..9a46a81 100644 --- a/AIParkingApplication/LaneIn.cs +++ b/AIParkingApplication/LaneIn.cs @@ -33,9 +33,6 @@ namespace AIParkingApplication overviewCamera.OnVideoFrameReceived += OverviewCameraOnVideoFrameReceived; overviewCamera.OnOneVideoFrameRequested += OverviewCamera_OnOneVideoFrameRequested; - overviewCamera.Startcapture(); - plateCamera.Startcapture(); - plateProcessor = new PlateProcessor(this.isSupportSquarePlate, this.isSupportLongPlate); } @@ -99,6 +96,18 @@ namespace AIParkingApplication })); } + public void Stop() + { + plateCamera.Stop(); + overviewCamera.Stop(); + } + + public void Start() + { + plateCamera.Start(); + overviewCamera.Start(); + } + private void OverviewCameraOnVideoFrameReceived(Mat videoFrame) { try