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

#ocr example code is syntactically incorrect #4

Open
jspillers opened this issue Jun 16, 2015 · 0 comments
Open

#ocr example code is syntactically incorrect #4

jspillers opened this issue Jun 16, 2015 · 0 comments

Comments

@jspillers
Copy link

The section of the readme containing example code for #ocr is syntactically incorrect:

client.ocr({file, remote_file_url, rectangles: [[x1,y1.x2,y2],..,[x1,y1,x2,y2]]}

file and remote_file_url I am assuming are hash keys and also the {} are not necessary (or idiomatic) when passing a hash as an argument in Ruby. The correct way to show this would be:

client.ocr(file: file, remote_file_url: url, rectangles: [[x1,y1.x2,y2],..,[x1,y1,x2,y2]])
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

1 participant