LaneIn - C3Device_OnNewCardReceived check isAutoOpenDoor

This commit is contained in:
DucDangAnh 2020-06-22 15:05:11 +07:00
parent 3332827fd5
commit 4ca1cc1bd6

View File

@ -58,6 +58,10 @@ namespace AIParkingApplication
private void C3Device_OnNewCardReceived(int doorId, string cardNumber)
{
CaptureAllCamera();
if (isAutoOpenDoor)
{
c3Device.OpenDoor(doorId);
}
}
private void PlateCamera_OnOpenVideoStreamFailed(Mat videoFrame)
@ -168,7 +172,7 @@ namespace AIParkingApplication
{
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";