Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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)

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