使用ORC识别图片的文字
生活随笔
收集整理的這篇文章主要介紹了
使用ORC识别图片的文字
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;namespace 圖片識別
{public partial class Form1 : Form{public Form1(){InitializeComponent();}private void button1_Click(object sender, EventArgs e){DialogResult dr = openFileDialog1.ShowDialog(this);textBox1.Text = openFileDialog1.FileName;}private void button2_Click(object sender, EventArgs e){richTextBox1.Text = Marshal.PtrToStringAnsi(OCR(textBox1.Text, -1));//MessageBox.Show(Marshal.PtrToStringAnsi(OCRpart(img_path, -1, startX, startY, width, height)));}}
}
需要引入一個DLL??? AspriseOCR.dll?? 這個可以從網(wǎng)上下載
需要引入一個DLL??? AspriseOCR.dll?? 這個可以從網(wǎng)上下載
轉(zhuǎn)載于:https://www.cnblogs.com/zhujunxxxxx/p/3344868.html
總結(jié)
以上是生活随笔為你收集整理的使用ORC识别图片的文字的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 2022年化工自动化控制仪表考试及化工自
- 下一篇: VBA打开一个EXCEL文件并在二个文件