Skip to content

Cyan903/ocr-shot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ocr-shot

code-size last-commit license

A containerized wrapper for manga_ocr with an HTTP server that processes screenshots and extracts text. Includes a shell script that enables screenshots to be uploaded without saving the image to disk.

Usage

Any POST request to / with a file in the form will work. client.sh contains a script which will take a screenshot and make the request without storing the file on the disk.

$ curl --request POST \
  --url $API_URL \
  --header 'Content-Type: multipart/form-data' \
  --header 'User-Agent: insomnium/0.2.3-a' \
  --form file=@/path/to/image.png

# With the client script
$ ./src/client.sh

Setup

Setup with docker.

$ cp .env.example .env
$ vi .env
$ docker compose up

License

MIT