LaneIn - capture one video frame then show UI. C3Device_OnNewCardReceived
This commit is contained in:
parent
b7eae98821
commit
2de7ff5745
|
@ -65,10 +65,19 @@ namespace AIParkingApplication
|
||||||
if (cardInfoResult.IsValid)
|
if (cardInfoResult.IsValid)
|
||||||
{
|
{
|
||||||
plateCamera.RequestCaptureOneFrame();
|
plateCamera.RequestCaptureOneFrame();
|
||||||
await Task.Delay(500);
|
overviewCamera.RequestCaptureOneFrame();
|
||||||
var videoFrame = plateCamera.CurrentFrame;
|
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.Invoke(new Action(() =>
|
||||||
{
|
{
|
||||||
pictureBoxPlateImage.Image?.Dispose();
|
pictureBoxPlateImage.Image?.Dispose();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user