PeculiarVentures/GammaCV

Maybe just a dumb doubt

Fercho120 opened this issue · 3 comments

Hi I'm quite new to web development and I have a doubt: As I understand GammaCV works on front-end, using WebGL, WASM, etc. but tutorial says that I must install it using node's package manager npm?! I though node.js was a back-end technology.
Should I use a node-based local server for installing it and then loading the result on my webpage?
I'm quite confused as my closest experience is using OpenCv.js which I could include into my page via their nightly release at their CDN or compiling the files myself using Emscripten and then uploading it to the server.

How can I include your library on my project?

Sorry if this question is dumb but I'm quite confused, however maybe you could help some noobs like me on starting using your library if this kind of obvious steps are shown on the tutorial.

Thank you for your work!

If you don't want to use npm for your frontend, you are able to download the latest release from https://github.com/PeculiarVentures/GammaCV/releases. You are interested in dist.zip.
Then you could connect as a script:

<script src="index.min.js"></script>

The global object gm will appear for your usage as soon as the script loaded. So you could use lib like on the example:

new window.gm.Tensor('uint8', [2, 3]);

The solution was proposed, closing since inactive.
Feel free to reopen the issue if you have related questions about the GammaCV library.