diff --git a/AIParkingApplication/LaneIn.Designer.cs b/AIParkingApplication/LaneIn.Designer.cs index c2b5f22..924bca3 100644 --- a/AIParkingApplication/LaneIn.Designer.cs +++ b/AIParkingApplication/LaneIn.Designer.cs @@ -38,7 +38,6 @@ this.lblCardType = new System.Windows.Forms.Label(); this.lblCardNumber = new System.Windows.Forms.Label(); this.grbCardInformation = new System.Windows.Forms.GroupBox(); - this.button1 = new System.Windows.Forms.Button(); this.lblCardTime = new System.Windows.Forms.Label(); this.lblPlateString = new System.Windows.Forms.Label(); this.lblRecogizePlateStatus = new System.Windows.Forms.Label(); @@ -146,7 +145,6 @@ // // grbCardInformation // - this.grbCardInformation.Controls.Add(this.button1); this.grbCardInformation.Controls.Add(this.lblCardType); this.grbCardInformation.Controls.Add(this.lblCardTime); this.grbCardInformation.Controls.Add(this.lblPlateString); @@ -160,16 +158,6 @@ this.grbCardInformation.TabStop = false; this.grbCardInformation.Text = "Thông tin thẻ"; // - // button1 - // - this.button1.Location = new System.Drawing.Point(360, 20); - this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(75, 23); - this.button1.TabIndex = 1; - this.button1.Text = "button1"; - this.button1.UseVisualStyleBackColor = true; - this.button1.Click += new System.EventHandler(this.button1_Click); - // // lblCardTime // this.lblCardTime.AutoSize = true; @@ -239,6 +227,5 @@ private System.Windows.Forms.Label lblPlateString; private System.Windows.Forms.Label lblCardTime; private System.Windows.Forms.Label lblRecogizePlateStatus; - private System.Windows.Forms.Button button1; } } diff --git a/AIParkingApplication/LaneIn.cs b/AIParkingApplication/LaneIn.cs index b0a9041..9c317d8 100644 --- a/AIParkingApplication/LaneIn.cs +++ b/AIParkingApplication/LaneIn.cs @@ -48,7 +48,6 @@ namespace AIParkingApplication this.c3Device.OnNewCardReceived += C3Device_OnNewCardReceived; plateCamera.OnVideoFrameReceived += PlateCameraOnVideoFrameReceived; - plateCamera.OnOneVideoFrameRequested += PlateCamera_OnOneVideoFrameRequested; plateCamera.OnOpenVideoStreamFailed += PlateCamera_OnOpenVideoStreamFailed; overviewCamera.OnVideoFrameReceived += OverviewCameraOnVideoFrameReceived; @@ -171,16 +170,6 @@ namespace AIParkingApplication } } - private async void PlateCamera_OnOneVideoFrameRequested(Mat videoFrame) - { - //FinalPlateResult result = await ProcessFrameImage(plateProcessor, videoFrame, isRetryMode, isRetryModeUntilOk); - //pictureBoxPlateImage.Invoke(new Action(() => - //{ - // pictureBoxPlateImage.Image?.Dispose(); - // pictureBoxPlateImage.Image = result.PlateImage; - //})); - } - public void Stop() { plateCamera.Stop(); @@ -256,13 +245,7 @@ namespace AIParkingApplication private void CaptureAllCamera() { - plateCamera.RequestCaptureOneFrame(); overviewCamera.RequestCaptureOneFrame(); } - - private void button1_Click(object sender, EventArgs e) - { - CaptureAllCamera(); - } } } diff --git a/AIParkingApplication/LaneIn.resx b/AIParkingApplication/LaneIn.resx index b7b59c0..1af7de1 100644 --- a/AIParkingApplication/LaneIn.resx +++ b/AIParkingApplication/LaneIn.resx @@ -117,58 +117,4 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - \ No newline at end of file