LaneIn - capture one video frame then show UI. C3Device_OnNewCardReceived

This commit is contained in:
DucDangAnh 2020-06-29 09:35:05 +07:00
parent b7eae98821
commit 2de7ff5745

View File

@ -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();