LaneIn - Add Method: ShowCardInfoOnUI
This commit is contained in:
parent
96d01f00f5
commit
f641690f38
|
@ -88,6 +88,8 @@ namespace AIParkingApplication
|
||||||
pictureBoxPlateImage.Image?.Dispose();
|
pictureBoxPlateImage.Image?.Dispose();
|
||||||
pictureBoxPlateImage.Image = finalPlateResult.PlateImage;
|
pictureBoxPlateImage.Image = finalPlateResult.PlateImage;
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
ShowCardInfoOnUI("224", finalPlateResult.PlateString, "Thẻ tháng", DateTime.Now.ToString(AppConstant.DATETIME_FORMAT));
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
@ -108,6 +110,34 @@ namespace AIParkingApplication
|
||||||
overviewCamera.Start();
|
overviewCamera.Start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void ShowCardInfoOnUI(string cardNumber, string plateString, string cardType, string cardTime)
|
||||||
|
{
|
||||||
|
lblCardNumber.Invoke(new Action(() =>
|
||||||
|
{
|
||||||
|
lblCardNumber.Text = $"Số thẻ: {cardNumber}";
|
||||||
|
}));
|
||||||
|
|
||||||
|
lblPlateString.Invoke(new Action(() =>
|
||||||
|
{
|
||||||
|
lblPlateString.Text = $"Biển số: {plateString}";
|
||||||
|
}));
|
||||||
|
|
||||||
|
lblCardType.Invoke(new Action(() =>
|
||||||
|
{
|
||||||
|
lblCardType.Text = $"Loại thẻ: {cardType}";
|
||||||
|
}));
|
||||||
|
|
||||||
|
lblCardTime.Invoke(new Action(() =>
|
||||||
|
{
|
||||||
|
lblCardTime.Text = $"Thời gian: {cardTime}";
|
||||||
|
}));
|
||||||
|
|
||||||
|
lblRecogizePlateStatus.Invoke(new Action(() =>
|
||||||
|
{
|
||||||
|
lblRecogizePlateStatus.Text = string.IsNullOrEmpty(plateString) ? "KHÔNG NHẬN DIỆN ĐƯỢC BIỂN SỐ" : $"MỜI XE {plateString} VÀO";
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
private void OverviewCameraOnVideoFrameReceived(Mat videoFrame)
|
private void OverviewCameraOnVideoFrameReceived(Mat videoFrame)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
|
Loading…
Reference in New Issue
Block a user