基于c#实现winform界面调用名片识别接口

上传人:wm****3 文档编号:41017440 上传时间:2018-05-28 格式:DOC 页数:13 大小:421.21KB
返回 下载 相关 举报
基于c#实现winform界面调用名片识别接口_第1页
第1页 / 共13页
基于c#实现winform界面调用名片识别接口_第2页
第2页 / 共13页
基于c#实现winform界面调用名片识别接口_第3页
第3页 / 共13页
基于c#实现winform界面调用名片识别接口_第4页
第4页 / 共13页
基于c#实现winform界面调用名片识别接口_第5页
第5页 / 共13页
点击查看更多>>
资源描述

《基于c#实现winform界面调用名片识别接口》由会员分享,可在线阅读,更多相关《基于c#实现winform界面调用名片识别接口(13页珍藏版)》请在金锄头文库上搜索。

1、基于 C#实现 Winform 界面调用名片识别接口本程序适用于聚合名片识别接口:http:/ System.Web.dll 问题,修改“项目属性”-“应用程序”-“目标框架” ,由“.NET Framework 4 Client Profile”修改为“.NET Framework 4”。然后再引用 .NET 4.0 的 System.Web.dll 即可前台界面代码:namespace mingpianshibie partial class Form1/ / Required designer variable./ private System.ComponentModel.IConta

2、iner components = null;/ / Clean up any resources being used./ / true if managed resources should bedisposed; otherwise, false.protected override void Dispose(bool disposing)if (disposing base.Dispose(disposing);#region Windows Form Designer generated code/ / Required method for Designer support - d

3、o not modify/ the contents of this method with the code editor./ private void InitializeComponent()this.open = new System.Windows.Forms.Button();this.pixel = new System.Windows.Forms.Button();this.pictureBox2 = new System.Windows.Forms.PictureBox();this.pictureBox1 = new System.Windows.Forms.Picture

4、Box();this.ImgToBase64 = new System.Windows.Forms.Button();this.button2 = new System.Windows.Forms.Button();this.groupBox1 = new System.Windows.Forms.GroupBox();this.label1 = new System.Windows.Forms.Label();this.lb_show = new System.Windows.Forms.Label();(System.ComponentModel.ISupportInitialize)(t

5、his.pictureBox 2).BeginInit();(System.ComponentModel.ISupportInitialize)(this.pictureBox 1).BeginInit();this.groupBox1.SuspendLayout();this.SuspendLayout();/ / open/ this.open.Location = new System.Drawing.Point(414, 29);this.open.Name = “open“;this.open.Size = new System.Drawing.Size(112, 29);this.

6、open.TabIndex = 0;this.open.Text = “选择图片“;this.open.UseVisualStyleBackColor = true;this.open.Click += new System.EventHandler(this.open_Click);/ / pixel/ this.pixel.Location = new System.Drawing.Point(414, 92);this.pixel.Name = “pixel“;this.pixel.Size = new System.Drawing.Size(112, 29);this.pixel.Ta

7、bIndex = 3;this.pixel.Text = “灰度化处理“;this.pixel.UseVisualStyleBackColor = true;this.pixel.Click += new System.EventHandler(this.pixel_Click);/ / pictureBox2/ this.pictureBox2.Location = new System.Drawing.Point(6, 141);this.pictureBox2.Name = “pictureBox2“;this.pictureBox2.Size = new System.Drawing.

8、Size(373, 113);this.pictureBox2.TabIndex = 5;this.pictureBox2.TabStop = false;/ / pictureBox1/ this.pictureBox1.Location = new System.Drawing.Point(6, 17);this.pictureBox1.Name = “pictureBox1“;this.pictureBox1.Size = new System.Drawing.Size(373, 110);this.pictureBox1.TabIndex = 4;this.pictureBox1.Ta

9、bStop = false;/ / ImgToBase64/ this.ImgToBase64.Location = new System.Drawing.Point(414, 15 3);this.ImgToBase64.Name = “ImgToBase64“;this.ImgToBase64.Size = new System.Drawing.Size(112, 29);this.ImgToBase64.TabIndex = 6;this.ImgToBase64.Text = “图片 Base64 转换“;this.ImgToBase64.UseVisualStyleBackColor

10、= true;this.ImgToBase64.Click += new System.EventHandler(this.ImgTo Base64_Click);/ / button2/ this.button2.Location = new System.Drawing.Point(414, 216);this.button2.Name = “button2“;this.button2.Size = new System.Drawing.Size(112, 29);this.button2.TabIndex = 7;this.button2.Text = “名片识别“;this.butto

11、n2.UseVisualStyleBackColor = true;this.button2.Click += new System.EventHandler(this.button2_C lick_1);/ / groupBox1/ this.groupBox1.BackColor = System.Drawing.SystemColors.Cont rol;this.groupBox1.Controls.Add(this.pictureBox1);this.groupBox1.Controls.Add(this.pictureBox2);this.groupBox1.Location =

12、new System.Drawing.Point(12, 12);this.groupBox1.Name = “groupBox1“;this.groupBox1.Size = new System.Drawing.Size(396, 260);this.groupBox1.TabIndex = 8;this.groupBox1.TabStop = false;this.groupBox1.Text = “图片展示“;/ / label1/ this.label1.AutoSize = true;this.label1.Location = new System.Drawing.Point(1

13、6, 299);this.label1.Name = “label1“;this.label1.Size = new System.Drawing.Size(65, 12);this.label1.TabIndex = 9;this.label1.Text = “识别结果:“;/ / lb_show/ this.lb_show.AutoSize = true;this.lb_show.Location = new System.Drawing.Point(106, 299);this.lb_show.Name = “lb_show“;this.lb_show.Size = new System

14、.Drawing.Size(0, 12);this.lb_show.TabIndex = 10;/ / Form1/ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Fon t;this.ClientSize = new System.Drawing.Size(553, 348);this.Controls.Add(this.lb_show);this.Controls.Add(this.label1);thi

15、s.Controls.Add(this.groupBox1);this.Controls.Add(this.button2);this.Controls.Add(this.ImgToBase64);this.Controls.Add(this.pixel);this.Controls.Add(this.open);this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.F ixedToolWindow;this.Name = “Form1“;this.Text = “名片识别“;(System.ComponentModel.ISu

16、pportInitialize)(this.pictureBox 2).EndInit();(System.ComponentModel.ISupportInitialize)(this.pictureBox 1).EndInit();this.groupBox1.ResumeLayout(false);this.ResumeLayout(false);this.PerformLayout();#endregionprivate System.Windows.Forms.Button open;private System.Windows.Forms.Button pixel;private System.Windows.Forms.PictureBox pictureBox2;private System.Windows.Forms.PictureBox pictureBox

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 生活休闲 > 社会民生

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号