diff --git a/AIParkingApplication/LaneIn.cs b/AIParkingApplication/LaneIn.cs index ae4510a..96d3a32 100644 --- a/AIParkingApplication/LaneIn.cs +++ b/AIParkingApplication/LaneIn.cs @@ -65,10 +65,19 @@ namespace AIParkingApplication if (cardInfoResult.IsValid) { plateCamera.RequestCaptureOneFrame(); - await Task.Delay(500); - var videoFrame = plateCamera.CurrentFrame; + overviewCamera.RequestCaptureOneFrame(); + await Task.Delay(200); + var plateVideoFrame = plateCamera.CurrentFrame; + var overviewVideoFrame = overviewCamera.CurrentFrame; + + pictureBoxOverviewImage.Invoke(new Action(() => + { + pictureBoxOverviewImage.Image?.Dispose(); + pictureBoxOverviewImage.Image = overviewVideoFrame.ToBitmap(); + })); + + FinalPlateResult result = await ProcessFrameImage(plateProcessor, plateVideoFrame, isRetryMode); - FinalPlateResult result = await ProcessFrameImage(plateProcessor, videoFrame, isRetryMode); pictureBoxPlateImage.Invoke(new Action(() => { pictureBoxPlateImage.Image?.Dispose();