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

PNG Image Upload Issue #80

Closed sathishsanthosam closed 8 years ago

sathishsanthosam commented 8 years ago

Hi,

I'm trying to upload a PNG image with ocr-file upload API. I'm getting 200, but the response says Error Processing Image URl. I'v attached JSfiddle to repdoduce.

Could you please let me know, what am i missing? http://jsfiddle.net/Lvc0u55v/10464/

79

Thanks and Regards, Sathish.

tleyden commented 8 years ago

No need to base64 it.

In the golang client, it:

tleyden commented 8 years ago

Check

tleyden commented 8 years ago

Closing issue because this does not appear to be a bug in open-ocr

sathishsanthosam commented 8 years ago

i'm not sedning the base 64, i'm sending the RAW data. atob($scope.getBase64Image()), would convert into Raw data.

tleyden commented 8 years ago

getBase64Image() is a terrible name for something that doesn't convert it to base64.

sathishsanthosam commented 8 years ago

sorry for the confusion i made. i was in a hurry to send the jsfiddle. I'm sending the actual data, still i'm getting the same error. please help us.