add camera driver layer

This commit is contained in:
2025-12-26 14:54:32 +08:00
parent c6be81d1dd
commit d7ef283b9d
11 changed files with 324 additions and 469 deletions

View File

@@ -61,9 +61,7 @@
this.label2 = new System.Windows.Forms.Label();
this.Location_Display = new Cognex.VisionPro.CogRecordDisplay();
this.Ocr_picBox = new System.Windows.Forms.PictureBox();
this.btn_manualOcr = new System.Windows.Forms.Button();
this.txt_readOcrResultShow = new System.Windows.Forms.TextBox();
this.btn_manualDet = new System.Windows.Forms.Button();
this.toolStrip_Status = new System.Windows.Forms.ToolStrip();
this.ttls_PLCStatus_lbl = new System.Windows.Forms.ToolStripLabel();
this.ttls_PCLStatusShow = new System.Windows.Forms.ToolStripButton();
@@ -95,7 +93,6 @@
this.list_Log = new System.Windows.Forms.ListView();
this.panel_Manual = new System.Windows.Forms.Panel();
this.lbl_Manual = new System.Windows.Forms.Label();
this.check_Autorun = new System.Windows.Forms.CheckBox();
this.panel_OrderInformation = new System.Windows.Forms.Panel();
this.lbl_orderinfo = new System.Windows.Forms.Label();
this.panel_AutoRun = new System.Windows.Forms.Panel();
@@ -510,20 +507,6 @@
this.Ocr_picBox.TabIndex = 22;
this.Ocr_picBox.TabStop = false;
//
// btn_manualOcr
//
this.btn_manualOcr.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.btn_manualOcr.BackColor = System.Drawing.Color.DodgerBlue;
this.btn_manualOcr.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btn_manualOcr.Location = new System.Drawing.Point(79, 93);
this.btn_manualOcr.Name = "btn_manualOcr";
this.btn_manualOcr.Size = new System.Drawing.Size(154, 38);
this.btn_manualOcr.TabIndex = 23;
this.btn_manualOcr.Text = "手动OCR";
this.btn_manualOcr.UseVisualStyleBackColor = false;
this.btn_manualOcr.Click += new System.EventHandler(this.btn_manualOcr_Click);
//
// txt_readOcrResultShow
//
this.txt_readOcrResultShow.Font = new System.Drawing.Font("宋体", 12F);
@@ -534,20 +517,6 @@
this.txt_readOcrResultShow.TabIndex = 24;
this.txt_readOcrResultShow.Text = "等待读取字符...";
//
// btn_manualDet
//
this.btn_manualDet.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.btn_manualDet.BackColor = System.Drawing.Color.DodgerBlue;
this.btn_manualDet.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btn_manualDet.Location = new System.Drawing.Point(79, 49);
this.btn_manualDet.Name = "btn_manualDet";
this.btn_manualDet.Size = new System.Drawing.Size(154, 38);
this.btn_manualDet.TabIndex = 25;
this.btn_manualDet.Text = "手动定位";
this.btn_manualDet.UseVisualStyleBackColor = false;
this.btn_manualDet.Click += new System.EventHandler(this.btn_manualDet_Click);
//
// toolStrip_Status
//
this.toolStrip_Status.Dock = System.Windows.Forms.DockStyle.Bottom;
@@ -918,8 +887,6 @@
| System.Windows.Forms.AnchorStyles.Right)));
this.panel_Manual.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel_Manual.Controls.Add(this.lbl_Manual);
this.panel_Manual.Controls.Add(this.btn_manualOcr);
this.panel_Manual.Controls.Add(this.btn_manualDet);
this.panel_Manual.Location = new System.Drawing.Point(2, 495);
this.panel_Manual.Name = "panel_Manual";
this.panel_Manual.Size = new System.Drawing.Size(315, 151);
@@ -939,21 +906,6 @@
this.lbl_Manual.Text = "手动运行操作";
this.lbl_Manual.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// check_Autorun
//
this.check_Autorun.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.check_Autorun.Appearance = System.Windows.Forms.Appearance.Button;
this.check_Autorun.BackColor = System.Drawing.SystemColors.Control;
this.check_Autorun.BackgroundImage = global::TetraPackOCR.Properties.Resources.OFF;
this.check_Autorun.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.check_Autorun.Location = new System.Drawing.Point(79, 56);
this.check_Autorun.Name = "check_Autorun";
this.check_Autorun.Size = new System.Drawing.Size(154, 64);
this.check_Autorun.TabIndex = 29;
this.check_Autorun.UseVisualStyleBackColor = false;
this.check_Autorun.CheckedChanged += new System.EventHandler(this.check_Autorun_CheckedChanged);
//
// panel_OrderInformation
//
this.panel_OrderInformation.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
@@ -985,7 +937,6 @@
| System.Windows.Forms.AnchorStyles.Right)));
this.panel_AutoRun.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel_AutoRun.Controls.Add(this.label9);
this.panel_AutoRun.Controls.Add(this.check_Autorun);
this.panel_AutoRun.Location = new System.Drawing.Point(2, 345);
this.panel_AutoRun.Name = "panel_AutoRun";
this.panel_AutoRun.Padding = new System.Windows.Forms.Padding(1);
@@ -1257,9 +1208,7 @@
private System.Windows.Forms.Label lbl_NO;
private Cognex.VisionPro.CogRecordDisplay Location_Display;
private System.Windows.Forms.PictureBox Ocr_picBox;
private System.Windows.Forms.Button btn_manualOcr;
private System.Windows.Forms.TextBox txt_readOcrResultShow;
private System.Windows.Forms.Button btn_manualDet;
private System.Windows.Forms.ToolStrip toolStrip_Status;
private System.Windows.Forms.ToolStripLabel ttls_PLCStatus_lbl;
private System.Windows.Forms.ToolStripButton ttls_PCLStatusShow;
@@ -1290,7 +1239,6 @@
private System.Windows.Forms.Label lbl_L6_verOcrRs;
private System.Windows.Forms.Panel panel_Manual;
private System.Windows.Forms.Label lbl_Manual;
private System.Windows.Forms.CheckBox check_Autorun;
private System.Windows.Forms.Panel panel_OrderInformation;
private System.Windows.Forms.Label lbl_orderinfo;
private System.Windows.Forms.Panel panel_AutoRun;