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.
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 with docker
.
$ cp .env.example .env
$ vi .env
$ docker compose up