Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yangboz/spring-boot-ocr-restful-swagger
Spring-boot with OCRs(tesseract)
https://github.com/yangboz/spring-boot-ocr-restful-swagger
java ocr spring-boot swagger tesseract-ocr
Last synced: 23 days ago
JSON representation
Spring-boot with OCRs(tesseract)
- Host: GitHub
- URL: https://github.com/yangboz/spring-boot-ocr-restful-swagger
- Owner: yangboz
- License: apache-2.0
- Created: 2015-01-04T04:52:59.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-12-21T02:24:45.000Z (almost 6 years ago)
- Last Synced: 2024-04-16T07:50:17.626Z (7 months ago)
- Topics: java, ocr, spring-boot, swagger, tesseract-ocr
- Language: Java
- Homepage: http://smartkit.tech
- Size: 88.3 MB
- Stars: 3
- Watchers: 5
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
laughing-bear
=============Spring-boot+SwaggerUI+Tesseract-ocr.
Tesseract
=============```
brew install tesseract --with-all-languages
``````
export TESSDATA_PREFIX=/usr/local/Cellar/tesseract/3.05.01/share/tessdata
```Commandline Example with parametertes:
```
tesseract input.jpeg output --oem 1 -l eng
```Mvn
=============```
mvn spring-boot:run -Dspring.profiles.active=dev -DTESSDATA_PREFIX=/Users/yangboz/git/laughing-bear/src/main/resources/tessdata/
```MicroService
=============Swagger UI
=============http://localhost:8083/api/swagger-ui.html
Curl
=============```
curl -i -X POST -H "Content-Type: multipart/form-data" -F "file=@raw_ocr.png" http://localhost:8083/api/info/smartkit/orc/tesseract
```TODO
============OCR v4:
https://www.pyimagesearch.com/2018/09/17/opencv-ocr-and-text-recognition-with-tesseract/
https://www.pyimagesearch.com/2018/08/20/opencv-text-detection-east-text-detector/
Reference
=============https://code.google.com/p/tesseract-ocr/
http://tess4j.sourceforge.net/
https://github.com/tesseract-ocr/tesseract/wiki
https://github.com/tesseract-ocr/tessdata
http://www.baeldung.com/swagger-2-documentation-for-spring-rest-api
https://medium.com/@balaajip/optical-character-recognition-99aba2dad314
https://github.com/tesseract-ocr/tesseract/wiki/Command-Line-Usage
Know Issues
==============https://github.com/nguyenq/tess4j/issues/34