{"id":17842132,"url":"https://github.com/yangboz/spring-boot-ocr-restful-swagger","last_synced_at":"2025-06-30T07:35:20.424Z","repository":{"id":25337183,"uuid":"28764485","full_name":"yangboz/spring-boot-ocr-restful-swagger","owner":"yangboz","description":"Spring-boot with OCRs(tesseract)","archived":false,"fork":false,"pushed_at":"2018-12-21T02:24:45.000Z","size":92638,"stargazers_count":3,"open_issues_count":0,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-02T09:38:27.008Z","etag":null,"topics":["java","ocr","spring-boot","swagger","tesseract-ocr"],"latest_commit_sha":null,"homepage":"http://smartkit.tech","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yangboz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-04T04:52:59.000Z","updated_at":"2020-05-30T04:35:00.000Z","dependencies_parsed_at":"2022-08-23T05:40:23.970Z","dependency_job_id":null,"html_url":"https://github.com/yangboz/spring-boot-ocr-restful-swagger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yangboz/spring-boot-ocr-restful-swagger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangboz%2Fspring-boot-ocr-restful-swagger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangboz%2Fspring-boot-ocr-restful-swagger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangboz%2Fspring-boot-ocr-restful-swagger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangboz%2Fspring-boot-ocr-restful-swagger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yangboz","download_url":"https://codeload.github.com/yangboz/spring-boot-ocr-restful-swagger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangboz%2Fspring-boot-ocr-restful-swagger/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262731853,"owners_count":23355436,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","ocr","spring-boot","swagger","tesseract-ocr"],"created_at":"2024-10-27T21:09:58.523Z","updated_at":"2025-06-30T07:35:20.387Z","avatar_url":"https://github.com/yangboz.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"laughing-bear\n=============\n\nSpring-boot+SwaggerUI+Tesseract-ocr.\n\nTesseract\n=============\n\n```\nbrew install tesseract --with-all-languages \n```\n\n```\nexport TESSDATA_PREFIX=/usr/local/Cellar/tesseract/3.05.01/share/tessdata\n```\n\nCommandline Example with parametertes:\n\n```\ntesseract input.jpeg output --oem 1 -l eng\n```\n\nMvn\n=============\n\n```\nmvn spring-boot:run -Dspring.profiles.active=dev -DTESSDATA_PREFIX=/Users/yangboz/git/laughing-bear/src/main/resources/tessdata/\n```\n\nMicroService\n=============\n\n\n\nSwagger UI\n=============\n\nhttp://localhost:8083/api/swagger-ui.html\n\nCurl\n=============\n\n```\ncurl -i -X POST -H \"Content-Type: multipart/form-data\" -F \"file=@raw_ocr.png\" http://localhost:8083/api/info/smartkit/orc/tesseract\n```\n\nTODO\n============\n\nOCR v4: \n\nhttps://www.pyimagesearch.com/2018/09/17/opencv-ocr-and-text-recognition-with-tesseract/\n\nhttps://www.pyimagesearch.com/2018/08/20/opencv-text-detection-east-text-detector/\n\nReference\n=============\n\nhttps://code.google.com/p/tesseract-ocr/\n\nhttp://tess4j.sourceforge.net/\n\nhttps://github.com/tesseract-ocr/tesseract/wiki\n\nhttps://github.com/tesseract-ocr/tessdata\n\nhttp://www.baeldung.com/swagger-2-documentation-for-spring-rest-api\n\nhttps://medium.com/@balaajip/optical-character-recognition-99aba2dad314\n\nhttps://github.com/tesseract-ocr/tesseract/wiki/Command-Line-Usage\n\nKnow Issues\n==============\n\nhttps://github.com/nguyenq/tess4j/issues/34\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyangboz%2Fspring-boot-ocr-restful-swagger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyangboz%2Fspring-boot-ocr-restful-swagger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyangboz%2Fspring-boot-ocr-restful-swagger/lists"}