LaneIn - C3Device_OnNewCardReceived check isAutoOpenDoor
This commit is contained in:
parent
3332827fd5
commit
4ca1cc1bd6
|
@ -58,6 +58,10 @@ namespace AIParkingApplication
|
||||||
private void C3Device_OnNewCardReceived(int doorId, string cardNumber)
|
private void C3Device_OnNewCardReceived(int doorId, string cardNumber)
|
||||||
{
|
{
|
||||||
CaptureAllCamera();
|
CaptureAllCamera();
|
||||||
|
if (isAutoOpenDoor)
|
||||||
|
{
|
||||||
|
c3Device.OpenDoor(doorId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void PlateCamera_OnOpenVideoStreamFailed(Mat videoFrame)
|
private void PlateCamera_OnOpenVideoStreamFailed(Mat videoFrame)
|
||||||
|
@ -168,7 +172,7 @@ namespace AIParkingApplication
|
||||||
{
|
{
|
||||||
lblCardTime.Text = $"Thời gian: {cardTime}";
|
lblCardTime.Text = $"Thời gian: {cardTime}";
|
||||||
}));
|
}));
|
||||||
|
|
||||||
lblRecogizePlateStatus.Invoke(new Action(() =>
|
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";
|
lblRecogizePlateStatus.Text = string.IsNullOrEmpty(plateString) ? "KHÔNG NHẬN DIỆN ĐƯỢC BIỂN SỐ" : $"MỜI XE {plateString} VÀO";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user