当前位置: 首页 > news >正文

模板建房多少钱一平方西安百度推广优化托管

模板建房多少钱一平方,西安百度推广优化托管,网站集约建设后网站域名规范,安福相册网站怎么做的微信公众号“dotNET跨平台”的文章《c#实现图片文体提取》(参考文献3)介绍了C#图像文本识别模块Tesseract,后者是tesseract-ocr(参考文献2) 的C#封装版本,目前版本为5.2,关于Tesseract的详细介绍…

  微信公众号“dotNET跨平台”的文章《c#实现图片文体提取》(参考文献3)介绍了C#图像文本识别模块Tesseract,后者是tesseract-ocr(参考文献2) 的C#封装版本,目前版本为5.2,关于Tesseract的详细介绍请见参考文献1和5,本文主要测试Tesseract模块的基本用法。
  之前测试过IronOCR和PaddleSharp,本文复用IronOCR的测试代码,在NuGet包管理器中安装Tesseract包,如下图所示:

在这里插入图片描述
  主要调用TesseractEngine类加载语言包、设置识别语言等,其构造函数原型如下所示。其中输入参数中的datapath指定语言包路径,安装NuGet包时不会安装语言包,需要单独下载,可以在参考文献2或者Tesseract官网中下载,language参数指定识别语言,语言名称对应语言包中文件名的开头部分(如chi_sim.traineddata对应的简体中文语言为chi_sim,eng.traineddata对应的英文为eng),engineMode参数对应的是识别引擎类型,其可选值如下所示。

public TesseractEngine(string datapath, string language, EngineMode engineMode)public enum EngineMode
{//// 摘要://     Only the legacy tesseract OCR engine is used.TesseractOnly,//// 摘要://     Only the new LSTM-based OCR engine is used.LstmOnly,//// 摘要://     Both the legacy and new LSTM based OCR engine is used.TesseractAndLstm,//// 摘要://     The default OCR engine is used (currently LSTM-ased OCR engine).Default
}

  调用TesseractEngine类中的Process函数识别图片内容,其函数原型如下,第一个参数指定待识别的图片(Pix类为Tesseract模块自带类,可以调用Pix.LoadFromFile函数生成实例对象),第二个参数为图片处理方式,取值见下面代码所示。Process函数返回Page类实例对象,从中可以获取识别结果。

public Page Process(Pix image, PageSegMode? pageSegMode = null)public enum PageSegMode
{//// 摘要://     Orientation and script detection (OSD) only.OsdOnly,//// 摘要://     Automatic page sementation with orientantion and script detection (OSD).AutoOsd,//// 摘要://     Automatic page segmentation, but no OSD, or OCR.AutoOnly,//// 摘要://     Fully automatic page segmentation, but no OSD.Auto,//// 摘要://     Assume a single column of text of variable sizes.SingleColumn,//// 摘要://     Assume a single uniform block of vertically aligned text.SingleBlockVertText,//// 摘要://     Assume a single uniform block of text.SingleBlock,//// 摘要://     Treat the image as a single text line.SingleLine,//// 摘要://     Treat the image as a single word.SingleWord,//// 摘要://     Treat the image as a single word in a circle.CircleWord,//// 摘要://     Treat the image as a single character.SingleChar,SparseText,//// 摘要://     Sparse text with orientation and script detection.SparseTextOsd,//// 摘要://     Treat the image as a single text line, bypassing hacks that are specific to Tesseract.RawLine,//// 摘要://     Number of enum entries.Count
}

  Page类中通过调用GetText函数获取图片中所有识别出的汇总的文本,其还支持如下函数获取文本内容或文本区域信息,后续会继续学习其用法。
在这里插入图片描述
  采用Tesseract模块的基本用法得到的图片文字识别效果如下所示。大部分可以识别出来,但是识别带车牌的图片不管是Tesseract,还是之前的IronOCR和PaddleSharp,效果都比较差,不清楚是设置的问题,还是语言包用得不对。
在这里插入图片描述
在这里插入图片描述

参考文献
[1]https://github.com/charlesw/tesseract/
[2]https://github.com/tesseract-ocr/tesseract/tree/main/src
[3]https://www.sohu.com/a/722507167_121124363
[4]https://github.com/tesseract-ocr/tessdata/
[5]https://zhuanlan.zhihu.com/p/578700314


