ocr

Implementing TensorFlow Attention OCR on iOS

家住魔仙堡 提交于 2019-12-25 09:24:46
问题 I have successfully trained (using Inception V3 weights as initialization) the Attention OCR model described here: https://github.com/tensorflow/models/tree/master/attention_ocr and frozen the resulting checkpoint files into a graph. How can this network be implemented using the C++ API on iOS? Thank you in advance. 回答1: As suggested by others you can use some existing iOS demos (1, 2) as a starting point, but pay close attention to the following details: Make sure you use the right tools to

私有云化证件识别

纵饮孤独 提交于 2019-12-25 03:55:45
证件OCR介绍移动端证件识是开发的基于移动平台的证件识别/证件OCR应用程序,支持Android、iOS等多种主流移动操作系统。该产品采用手机、平板电脑摄像头拍摄证件图像,然后通过OCR软件对证件信息进行识别提取。企业可将该识别服务部署在自有服务器上(云服务器或本地服务器),部署完成后,APP端、PC客户端、web端、微信H5端等均可发送识别请求,通过Web Service接口调用该识别服务,上传证件图像在服务器端完成识别后,返回标准XML识别结果,整个识别过程均在企业内网完成,保证数据的安全性。二、证件识别/证件OCR功能介绍1、证件识别/证件OCR支持180度、90度自动旋转功能2、证件识别/证件OCR支持复杂背景(如将证件拿在手中)裁边3、证件识别/证件OCR支持自动倾斜校正功能,提高识别率4、证件识别/证件OCR识别结果后处理,对识别结果增加规则,提高识别率5、证件识别/证件OCR规范的拍摄有助于提高识别率三、证件识别/证件OCR参数1、证件识别/证件OCR支持平台Android2.3以上、iOS6.0以上,windows 32/64(Windows Service 08、12) 、Linux32/64(Ubuntu、CentOS、RedHat)2、证件识别/证件OCR支持二次开发提供Android开发JAR包,iOS平台.a静态库开发包,提供WebService、Rest

Fatal signal 11 (SIGSEGV) Error in Tesseract

核能气质少年 提交于 2019-12-25 03:44:43
问题 I have developing an android ocr app with Tesseract Library. And I build the project with ndk-build. And I created my project and placed the eng.trainneddata(version 3.02) in the assets folder of my application and when I started my application I copied the file to the tessdata folder into my folder tivs . And i emulated into my one of the device with 1GB of RAM and 900MB free space of my phone it works perfectly. I tested that in my another device (Moto e) it tells the error Fatal signal 11

Tesseract improvements and image pre-processing steps

喜欢而已 提交于 2019-12-25 03:24:40
问题 I am working on Tesseract library and below is the input for the Tesseract, At the initial step of implementation I have used only the "MRZ" zone of the ID card. But the actual intention is to scan the entire document and get all the texts in the ID card. I have gone through this document and to improve quality of Tesseract th first step is the image should be 300 dpi. 1) How to convert the captured camera image in ios to 300 dpi? 2) What should be the best contrast and brigtness level for

ImageMagick remove background noise

坚强是说给别人听的谎言 提交于 2019-12-24 23:12:29
问题 In order to be better prepared for the OCR process, I want to remove the background noise on my images(typically this is a scanned image). This is the example: Is there with magick.exe command any approaches how to remove the noise from the images like this? If so, could you please show an example. UPDATED I use ImageMagick-7.0.7-Q16 on Windows 10 回答1: Use -connected-components in ImageMagick to reduce the noise. (Unix syntax) convert \ 3foBc.png -threshold 60% \ -define connected-components

How to split noise and text from the image for preprocessing of OCR

不羁岁月 提交于 2019-12-24 18:26:35
问题 I am applying OCR against subtitle in TV footage. (I am using Tesseact 3.x w/ C++) I am trying to split text and background part as a preprocessing of OCR. Here's the original image: And, preprocessed image: The OCR result is: Sicemn clone As the above preprocessed image shown, there're some "fog" remained around the letter which prevents OCR module to do their job properly. Is there any way to recognize those "fog" programatically to remove, or do some image processing to remove/reduce it

安卓使用百度SDK完成OCR文字识别(二)

纵然是瞬间 提交于 2019-12-24 18:00:24
前言 上一篇完成了初步实现,当时说了要尽快加上相机拍照功能,于是乎,今天我又来啦。 上一篇的链接 ,已经不记得的小伙伴可以查看出处。 首先我还是对上篇进行一下部分的总结,可能误导了一部分人,我引入的ocr-ui包没有使用,确实,大家可以去掉,我本来没看包里什么内容就先引用过来了,后来才发现根本没用到0_0,其次类很简单也只有两个 Mainactivity和SimpleTextActivity,多余的东西可以去掉。 话不多说看代码 此次代码就只贴SimpleTextActivity部分内容了,因为这次的代码里面有很多注释内容,就是我尝试了种处理方法,但是没有必要,所以都注释了,但是这些代码在别的地方可能需要,我并没有删除,方便自己下次记忆。对于大家来说没有必要看这些乱七八糟的灰色注释,于是我节选有用的代码给大家分享一哈。 //从相册选取图片 findViewById(R.id.enhanced_photo).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { if (hasPermission()) { Intent intent = new Intent(Intent.ACTION_PICK, null); intent.setDataAndType

ICR for machine printed text?

£可爱£侵袭症+ 提交于 2019-12-24 13:55:08
问题 I know ICR is basically used for handwritten(hand printed) data recognition but can we leverage ICR to extract distorted(bad quality) machine printed text by any chance ? if not what is best way to solve the following problem I have a unstructured document which may run into 2 or more pages, with in the document there are few date field which will be handwritten.now I want to convert this to text file. I have tried some fullpage ocr(omnipage and abbyy etc) tools which have ICR modules to

迁移ocr,vote,data到新的磁盘组

余生长醉 提交于 2019-12-24 12:50:09
背景: 原来服务器连接的存储性能低下,现在需要使用一套新的存储.数据库为linux rac 11.2.0.4. 采用挂载新的磁盘组,手工切换ocr,vote disk和数据盘的方式进行迁移.下面的具体步骤 前提: 需要将新的磁盘组创建完成.下面就不描述创建新磁盘组的过程. 一.检查环境信息 1.检查当前的磁盘组,如下: [grid@suq1 suq1]$ asmcmd ASMCMD> lsdg State Type Rebal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name MOUNTED EXTERN N 512 4096 1048576 3435 3329 0 3329 0 N BACKUP/ MOUNTED NORMAL N 512 4096 1048576 12288 6276 0 3138 0 N DATANEW/ MOUNTED EXTERN N 512 4096 1048576 12288 12193 0 12193 0 N LASTDATA/ MOUNTED NORMAL N 512 4096 1048576 6144 5859 2048 1905 0 N LASTOCR/ MOUNTED EXTERN N 512 4096

Android: NullPointerException error

冷暖自知 提交于 2019-12-24 11:44:39
问题 I know it is dull to ask answers for a NullPointerException, and there are similar questions out there. However, I just cannot find a solution for my problem from the other questions. I have 2 classes: CreateContactActivityl.java: Passes intent of a text output to RegexOCR1.java RegexOCR1.java: Receives the text output, pass text output into a method that is within this class The error occurs in RegexOCR1.java as stated by the logcat: Fatal Exception: java.lang.RuntimeException: Unable to