-
C#实现图片中文识别成文本文字,已应用项目中
C#将图片里中文识别成文本文字,中文识别,.net 实现中文识别 支持*.bmp; *.jpg; *.gif; *.jpeg;*.png等图片格式上的中文,文字 识别 【核心代码】 public Form1() { InitializeComponent(); //ocr = new TesseractEngine("./tessdata", "eng", EngineMode.TesseractAndCube);//设置语言 英文 ocr = new TesseractEngine("./tessdata", "chi_sim");//设置语言 中文 // ocr = new TesseractEngine("./tessdata", "jpn");//设置语言 日语 } private void button1_Click(object sender, EventArgs e) { OpenFileDialog filename = new OpenFileDialog(); filename.Filter = "All files(*.*)|*.*|image files(*.bmp)|*.bmp; *.jpg; *.gif; *.jpeg;*.png"; filename.FilterIndex = 2; if (filename.ShowDialog() == DialogResult.OK) { Bitmap bit = new Bitmap(Image.FromFile(filename.FileName.ToString())); Page page = ocr.Process(bit); string str = page.GetText();//识别后的内容 page.Dispose(); pictureBox1.Image = bit; richTextBox1.AppendText(str); } } /// /// 图片颜色区分,剩下白色和黑色 /// /// ///
- 2020-04-24下载
- 积分:1
-
Experiments--2
求取两个信号的到褶积,通常在用地震方法找油气中用雷克子波和反射系数求取褶积,本程序只是搭建了一个大致的框架,如果需要的到结果,还需要自行设置信号和一些参数。(Strike to the convolution of two signals, typically using seismic methods used to find oil and gas Ricker strike wave and reflection coefficient convolution, this procedure is to build a general framework, if the desired results, you need to set your own signal and some parameters)
- 2015-04-19 19:29:46下载
- 积分:1
-
8x8snake
while(1)
{//if(keyenable==1){P1=0x00 P2=0xff }else{P1=0xff P2=0x00 }
for(i=3 i<SNAKE+1 i++)x[i]=100 for(i=3 i<SNAKE+1 i++)y[i]=100 //初始化
x[0]=4 y[0]=4 //果子
n=3 //蛇长 n=-1
x[1]=1 y[1]=0 //蛇头
x[2]=0 y[2]=0 //蛇尾1
addx=0 addy=0 //位移偏移
//k=1
while(1){if(keyenable)break timer0(1) }
while(1)
{timer0(e)
if(knock()){e=SPEED break } //判断碰撞
if((x[0]==x[1]+addx)&(y[0]==y[1]+addy)) //是否吃东西
- 2011-07-09 23:00:46下载
- 积分:1
-
first
实现固定时隙分配的TDMA算法,有完整的节点和进程模型,用opnet实现(The TDMA algorithm for fixed slot allocation has a complete node and process model, which is implemented by opnet.)
- 2021-02-08 15:09:54下载
- 积分:1
-
GPSubPoints
GPSubPoints_10.0插件,留给需要的朋友。(This is GPSubPoints_10.0)
- 2021-01-15 15:08:46下载
- 积分:1
-
SNSimpleVideoPlayer
基于WPF的媒体播放器,可实现播放暂停等基本操作(Media Player Based on WPF)
- 2020-06-23 13:40:02下载
- 积分:1
-
NURBS曲面重建
NURBS曲面重建,可以直接使用,绘制NURBS曲面,很简单的,自己稍微调试下参数就行
- 2022-02-11 23:53:19下载
- 积分:1
-
实验7 窗口看门狗实验
STM32的窗口看门狗程序,亲测可用。内有详细注释和说明文档,很好的参考资料。(STM32 window guard dog program, pro test available. There are detailed notes and documentation, good references.)
- 2017-11-25 21:37:16下载
- 积分:1
-
Cycles
three LCCWIN-32 macro-implementations for measuring cpu-cycles:
- 2014-11-12 02:27:45下载
- 积分:1
-
ADI-FDTD_-_corrigido
adi-fdtd code in one dimensional whithout PML, with PEC ( Perfect Electric Condutor)
- 2021-01-04 17:08:55下载
- 积分:1