|
@@ -0,0 +1,203 @@
|
|
|
+namespace OcrPrepWinform
|
|
|
+{
|
|
|
+ partial class MainForm
|
|
|
+ {
|
|
|
+ /// <summary>
|
|
|
+ /// Required designer variable.
|
|
|
+ /// </summary>
|
|
|
+ private System.ComponentModel.IContainer components = null;
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// Clean up any resources being used.
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
|
+ protected override void Dispose(bool disposing)
|
|
|
+ {
|
|
|
+ if (disposing && (components != null))
|
|
|
+ {
|
|
|
+ components.Dispose();
|
|
|
+ }
|
|
|
+ base.Dispose(disposing);
|
|
|
+ }
|
|
|
+
|
|
|
+ #region Windows Form Designer generated code
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// Required method for Designer support - do not modify
|
|
|
+ /// the contents of this method with the code editor.
|
|
|
+ /// </summary>
|
|
|
+ private void InitializeComponent()
|
|
|
+ {
|
|
|
+ this.txtDownlaodUrl = new System.Windows.Forms.TextBox();
|
|
|
+ this.btnDownloadImg = new System.Windows.Forms.Button();
|
|
|
+ this.picOringal = new System.Windows.Forms.PictureBox();
|
|
|
+ this.picPreProcessed = new System.Windows.Forms.PictureBox();
|
|
|
+ this.btnPreProcess = new System.Windows.Forms.Button();
|
|
|
+ this.btnOcr = new System.Windows.Forms.Button();
|
|
|
+ this.txtResult = new System.Windows.Forms.TextBox();
|
|
|
+ this.chkAutoPreprocess = new System.Windows.Forms.CheckBox();
|
|
|
+ this.chkAutoOcr = new System.Windows.Forms.CheckBox();
|
|
|
+ this.txtWhiteList = new System.Windows.Forms.TextBox();
|
|
|
+ this.chkIs = new System.Windows.Forms.CheckBox();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.picOringal)).BeginInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.picPreProcessed)).BeginInit();
|
|
|
+ this.SuspendLayout();
|
|
|
+ //
|
|
|
+ // txtDownlaodUrl
|
|
|
+ //
|
|
|
+ this.txtDownlaodUrl.Location = new System.Drawing.Point(82, 9);
|
|
|
+ this.txtDownlaodUrl.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
|
|
|
+ this.txtDownlaodUrl.Name = "txtDownlaodUrl";
|
|
|
+ this.txtDownlaodUrl.Size = new System.Drawing.Size(352, 21);
|
|
|
+ this.txtDownlaodUrl.TabIndex = 0;
|
|
|
+ //
|
|
|
+ // btnDownloadImg
|
|
|
+ //
|
|
|
+ this.btnDownloadImg.Location = new System.Drawing.Point(9, 11);
|
|
|
+ this.btnDownloadImg.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
|
|
|
+ this.btnDownloadImg.Name = "btnDownloadImg";
|
|
|
+ this.btnDownloadImg.Size = new System.Drawing.Size(69, 20);
|
|
|
+ this.btnDownloadImg.TabIndex = 1;
|
|
|
+ this.btnDownloadImg.Text = "下载图片";
|
|
|
+ this.btnDownloadImg.UseVisualStyleBackColor = true;
|
|
|
+ this.btnDownloadImg.Click += new System.EventHandler(this.btnDownloadImg_Click);
|
|
|
+ //
|
|
|
+ // picOringal
|
|
|
+ //
|
|
|
+ this.picOringal.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
|
|
+ this.picOringal.Location = new System.Drawing.Point(82, 33);
|
|
|
+ this.picOringal.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
|
|
|
+ this.picOringal.Name = "picOringal";
|
|
|
+ this.picOringal.Size = new System.Drawing.Size(116, 50);
|
|
|
+ this.picOringal.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
|
|
|
+ this.picOringal.TabIndex = 2;
|
|
|
+ this.picOringal.TabStop = false;
|
|
|
+ //
|
|
|
+ // picPreProcessed
|
|
|
+ //
|
|
|
+ this.picPreProcessed.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
|
|
+ this.picPreProcessed.Location = new System.Drawing.Point(202, 33);
|
|
|
+ this.picPreProcessed.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
|
|
|
+ this.picPreProcessed.Name = "picPreProcessed";
|
|
|
+ this.picPreProcessed.Size = new System.Drawing.Size(112, 50);
|
|
|
+ this.picPreProcessed.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
|
|
|
+ this.picPreProcessed.TabIndex = 2;
|
|
|
+ this.picPreProcessed.TabStop = false;
|
|
|
+ //
|
|
|
+ // btnPreProcess
|
|
|
+ //
|
|
|
+ this.btnPreProcess.Location = new System.Drawing.Point(9, 33);
|
|
|
+ this.btnPreProcess.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
|
|
|
+ this.btnPreProcess.Name = "btnPreProcess";
|
|
|
+ this.btnPreProcess.Size = new System.Drawing.Size(69, 20);
|
|
|
+ this.btnPreProcess.TabIndex = 1;
|
|
|
+ this.btnPreProcess.Text = "预处理";
|
|
|
+ this.btnPreProcess.UseVisualStyleBackColor = true;
|
|
|
+ this.btnPreProcess.Click += new System.EventHandler(this.btnPreProcess_Click);
|
|
|
+ //
|
|
|
+ // btnOcr
|
|
|
+ //
|
|
|
+ this.btnOcr.Location = new System.Drawing.Point(9, 55);
|
|
|
+ this.btnOcr.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
|
|
|
+ this.btnOcr.Name = "btnOcr";
|
|
|
+ this.btnOcr.Size = new System.Drawing.Size(69, 20);
|
|
|
+ this.btnOcr.TabIndex = 1;
|
|
|
+ this.btnOcr.Text = "识别";
|
|
|
+ this.btnOcr.UseVisualStyleBackColor = true;
|
|
|
+ this.btnOcr.Click += new System.EventHandler(this.btnOcr_Click);
|
|
|
+ //
|
|
|
+ // txtResult
|
|
|
+ //
|
|
|
+ this.txtResult.Font = new System.Drawing.Font("Fixedsys Excelsior 3.01", 32.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
|
+ this.txtResult.Location = new System.Drawing.Point(317, 33);
|
|
|
+ this.txtResult.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
|
|
|
+ this.txtResult.Name = "txtResult";
|
|
|
+ this.txtResult.ReadOnly = true;
|
|
|
+ this.txtResult.Size = new System.Drawing.Size(117, 50);
|
|
|
+ this.txtResult.TabIndex = 3;
|
|
|
+ this.txtResult.Text = "????";
|
|
|
+ //
|
|
|
+ // chkAutoPreprocess
|
|
|
+ //
|
|
|
+ this.chkAutoPreprocess.AutoSize = true;
|
|
|
+ this.chkAutoPreprocess.Location = new System.Drawing.Point(64, 38);
|
|
|
+ this.chkAutoPreprocess.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
|
|
|
+ this.chkAutoPreprocess.Name = "chkAutoPreprocess";
|
|
|
+ this.chkAutoPreprocess.Size = new System.Drawing.Size(15, 14);
|
|
|
+ this.chkAutoPreprocess.TabIndex = 4;
|
|
|
+ this.chkAutoPreprocess.UseVisualStyleBackColor = true;
|
|
|
+ //
|
|
|
+ // chkAutoOcr
|
|
|
+ //
|
|
|
+ this.chkAutoOcr.AutoSize = true;
|
|
|
+ this.chkAutoOcr.Location = new System.Drawing.Point(64, 60);
|
|
|
+ this.chkAutoOcr.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
|
|
|
+ this.chkAutoOcr.Name = "chkAutoOcr";
|
|
|
+ this.chkAutoOcr.Size = new System.Drawing.Size(15, 14);
|
|
|
+ this.chkAutoOcr.TabIndex = 5;
|
|
|
+ this.chkAutoOcr.UseVisualStyleBackColor = true;
|
|
|
+ //
|
|
|
+ // txtWhiteList
|
|
|
+ //
|
|
|
+ this.txtWhiteList.Location = new System.Drawing.Point(82, 86);
|
|
|
+ this.txtWhiteList.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
|
|
|
+ this.txtWhiteList.Name = "txtWhiteList";
|
|
|
+ this.txtWhiteList.Size = new System.Drawing.Size(231, 21);
|
|
|
+ this.txtWhiteList.TabIndex = 6;
|
|
|
+ this.txtWhiteList.Text = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
|
+ //
|
|
|
+ // chkIs
|
|
|
+ //
|
|
|
+ this.chkIs.AutoSize = true;
|
|
|
+ this.chkIs.Location = new System.Drawing.Point(317, 88);
|
|
|
+ this.chkIs.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
|
|
|
+ this.chkIs.Name = "chkIs";
|
|
|
+ this.chkIs.Size = new System.Drawing.Size(120, 16);
|
|
|
+ this.chkIs.TabIndex = 7;
|
|
|
+ this.chkIs.Text = "interword_spaces";
|
|
|
+ this.chkIs.UseVisualStyleBackColor = true;
|
|
|
+ //
|
|
|
+ // MainForm
|
|
|
+ //
|
|
|
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
|
|
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
|
+ this.ClientSize = new System.Drawing.Size(460, 110);
|
|
|
+ this.Controls.Add(this.chkIs);
|
|
|
+ this.Controls.Add(this.txtWhiteList);
|
|
|
+ this.Controls.Add(this.chkAutoOcr);
|
|
|
+ this.Controls.Add(this.chkAutoPreprocess);
|
|
|
+ this.Controls.Add(this.txtResult);
|
|
|
+ this.Controls.Add(this.picPreProcessed);
|
|
|
+ this.Controls.Add(this.picOringal);
|
|
|
+ this.Controls.Add(this.btnOcr);
|
|
|
+ this.Controls.Add(this.btnPreProcess);
|
|
|
+ this.Controls.Add(this.btnDownloadImg);
|
|
|
+ this.Controls.Add(this.txtDownlaodUrl);
|
|
|
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
|
|
+ this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
|
|
|
+ this.MaximizeBox = false;
|
|
|
+ this.MinimizeBox = false;
|
|
|
+ this.Name = "MainForm";
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.picOringal)).EndInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.picPreProcessed)).EndInit();
|
|
|
+ this.ResumeLayout(false);
|
|
|
+ this.PerformLayout();
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ #endregion
|
|
|
+
|
|
|
+ private System.Windows.Forms.TextBox txtDownlaodUrl;
|
|
|
+ private System.Windows.Forms.Button btnDownloadImg;
|
|
|
+ private System.Windows.Forms.PictureBox picOringal;
|
|
|
+ private System.Windows.Forms.PictureBox picPreProcessed;
|
|
|
+ private System.Windows.Forms.Button btnPreProcess;
|
|
|
+ private System.Windows.Forms.Button btnOcr;
|
|
|
+ private System.Windows.Forms.TextBox txtResult;
|
|
|
+ private System.Windows.Forms.CheckBox chkAutoPreprocess;
|
|
|
+ private System.Windows.Forms.CheckBox chkAutoOcr;
|
|
|
+ private System.Windows.Forms.TextBox txtWhiteList;
|
|
|
+ private System.Windows.Forms.CheckBox chkIs;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|