Socket
Book a DemoInstallSign in
Socket

github.com/daominah/ocr_server

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/daominah/ocr_server

Source
Go
Version
v0.1.1
Version published
Created
Source

OCR server

Used for reading simple CAPTCHA. Powered by Tesseract 4.1.1

API

/base64 POST

Example body:

{
    "base64": "iVBORw0KGgoAAAANSUhEUgAAABYAAAAkCAMAAAC62DqvAAAAP1BMVEUAAAAkJSgjKCgoKCglJSgjJSckJSgjJSkkJCYnJycnJycqKiokJSgjJSckJSgkJCclJSglJSklJSwaGhokJSjbbGjNAAAAFHRSTlMA8joT0HDMil0hGgbVtaWVUkQpCmqOj4cAAABQSURBVCjP5cg3DoAwEATAdcSBjP//VtCVvkWixlMOPqopFL0utmayWt8ek15puibTtT/cGtki0UWQnl3Xxcj7/u2gf/EPoL+B/gHlXJcdb24oNg3pSN9UAQAAAABJRU5ErkJggg==",
    "whitelist": "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
}

base64 field can have prefix data:image/png;base64,

Install

This project Dockerfile build Tesseract from source so you can choose suitable version.

Convenient commands for dev:

docker build --tag=daominah/ocr_server .

docker rm -f ocr_server

docker run -dit --restart always --name=ocr_server -p=35735:35735 daominah/ocr_server

Config

Tesseract parameters can be changed to modify its behaviour in tesseract.cfg

Doc: Tesseract ControlParams

Source

FAQs

Package last updated on 30 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts