From 957316621790f8ec34a25467dbe3af5469056cb8 Mon Sep 17 00:00:00 2001 From: DucDangAnh Date: Wed, 1 Jul 2020 16:30:47 +0700 Subject: [PATCH] LaneIn, LaneOut - Refactor abit --- AIParkingApplication/LaneIn.cs | 4 +++- AIParkingApplication/LaneOut.cs | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/AIParkingApplication/LaneIn.cs b/AIParkingApplication/LaneIn.cs index 54d575f..488b74c 100644 --- a/AIParkingApplication/LaneIn.cs +++ b/AIParkingApplication/LaneIn.cs @@ -85,9 +85,11 @@ namespace AIParkingApplication pictureBoxOverviewImage.UpdateImage(overviewVideoFrame.ToBitmap()); var cardInformation = await apiController.GetCardInformation(cardNumber); - ShowCardInfoOnUI(cardNumber, result.PlateString, cardInformation.CardType, DateTime.Now.GetTimeFormatted()); var saveLogResult = await apiController.SaveLog(LaneDirection.In, cardInformation.CardRealID.ToString(), "1", result.PlateType, DateTime.Now.GetTimeFormatted(), result.PlateString, result.PlateImage, result.PlateImage, result.PlateImage, overviewVideoFrame); + + ShowCardInfoOnUI(cardNumber, result.PlateString, cardInformation.CardType, DateTime.Now.GetTimeFormatted()); + if (saveLogResult.Status) { if (isAutoOpenDoor && this.doorId == doorId) diff --git a/AIParkingApplication/LaneOut.cs b/AIParkingApplication/LaneOut.cs index c16ffd2..c8c2f91 100644 --- a/AIParkingApplication/LaneOut.cs +++ b/AIParkingApplication/LaneOut.cs @@ -1,10 +1,10 @@ -using OpenCvSharp; -using OpenCvSharp.Extensions; -using System; +using System; using System.Drawing; using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; +using OpenCvSharp; +using OpenCvSharp.Extensions; namespace AIParkingApplication {