捕获图像

This commit is contained in:
zqm
2026-03-17 14:28:07 +08:00
parent ce49e4c736
commit 7cd923b91b
11 changed files with 651 additions and 130 deletions

View File

@@ -43,6 +43,9 @@ namespace Test
this.lblStatus = new System.Windows.Forms.ToolStripStatusLabel();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.txtLog = new System.Windows.Forms.TextBox();
this.lblIpAddress = new System.Windows.Forms.Label();
this.txtIpAddress = new System.Windows.Forms.TextBox();
this.btnSetIP = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.LedImage)).BeginInit();
this.statusStrip1.SuspendLayout();
this.groupBox1.SuspendLayout();
@@ -79,82 +82,109 @@ namespace Test
this.btnSetConfigFile.UseVisualStyleBackColor = true;
this.btnSetConfigFile.Click += new System.EventHandler(this.btnSetConfigFile_Click);
//
// lblIpAddress
//
this.lblIpAddress.AutoSize = true;
this.lblIpAddress.Location = new System.Drawing.Point(608, 125);
this.lblIpAddress.Name = "lblIpAddress";
this.lblIpAddress.Size = new System.Drawing.Size(65, 12);
this.lblIpAddress.TabIndex = 3;
this.lblIpAddress.Text = "IP地址:";
//
// txtIpAddress
//
this.txtIpAddress.Location = new System.Drawing.Point(675, 122);
this.txtIpAddress.Name = "txtIpAddress";
this.txtIpAddress.Size = new System.Drawing.Size(100, 21);
this.txtIpAddress.TabIndex = 4;
this.txtIpAddress.Text = "192.168.100.10";
//
// btnSetIP
//
this.btnSetIP.Location = new System.Drawing.Point(608, 140);
this.btnSetIP.Name = "btnSetIP";
this.btnSetIP.Size = new System.Drawing.Size(111, 31);
this.btnSetIP.TabIndex = 5;
this.btnSetIP.Text = "3. 设置IP地址";
this.btnSetIP.UseVisualStyleBackColor = true;
this.btnSetIP.Click += new System.EventHandler(this.btnSetIP_Click);
//
// btnStartCamera
//
this.btnStartCamera.Location = new System.Drawing.Point(608, 140);
this.btnStartCamera.Location = new System.Drawing.Point(608, 177);
this.btnStartCamera.Name = "btnStartCamera";
this.btnStartCamera.Size = new System.Drawing.Size(111, 31);
this.btnStartCamera.TabIndex = 3;
this.btnStartCamera.Text = "3. 启动摄像头";
this.btnStartCamera.TabIndex = 6;
this.btnStartCamera.Text = "4. 启动摄像头";
this.btnStartCamera.UseVisualStyleBackColor = true;
this.btnStartCamera.Click += new System.EventHandler(this.btnStartCamera_Click);
//
// btnStartCapture
//
this.btnStartCapture.Location = new System.Drawing.Point(608, 191);
this.btnStartCapture.Location = new System.Drawing.Point(608, 228);
this.btnStartCapture.Name = "btnStartCapture";
this.btnStartCapture.Size = new System.Drawing.Size(111, 31);
this.btnStartCapture.TabIndex = 4;
this.btnStartCapture.Text = "4. 开始捕获";
this.btnStartCapture.TabIndex = 7;
this.btnStartCapture.Text = "5. 开始捕获";
this.btnStartCapture.UseVisualStyleBackColor = true;
this.btnStartCapture.Click += new System.EventHandler(this.btnStartCapture_Click);
//
// btnDetectLeds
//
this.btnDetectLeds.Location = new System.Drawing.Point(608, 242);
this.btnDetectLeds.Location = new System.Drawing.Point(608, 279);
this.btnDetectLeds.Name = "btnDetectLeds";
this.btnDetectLeds.Size = new System.Drawing.Size(111, 31);
this.btnDetectLeds.TabIndex = 5;
this.btnDetectLeds.Text = "5. LED识别";
this.btnDetectLeds.TabIndex = 8;
this.btnDetectLeds.Text = "6. LED识别";
this.btnDetectLeds.UseVisualStyleBackColor = true;
this.btnDetectLeds.Click += new System.EventHandler(this.btnDetectLeds_Click);
//
// btnGetLedStatuses
//
this.btnGetLedStatuses.Location = new System.Drawing.Point(608, 293);
this.btnGetLedStatuses.Location = new System.Drawing.Point(608, 330);
this.btnGetLedStatuses.Name = "btnGetLedStatuses";
this.btnGetLedStatuses.Size = new System.Drawing.Size(111, 31);
this.btnGetLedStatuses.TabIndex = 6;
this.btnGetLedStatuses.Text = "6. 状态查询";
this.btnGetLedStatuses.TabIndex = 9;
this.btnGetLedStatuses.Text = "7. 状态查询";
this.btnGetLedStatuses.UseVisualStyleBackColor = true;
this.btnGetLedStatuses.Click += new System.EventHandler(this.btnGetLedStatuses_Click);
//
// btnShowRegionEditor
//
this.btnShowRegionEditor.Location = new System.Drawing.Point(608, 344);
this.btnShowRegionEditor.Location = new System.Drawing.Point(608, 381);
this.btnShowRegionEditor.Name = "btnShowRegionEditor";
this.btnShowRegionEditor.Size = new System.Drawing.Size(111, 31);
this.btnShowRegionEditor.TabIndex = 7;
this.btnShowRegionEditor.Text = "7. 区域编辑器";
this.btnShowRegionEditor.TabIndex = 10;
this.btnShowRegionEditor.Text = "8. 区域编辑器";
this.btnShowRegionEditor.UseVisualStyleBackColor = true;
this.btnShowRegionEditor.Click += new System.EventHandler(this.btnShowRegionEditor_Click);
//
// btnShutdown
//
this.btnShutdown.Location = new System.Drawing.Point(608, 395);
this.btnShutdown.Location = new System.Drawing.Point(608, 432);
this.btnShutdown.Name = "btnShutdown";
this.btnShutdown.Size = new System.Drawing.Size(111, 31);
this.btnShutdown.TabIndex = 8;
this.btnShutdown.Text = "8. 关闭";
this.btnShutdown.TabIndex = 11;
this.btnShutdown.Text = "9. 关闭";
this.btnShutdown.UseVisualStyleBackColor = true;
this.btnShutdown.Click += new System.EventHandler(this.btnShutdown_Click);
//
// btnStopCapture
//
this.btnStopCapture.Location = new System.Drawing.Point(725, 191);
this.btnStopCapture.Location = new System.Drawing.Point(725, 228);
this.btnStopCapture.Name = "btnStopCapture";
this.btnStopCapture.Size = new System.Drawing.Size(63, 31);
this.btnStopCapture.TabIndex = 9;
this.btnStopCapture.TabIndex = 12;
this.btnStopCapture.Text = "停止";
this.btnStopCapture.UseVisualStyleBackColor = true;
this.btnStopCapture.Click += new System.EventHandler(this.btnStopCapture_Click);
//
// btnStopCamera
//
this.btnStopCamera.Location = new System.Drawing.Point(725, 140);
this.btnStopCamera.Location = new System.Drawing.Point(725, 177);
this.btnStopCamera.Name = "btnStopCamera";
this.btnStopCamera.Size = new System.Drawing.Size(63, 31);
this.btnStopCamera.TabIndex = 10;
this.btnStopCamera.TabIndex = 13;
this.btnStopCamera.Text = "停止";
this.btnStopCamera.UseVisualStyleBackColor = true;
this.btnStopCamera.Click += new System.EventHandler(this.btnStopCamera_Click);
@@ -210,6 +240,9 @@ namespace Test
this.Controls.Add(this.btnDetectLeds);
this.Controls.Add(this.btnStartCapture);
this.Controls.Add(this.btnStartCamera);
this.Controls.Add(this.btnSetIP);
this.Controls.Add(this.txtIpAddress);
this.Controls.Add(this.lblIpAddress);
this.Controls.Add(this.btnSetConfigFile);
this.Controls.Add(this.btnInitialize);
this.Controls.Add(this.LedImage);
@@ -243,5 +276,8 @@ namespace Test
private System.Windows.Forms.ToolStripStatusLabel lblStatus;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.TextBox txtLog;
private System.Windows.Forms.Label lblIpAddress;
private System.Windows.Forms.TextBox txtIpAddress;
private System.Windows.Forms.Button btnSetIP;
}
}