LaneIn - capture one video frame then show UI. C3Device_OnNewCardReceived
This commit is contained in:
@@ -65,10 +65,19 @@ namespace AIParkingApplication
|
||||
if (cardInfoResult.IsValid)
|
||||
{
|
||||
plateCamera.RequestCaptureOneFrame();
|
||||
await Task.Delay(500);
|
||||
var videoFrame = plateCamera.CurrentFrame;
|
||||
overviewCamera.RequestCaptureOneFrame();
|
||||
await Task.Delay(200);
|
||||
var plateVideoFrame = plateCamera.CurrentFrame;
|
||||
var overviewVideoFrame = overviewCamera.CurrentFrame;
|
||||
|
||||
pictureBoxOverviewImage.Invoke(new Action(() =>
|
||||
{
|
||||
pictureBoxOverviewImage.Image?.Dispose();
|
||||
pictureBoxOverviewImage.Image = overviewVideoFrame.ToBitmap();
|
||||
}));
|
||||
|
||||
FinalPlateResult result = await ProcessFrameImage(plateProcessor, plateVideoFrame, isRetryMode);
|
||||
|
||||
FinalPlateResult result = await ProcessFrameImage(plateProcessor, videoFrame, isRetryMode);
|
||||
pictureBoxPlateImage.Invoke(new Action(() =>
|
||||
{
|
||||
pictureBoxPlateImage.Image?.Dispose();
|
||||
|
||||
Reference in New Issue
Block a user