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