tess-two-3.02-so-libs

上传者: sandysym | 上传时间: 2014-12-02 00:00:00 | 文件大小: 2.95MB | 文件类型: rar
----基于google tesseract-ocr-3.02版本;2012-12; ----Linux环境编译, 2014-12-01。 直接导入jar包,并把libs目录拷进项目即可使用。 ocr识别库下载 地址:: https://code.google.com/p/tesseract-ocr/downloads/list 调用示例程序: public void testGetUTF8Text() { // First, make sure the eng.traineddata file exists. final String inputText = "hello"; final Bitmap bmp = getTextImage(inputText, 640, 480); // Attempt to initialize the API. final TessBaseAPI baseApi = new TessBaseAPI(); baseApi.init(TESSBASE_PATH, DEFAULT_LANGUAGE); baseApi.setPageSegMode(TessBaseAPI.PageSegMode.PSM_SINGLE_LINE); baseApi.setImage(bmp); // Ensure that the result is correct. final String outputText = baseApi.getUTF8Text(); assertEquals("\"" + outputText + "\" != \"" + inputText + "\"", inputText, outputText); // Ensure that getHOCRText() produced a result. final String hOcr = baseApi.getHOCRText(0); assertNotNull("HOCR result found", hOcr); // Ensure getRegions() works. final Pixa regions = baseApi.getRegions(); assertEquals("Found one region", regions.size(), 1); // Ensure getWords() works. final Pixa words = baseApi.getWords(); assertEquals("Found one word", words.size(), 1); // Iterate through the results. final ResultIterator iterator = baseApi.getResultIterator(); String lastUTF8Text; float lastConfidence; int[] lastBoundingBox; int count = 0; iterator.begin(); do { lastUTF8Text = iterator.getUTF8Text(PageIteratorLevel.RIL_WORD); lastConfidence = iterator.confidence(PageIteratorLevel.RIL_WORD); lastBoundingBox = iterator.getBoundingBox(PageIteratorLevel.RIL_WORD); count++; } while (iterator.next(PageIteratorLevel.RIL_WORD)); // Attempt to shut down the API. baseApi.end(); bmp.recycle(); }

文件下载

资源详情

[{"title":"( 6 个子文件 2.95MB ) tess-two-3.02-so-libs","children":[{"title":"tess-two-3.02-so-libs","children":[{"title":"libs","children":[{"title":"armeabi-v7a","children":[{"title":"libtess.so <span style='color:#111;'> 1.85MB </span>","children":null,"spread":false},{"title":"liblept.so <span style='color:#111;'> 1.18MB </span>","children":null,"spread":false}],"spread":true},{"title":"armeabi","children":[{"title":"libtess.so <span style='color:#111;'> 1.89MB </span>","children":null,"spread":false},{"title":"liblept.so <span style='color:#111;'> 1.19MB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"tess-two.tesseract3.02-leptonica1.68-LibJPEG6b.jar <span style='color:#111;'> 27.99KB </span>","children":null,"spread":false},{"title":"README <span style='color:#111;'> 2.06KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • 小文_杠杠滴 :
    么用过,不知道咋样
    2018-09-19
  • crazykarben :
    误删,再下载一遍
    2018-04-04
  • 清风洋洋 :
    用于ocr识别,凑凑合合
    2017-11-28
  • qq_23396857 :
    用于OCR识别是可以用的
    2016-11-24
  • civic008 :
    好东西 最后就用了这个
    2016-02-28

免责申明

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