Coder Social home page Coder Social logo

push image in addition to pull about open-ocr HOT 7 CLOSED

tleyden avatar tleyden commented on July 30, 2024
push image in addition to pull

from open-ocr.

Comments (7)

tleyden avatar tleyden commented on July 30, 2024

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.

mcqueenorama avatar mcqueenorama commented on July 30, 2024

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.

tleyden avatar tleyden commented on July 30, 2024

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.

tleyden avatar tleyden commented on July 30, 2024

@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.

mcqueenorama avatar mcqueenorama commented on July 30, 2024

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.

mcqueenorama avatar mcqueenorama commented on July 30, 2024

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.

tleyden avatar tleyden commented on July 30, 2024

@mcqueenorama weird, must have been a copy/paste error. Working on Couchbase Lite is my day job.

from open-ocr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.