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

请教下,纯nodejs如何使用? 看了源码,很多地方都是网页的dom操作... #6

Open
gowy222 opened this issue Mar 2, 2024 · 3 comments

Comments

@gowy222
Copy link

gowy222 commented Mar 2, 2024

如题...因为网速不稳定,前端方式加载慢卡,所以想尝试纯后端nodejs使用...
/untils.ts 里面data2canvas函数用的是前端网页dom..

@gutenye
Copy link

gutenye commented Apr 25, 2024

Node下面不能运行: ReferenceError: document is not defined

@gutenye
Copy link

gutenye commented May 1, 2024

@gowy222 you can try this https://github.com/gutenye/ocr, runs on Node.js, Browser and React Native

@xushengfeng
Copy link
Owner

4.2.0版本支持node,需要安装canvas
https://github.com/xushengfeng/eSearch-OCR/blob/master/test/test_node.js

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

3 participants