Spring Boot 配置 tess4j
沒有用最新版本tess4j用了3.4.7
使用maven在pom.xml中新增dependency
<dependency>
<groupId>net.sourceforge.tess4j</groupId>
<artifactId>tess4j</artifactId>
<version>3.4.7</version>
</dependency>
tessdata目錄中有需要的訓練資料,但是似乎只能指定絕對路徑,或者設定環境變數。打包在jar中好像訪問不到。
程式碼中通過以下程式碼來設定路徑
Tesseract instance = new Tesseract();
instance.setDatapath(“D:/”);
instance.doOCR(imageFile);
相關文章
- java tess4j配置Java
- Spring Boot:Spring Boot配置MybatisSpring BootMyBatis
- Spring Boot & 配置Spring Boot
- Spring Boot:Spring Boot配置SwaggerSpring BootSwagger
- spring boot 配置 JPASpring Boot
- Spring Boot核心配置Spring Boot
- Spring boot學習(二) Spring boot基礎配置Spring Boot
- Spring Boot學習筆記:Spring Boot核心配置Spring Boot筆記
- Spring Boot Security配置教程Spring Boot
- Spring Boot日誌配置Spring Boot
- Spring Boot 配置檔案Spring Boot
- Spring Boot中配置 AuditListenerSpring Boot
- 【Spring Boot】yaml配置注入Spring BootYAML
- Spring boot學習(九)Spring boot配置郵件傳送Spring Boot
- Spring boot學習(八)Spring boot配置ehcache快取框架Spring Boot快取框架
- spring boot 配置外接tomcatSpring BootTomcat
- Spring Boot 支援 JSP配置Spring BootJS
- 玩轉spring boot——properties配置Spring Boot
- Spring Boot 自動配置原理Spring Boot
- Spring Boot + Mybatis + Spring MVC環境配置(三):DataSource配置Spring BootMyBatisMVC
- Spring Boot + Mybatis + Spring MVC環境配置(二):Mybatis Generator配置Spring BootMyBatisMVC
- Spring Boot Reactor Netty配置 | BaeldungSpring BootReactNetty
- Spring Boot + MYSQL + Docker的配置 - DEVSpring BootMySqlDockerdev
- Spring Boot 配置介面 WebMvcConfigurerSpring BootWebMVC
- Spring Boot核心原理-自動配置Spring Boot
- spring boot配置檔案相關Spring Boot
- Spring Boot 配置檔案總結Spring Boot
- Spring Boot - Profile不同環境配置Spring Boot
- 使用Spring Boot整合Apollo配置中心Spring Boot
- Spring Boot配置類的註解Spring Boot
- Spring Boot + Mybatis + Spring MVC環境配置(一) :Spring Boot初始化,依賴新增Spring BootMyBatisMVC
- Spring Boot 外部化配置實戰解析Spring Boot
- spring boot基於Java的容器配置Spring BootJava
- Spring Boot外部化配置實戰解析Spring Boot
- Spring Boot 配置 Quartz 定時任務Spring Bootquartz
- Spring Boot 自動配置 原始碼分析Spring Boot原始碼
- spring boot(二)配置資訊的讀取Spring Boot
- Spring Boot 靜態資源配置 A卷Spring Boot