admin管理员组文章数量:1389772
I'm working on a reactjs project for a few months now one module requires some image processing. So, I would like to know how can I integrate openCV with reactjs. I can't find any articles, documentations for the same.
I'm working on a reactjs project for a few months now one module requires some image processing. So, I would like to know how can I integrate openCV with reactjs. I can't find any articles, documentations for the same.
Share Improve this question asked May 12, 2021 at 7:21 aishcriptaishcript 5831 gold badge15 silver badges31 bronze badges2 Answers
Reset to default 2Have you tried to implement TensorFlow models instead of openCV to your ReactJS project?
Try checking out TensorFlow.js(website:https://www.tensorflow/js) They have JavaScript patible CV models. Maybe that's easier to implement than openCV.
I have pleted several projects with TensorFlow.js and ReactJS. They work fine together.
You can use opencv.js for this. Unfortunately there isn't any NPM packages. However you can import it the same way as you would with an NPM package. Just in this case you need to manually download and add opencv.js to your project.
However, opencv.js is huge so I would remend using a CDN for it.
Here is a link for the NodeJS tutorials of the documentation: https://docs.opencv/3.4/dc/de6/tutorial_js_nodejs.html
Further more I would not remend it on a frontend application. Because of the size and putational power it needs. You could set up a backend API for it with NodeJS
本文标签: javascriptHow do I integrate openCV in reactjs projectStack Overflow
版权声明:本文标题:javascript - How do I integrate openCV in reactjs project? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744687442a2619789.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论