Comments (7)
Do you mean file upload of image via multipart/related
as described in #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.
from open-ocr.
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.
from open-ocr.
Here's what I would suggest:
- Run this code in open-ocr-client against your api server running on tutum
- Make sure it actually works (now you know the server side is working for sure)
- Record the traffic via HTTPScoop or Charles Proxy
- Write your own client code to do the same request
- If things don't work, record the traffic and compare it with the previous recorded traffic to see what is different.
I'll close the ticket, feel free to re-open it if you find issues.
from open-ocr.
@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.
from open-ocr.
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 [email protected]
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
#12 (comment).
the news wire of the 21st century - twitchy.com
from open-ocr.
Why did you post a reply about couchbase-lite? Was that a mistake? I don't see the connection to the question.
from open-ocr.
@mcqueenorama weird, must have been a copy/paste error. Working on Couchbase Lite is my day job.
from open-ocr.
Related Issues (20)
- Curl on Windows
- memory consumption HOT 13
- psm argument doesn't work with Tesseract 4.0 HOT 8
- Java client for open-OCR HOT 1
- Can we use preprocessors with multipart requests?
- No default machine exists
- curl: (7) Failed to connect to 192.168.99.100 port 9292: Connection refused on Mac OSX HOT 1
- upload
- Unable to perform OCR decode. Error: Get : unsupported protocol scheme ""
- Using the PDF pre-processor HOT 13
- Pin dependencies with Go modules
- Non-English Error
- error connecting to rabbitmq dial tcp 172.19.0.2:5672: i/o timeout
- 选择 语言 HOT 2
- upload-local-file.py does not work as expected
- strokewidthtransform container craches using PDF and "stroke-width-transform"
- rpc timeout when load increases on kubernetes cluster
- Use links HOT 1
- convert-pdf error
- Launch in Google Cloud Run
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from open-ocr.