Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/upload results are not in JSON format #3

Closed
hakim89 opened this issue Jul 25, 2015 · 1 comment
Closed

/upload results are not in JSON format #3

hakim89 opened this issue Jul 25, 2015 · 1 comment

Comments

@hakim89
Copy link
Contributor

hakim89 commented Jul 25, 2015

I see you specify in Readme.md that posting to /upload will return JSON data.
the code here returns a string not a JSON string.
am i missing something ?

# do OCR, print result
global wrapper
result = wrapper.imageFileToString(tmpFilePath)

# remove tmp image file
self.cleanup(tmpFilePath)

if "." not in result and " " in result:
    result = result.replace(" ", ".")
else:
    result = result.replace(" ", "")
self.write(result)
self.write("")
@guitarmind
Copy link
Owner

Fixed in version 0.0.4 now :) Thanks for the report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants