Opencv3.4+Tesseract4.0+VS2017的MFC打开摄像头读取图像并识别把结果显示在对话框中

上传者: m0_37350758 | 上传时间: 2024-04-30 15:23:19 | 文件大小: 150.13MB | 文件类型: ZIP
此例程需要你先配置好opencv和tesseract的开发环境,本例程先通过摄像头获取图像,然后opencv模板匹配获取要识别的区域,最后由tesseract进行识别并将结果显示在对话框中,其中有两个函数解决了显示乱码和不能换行的问题,具体可看代码。

文件下载

资源详情

[{"title":"( 92 个子文件 150.13MB ) Opencv3.4+Tesseract4.0+VS2017的MFC打开摄像头读取图像并识别把结果显示在对话框中","children":[{"title":"LuckyDetection","children":[{"title":"LuckyDetection","children":[{"title":"LuckyDetection.vcxproj.filters <span style='color:#111;'> 2.17KB </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 1.67KB </span>","children":null,"spread":false},{"title":"LuckyDetectionDlg.h <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false},{"title":"tesseract2.props <span style='color:#111;'> 939B </span>","children":null,"spread":false},{"title":"LuckyDetection.rc <span style='color:#111;'> 11.46KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"LuckyDetection.tlog","children":null,"spread":false}],"spread":true},{"title":"LuckyDetectionDlg.cpp <span style='color:#111;'> 16.88KB </span>","children":null,"spread":false},{"title":"temp.jpg <span style='color:#111;'> 8.32KB </span>","children":null,"spread":false},{"title":"LuckyDetection.cpp <span style='color:#111;'> 4.23KB </span>","children":null,"spread":false},{"title":"test.txt <span style='color:#111;'> 122B </span>","children":null,"spread":false},{"title":"LuckyDetection.vcxproj.user <span style='color:#111;'> 237B </span>","children":null,"spread":false},{"title":"lucky1.jpg <span style='color:#111;'> 342.33KB </span>","children":null,"spread":false},{"title":"stdafx.h <span style='color:#111;'> 2.84KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"Toolbar.bmp <span style='color:#111;'> 598B </span>","children":null,"spread":false},{"title":"Toolbar256.bmp <span style='color:#111;'> 2.92KB </span>","children":null,"spread":false},{"title":"LuckyDetection.ico <span style='color:#111;'> 66.19KB </span>","children":null,"spread":false},{"title":"LuckyDetection.rc2 <span style='color:#111;'> 684B </span>","children":null,"spread":false}],"spread":false},{"title":"x64","children":[{"title":"Debug","children":[{"title":"tessdata","children":[{"title":"configs","children":[{"title":"kannada <span style='color:#111;'> 101B </span>","children":null,"spread":false},{"title":"quiet <span style='color:#111;'> 21B </span>","children":null,"spread":false},{"title":"api_config <span style='color:#111;'> 26B </span>","children":null,"spread":false},{"title":"ambigs.train <span style='color:#111;'> 146B </span>","children":null,"spread":false},{"title":"pdf <span style='color:#111;'> 46B </span>","children":null,"spread":false},{"title":"bigram <span style='color:#111;'> 129B </span>","children":null,"spread":false},{"title":"hocr <span style='color:#111;'> 64B </span>","children":null,"spread":false},{"title":"digits <span style='color:#111;'> 37B </span>","children":null,"spread":false},{"title":"box.train.stderr <span style='color:#111;'> 355B </span>","children":null,"spread":false},{"title":"txt <span style='color:#111;'> 166B </span>","children":null,"spread":false},{"title":"lstm.train <span style='color:#111;'> 328B </span>","children":null,"spread":false},{"title":"tsv <span style='color:#111;'> 46B </span>","children":null,"spread":false},{"title":"box.train <span style='color:#111;'> 355B </span>","children":null,"spread":false},{"title":"logfile <span style='color:#111;'> 25B </span>","children":null,"spread":false},{"title":"linebox <span style='color:#111;'> 70B </span>","children":null,"spread":false},{"title":"strokewidth <span style='color:#111;'> 377B </span>","children":null,"spread":false},{"title":"inter <span style='color:#111;'> 59B </span>","children":null,"spread":false},{"title":"makebox <span style='color:#111;'> 26B </span>","children":null,"spread":false},{"title":"rebox <span style='color:#111;'> 65B </span>","children":null,"spread":false},{"title":"unlv <span style='color:#111;'> 46B </span>","children":null,"spread":false}],"spread":false},{"title":"tessconfigs","children":[{"title":"matdemo <span style='color:#111;'> 243B </span>","children":null,"spread":false},{"title":"batch <span style='color:#111;'> 50B </span>","children":null,"spread":false},{"title":"segdemo <span style='color:#111;'> 329B </span>","children":null,"spread":false},{"title":"nobatch <span style='color:#111;'> 1B </span>","children":null,"spread":false},{"title":"batch.nochop <span style='color:#111;'> 37B </span>","children":null,"spread":false},{"title":"msdemo <span style='color:#111;'> 402B </span>","children":null,"spread":false}],"spread":false},{"title":"myself.traineddata <span style='color:#111;'> 166.87KB </span>","children":null,"spread":false},{"title":"eng.user-words <span style='color:#111;'> 27B </span>","children":null,"spread":false},{"title":"eng.traineddata <span style='color:#111;'> 30.40MB </span>","children":null,"spread":false},{"title":"osd.traineddata <span style='color:#111;'> 10.07MB </span>","children":null,"spread":false},{"title":"chi_sim.traineddata <span style='color:#111;'> 50.22MB </span>","children":null,"spread":false},{"title":"eng.user-patterns <span style='color:#111;'> 33B </span>","children":null,"spread":false},{"title":"equ.traineddata <span style='color:#111;'> 2.15MB </span>","children":null,"spread":false},{"title":"pdf.ttf <span style='color:#111;'> 572B </span>","children":null,"spread":false}],"spread":false},{"title":"vc141.pdb <span style='color:#111;'> 8.64MB </span>","children":null,"spread":false},{"title":"LuckyDetection.log <span style='color:#111;'> 395B </span>","children":null,"spread":false},{"title":"LuckyDetection.tlog","children":[{"title":"LuckyDetection.lastbuildstate <span style='color:#111;'> 224B </span>","children":null,"spread":false},{"title":"rc.command.1.tlog <span style='color:#111;'> 552B </span>","children":null,"spread":false},{"title":"CL.read.1.tlog <span style='color:#111;'> 141.95KB </span>","children":null,"spread":false},{"title":"link.read.1.tlog <span style='color:#111;'> 7.76KB </span>","children":null,"spread":false},{"title":"rc.read.1.tlog <span style='color:#111;'> 3.92KB </span>","children":null,"spread":false},{"title":"link.write.1.tlog <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"CL.write.1.tlog <span style='color:#111;'> 2.83KB </span>","children":null,"spread":false},{"title":"link.command.1.tlog <span style='color:#111;'> 2.27KB </span>","children":null,"spread":false},{"title":"CL.command.1.tlog <span style='color:#111;'> 3.04KB </span>","children":null,"spread":false},{"title":"rc.write.1.tlog <span style='color:#111;'> 350B </span>","children":null,"spread":false}],"spread":false},{"title":"vc141.idb <span style='color:#111;'> 3.35MB </span>","children":null,"spread":false},{"title":"LuckyDetectionDlg.obj <span style='color:#111;'> 736.64KB </span>","children":null,"spread":false},{"title":"LuckyDetection.pch <span style='color:#111;'> 54.75MB </span>","children":null,"spread":false},{"title":"LuckyDetection.obj <span style='color:#111;'> 97.68KB </span>","children":null,"spread":false},{"title":"LuckyDetection.res <span style='color:#111;'> 68.29KB </span>","children":null,"spread":false},{"title":"stdafx.obj <span style='color:#111;'> 997.47KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"号码区域.jpg <span style='color:#111;'> 35.54KB </span>","children":null,"spread":false},{"title":"stdafx.cpp <span style='color:#111;'> 238B </span>","children":null,"spread":false},{"title":"LuckyDetection.vcxproj <span style='color:#111;'> 10.29KB </span>","children":null,"spread":false},{"title":"LuckyDetection.aps <span style='color:#111;'> 107.13KB </span>","children":null,"spread":false},{"title":"LuckyDetection.h <span style='color:#111;'> 896B </span>","children":null,"spread":false},{"title":"targetver.h <span style='color:#111;'> 370B </span>","children":null,"spread":false}],"spread":false},{"title":"tesseract2.props <span style='color:#111;'> 939B </span>","children":null,"spread":false},{"title":"Debug","children":null,"spread":false},{"title":".vs","children":[{"title":"LuckyDetection","children":[{"title":"v15","children":[{"title":"ipch","children":[{"title":"bb3cc511b6b92d6c.ipch <span style='color:#111;'> 110.13MB </span>","children":null,"spread":false},{"title":"29d8dc234d51b42a.ipch <span style='color:#111;'> 128.56MB </span>","children":null,"spread":false}],"spread":true},{"title":".suo <span style='color:#111;'> 51.00KB </span>","children":null,"spread":false},{"title":"Browse.VC.db <span style='color:#111;'> 87.53MB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"x64","children":[{"title":"Debug","children":[{"title":"LuckyDetection.ilk <span style='color:#111;'> 4.35MB </span>","children":null,"spread":false},{"title":"pvt.cppan.demo.png-1.6.28.dll <span style='color:#111;'> 412.00KB </span>","children":null,"spread":false},{"title":"pvt.cppan.demo.tiff-4.0.7.dll <span style='color:#111;'> 885.00KB </span>","children":null,"spread":false},{"title":"pvt.cppan.demo.madler.zlib-1.2.11.dll <span style='color:#111;'> 204.00KB </span>","children":null,"spread":false},{"title":"pvt.cppan.demo.jpeg-9.2.0.dll <span style='color:#111;'> 538.00KB </span>","children":null,"spread":false},{"title":"libtesseract-4.dll <span style='color:#111;'> 8.61MB </span>","children":null,"spread":false},{"title":"pvt.cppan.demo.webp-0.6.0.dll <span style='color:#111;'> 1.20MB </span>","children":null,"spread":false},{"title":"LuckyDetection.pdb <span style='color:#111;'> 6.20MB </span>","children":null,"spread":false},{"title":"LuckyDetection.exe <span style='color:#111;'> 355.50KB </span>","children":null,"spread":false},{"title":"pvt.cppan.demo.xz_utils.lzma-5.2.2.dll <span style='color:#111;'> 446.00KB </span>","children":null,"spread":false},{"title":"pvt.cppan.demo.danbloomberg.leptonica-1.74.1.dll <span style='color:#111;'> 4.66MB </span>","children":null,"spread":false},{"title":"pvt.cppan.demo.openjpeg.openjp2-2.1.2.dll <span style='color:#111;'> 591.00KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"LuckyDetection.sln <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明