Closed mcqueenorama closed 10 years ago
Do you mean file upload of image via multipart/related
as described in https://github.com/tleyden/open-ocr/issues/7? That's been recently finished and working on the master branch, ready for testing. It's not quite finished being documented though (which is why I haven't closed #7 yet)
Curl cannot do multipart/related
requests, so I can't provide a curl example. The closes thing I have to example code is here:
https://github.com/tleyden/open-ocr-client/blob/master/ocr_http_client.go#L27-L113
Essentially you make a multipart/related
POST, with the first part being the JSON, and the second part being the image data.
Yea that looks like what I want. I'll try it out locally from master. I've been using a tutem-based docker deploy. That example code should be helpful for getting it figured out better.
Here's what I would suggest:
I'll close the ticket, feel free to re-open it if you find issues.
@mcqueenorama I just added comprehensive API docs that has a built-in mocking server and traffic recorder/viewer.
Definitely check out http://docs.openocr.apiary.io/, it should make your life much easier.
Yea, that looks good! Thanks. I'll be working on it again this weekend.
On Sat, Sep 6, 2014 at 10:05 AM, Traun Leyden notifications@github.com wrote:
@mcqueenorama https://github.com/mcqueenorama I just added comprehensive API docs that has a built-in mocking server and traffic recorder/viewer.
Definitely check out http://docs.openocr.apiary.io/, it should make your life much easier.
— Reply to this email directly or view it on GitHub https://github.com/tleyden/open-ocr/issues/12#issuecomment-54720765.
the news wire of the 21st century - twitchy.com
Why did you post a reply about couchbase-lite? Was that a mistake? I don't see the connection to the question.
@mcqueenorama weird, must have been a copy/paste error. Working on Couchbase Lite is my day job.
I've never messed with Go, so I haven't figured out the code yet. The examples show it pulling images. I want to do a push - a POST with different -d '{"img_url":"http://bit.ly/ocrimage","engine":"tesseract"}' maybe. I suppose it supports that already. If not where do I look in the code to figure out how that's handled so I can tweek it.