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

Callback for nodejs #22

Open
haplo31 opened this issue May 27, 2015 · 0 comments
Open

Callback for nodejs #22

haplo31 opened this issue May 27, 2015 · 0 comments

Comments

@haplo31
Copy link

haplo31 commented May 27, 2015

Hi,
I try to use your script in NodeJs but I can't integrate a callback with it.

When I make OCRAD(canvas, {numeric: true}, function(){console.log("test")})
I have an error :
/home/john/ocrad.js:1
aughtException",(function(ex){if(!(ex instanceof ExitStatus)){throw ex}}))}els
^
ReferenceError: window is not defined
at createWebWorkerFromString (/home/john/ocrad.js:43:34894)

Is it possible to call a callback after OCRAD's work is done with NodeJs ?

Thanks for your time

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