LaneIn - Check CardInfomation.
This commit is contained in:
parent
f280376752
commit
ab14853d29
|
@ -62,6 +62,8 @@ namespace AIParkingApplication
|
|||
{
|
||||
var cardInfoResult = await apiController.GetCardInformation(cardNumber);
|
||||
if (cardInfoResult.IsValid)
|
||||
{
|
||||
if (cardInfoResult.Direction == "in")
|
||||
{
|
||||
plateCamera.RequestCaptureOneFrame();
|
||||
overviewCamera.RequestCaptureOneFrame();
|
||||
|
@ -87,7 +89,6 @@ namespace AIParkingApplication
|
|||
|
||||
ShowCardInfoOnUI(cardNumber, result.PlateString, cardInformation.CardType, DateTime.Now.ToString(AppConstant.DATETIME_FORMAT));
|
||||
|
||||
//TODO check saveLogResult
|
||||
var saveLogResult = await apiController.SaveLog(LaneDirection.In, cardInformation.CardRealID.ToString(), "1", result.PlateType, DateTime.Now.ToString(AppConstant.DATETIME_FORMAT), result.PlateString, result.PlateImage, result.PlateImage, result.PlateImage, overviewVideoFrame);
|
||||
if (saveLogResult.Status)
|
||||
{
|
||||
|
@ -114,6 +115,15 @@ namespace AIParkingApplication
|
|||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lblRecogizePlateStatus.Invoke(new Action(() =>
|
||||
{
|
||||
lblRecogizePlateStatus.BackColor = Color.Red;
|
||||
lblRecogizePlateStatus.Text = "XE ĐÃ Ở TRONG BÃI";
|
||||
}));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lblRecogizePlateStatus.Invoke(new Action(() =>
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user