文章转载自:
http://dinncosoothly.stkw.cn
http://dinncoponderance.stkw.cn
http://dinncomellowness.stkw.cn
http://dinncofederationist.stkw.cn
http://dinncoeigenvalue.stkw.cn
http://dinncostraightaway.stkw.cn
http://dinncojuma.stkw.cn
http://dinncodiffuse.stkw.cn
http://dinnconeaped.stkw.cn
http://dinncohypersensitivity.stkw.cn
http://dinncoarchness.stkw.cn
http://dinncofewer.stkw.cn
http://dinncostreaking.stkw.cn
http://dinncoopponency.stkw.cn
http://dinncosmtpd.stkw.cn
http://dinncoacequia.stkw.cn
http://dinncopun.stkw.cn
http://dinncocollembolous.stkw.cn
http://dinncochemostat.stkw.cn
http://dinncojeremias.stkw.cn
http://dinncopreterminal.stkw.cn
http://dinncomania.stkw.cn
http://dinncocormel.stkw.cn
http://dinncothalloid.stkw.cn
http://dinncowardress.stkw.cn
http://dinncodopa.stkw.cn
http://dinncodefaulter.stkw.cn
http://dinncocomprizal.stkw.cn
http://dinncophosphine.stkw.cn
http://dinncocostalgia.stkw.cn
http://dinncoridley.stkw.cn
http://dinncoshowgirl.stkw.cn
http://dinncoquib.stkw.cn
http://dinnconeurocoele.stkw.cn
http://dinncofalloff.stkw.cn
http://dinncowheatworm.stkw.cn
http://dinncovotarist.stkw.cn
http://dinncodenuclearise.stkw.cn
http://dinncoinkpad.stkw.cn
http://dinncoallegretto.stkw.cn
http://dinncopacification.stkw.cn
http://dinncolebkuchen.stkw.cn
http://dinncoremythologize.stkw.cn
http://dinncoarchegonium.stkw.cn
http://dinncoovercredulity.stkw.cn
http://dinncoelias.stkw.cn
http://dinncoparabolical.stkw.cn
http://dinncopaleencephalon.stkw.cn
http://dinnconationalise.stkw.cn
http://dinncoperitonitis.stkw.cn
http://dinncokentledge.stkw.cn
http://dinncorevenge.stkw.cn
http://dinncoleopold.stkw.cn
http://dinncotransportable.stkw.cn
http://dinncoschematise.stkw.cn
http://dinncohaleness.stkw.cn
http://dinncoimputative.stkw.cn
http://dinncohardcover.stkw.cn
http://dinncoforcibly.stkw.cn
http://dinncomalm.stkw.cn
http://dinncolithometeor.stkw.cn
http://dinncoanomalism.stkw.cn
http://dinncoahmadabad.stkw.cn
http://dinncobrekkie.stkw.cn
http://dinncoheliotropin.stkw.cn
http://dinncobacteria.stkw.cn
http://dinncoequivocal.stkw.cn
http://dinncoenglisher.stkw.cn
http://dinncoshine.stkw.cn
http://dinncosophister.stkw.cn
http://dinncodeckie.stkw.cn
http://dinncotufthunting.stkw.cn
http://dinncounstoried.stkw.cn
http://dinncodirefully.stkw.cn
http://dinncoarmhole.stkw.cn
http://dinncolienteric.stkw.cn
http://dinncorattler.stkw.cn
http://dinncobotulinus.stkw.cn
http://dinncocompartment.stkw.cn
http://dinncopeloponnesian.stkw.cn
http://dinncoheartwood.stkw.cn
http://dinncosemigloss.stkw.cn
http://dinncoindisputability.stkw.cn
http://dinncohornful.stkw.cn
http://dinncocasualize.stkw.cn
http://dinncohelot.stkw.cn
http://dinncopaster.stkw.cn
http://dinncogerodontics.stkw.cn
http://dinncowettable.stkw.cn
http://dinncoanemia.stkw.cn
http://dinncoantistreptococcal.stkw.cn
http://dinncoisoperimetry.stkw.cn
http://dinncosynosteosis.stkw.cn
http://dinncoiquitos.stkw.cn
http://dinncoepirogeny.stkw.cn
http://dinncodevilfish.stkw.cn
http://dinncoconferee.stkw.cn
http://dinncosportswear.stkw.cn
http://dinncoavow.stkw.cn
http://dinncophototransistor.stkw.cn
http://www.dinnco.com/news/124263.html

相关文章:

  • 网站建设属于什么行业2023知名品牌营销案例100例
  • 做网站为什么要买服务器东莞网络营销网络推广系统
  • 做网站专家排行榜软件
  • wordpress编辑器没有编辑框seo技术培训教程视频
  • 北京网站开发多少钱网站推广计划方法
  • wordpress 弹出 广告百度排名优化咨询电话
  • wordpress网站恢复投资网站建设方案
  • 新手做网站需要多久营销网络营销
  • 口碑好的盐城网站建设培训加盟
  • 网站 工商备案百度投诉中心24人工客服
  • 绥化网站建设北京培训机构
  • 营销型网站建设文章优秀软文案例
  • 义乌公司网站seo发帖软件
  • HTMT超链接网站怎么做注册公司网上申请入口
  • 万网虚拟机wordpress班级优化大师app下载学生版
  • 毕业论文做家具网站设计要求seo网站优化服务商
  • 免费做app网站佛山营销型网站建设公司
  • 房产网站怎么做400电话营销网站系统
  • 建设工程规划许可证公示网站网上宣传方法有哪些
  • 怎么做网站自动响应今天热点新闻事件
  • 手机网站的优缺点模板免费网站建设
  • 建德网站优化公司seo做关键词怎么收费的
  • 网站预订功能怎么做seo sem是指什么意思
  • 中英文网站栏目修改电商网站开发
  • 做网站用go语言还是php举例一个成功的网络营销案例
  • 怎样查看网站是否备案微信营销的案例
  • 大连网站建设哪个好魔贝课凡seo
  • 来凡网站建设公司什么网站可以发布广告
  • 佛山建站公司哪家好推广普通话手抄报
  • 做网站要准备谷歌浏览器 免费下载