tleyden / open-ocr

Run your own OCR-as-a-Service using Tesseract and Docker
Apache License 2.0
1.33k stars 223 forks source link

Support file upload in addition to a file URL #7

Closed tleyden closed 10 years ago

tleyden commented 10 years ago

Feature request from @barrypitman on twitter:

tleyden commented 10 years ago

Agreed this is needed.

As a temporary workaround, here's one easy way to get the file into the cloud:

curl -F file="@result.png" http://filebin.ca/upload.php

where you would replace result.png with your image file.

The response will look something like:

status:1TtpEiq1JfRC
url:http://filebin.ca/1TtpEiq1JfRC/result.png

and the image will be available at the url returned in the url field.

tleyden commented 10 years ago

Status update: the code is on the master branch and working.

Still pending:

tleyden commented 10 years ago

Brand new REST api docs w/ example: http://docs.openocr.apiary.io/