ryandon.s
ryandon.s

Reputation: 35

OpenCV for web/ javascript

I have to use OpenCV in a web application. I know the Python and the C++ library but I need to use it with Express.js now. For this I need object detection, feature detection, preferably SIFT and eventually basic stuff from the machine learning module.

I looked into opencvjs project: https://github.com/ucisysarch/opencvjs, but I have some concerns with it. Has anyone experience with this one? As far as I understood I need to setup emscripten sdk which compiles the OpenCV library to javascript? I already tried another implementation in JS initially but it was running pretty slowly. Also it seems, as it does not provide extra modules for SURF or SIFT.

Upvotes: 3

Views: 2908

Answers (1)

justadudewhohacks
justadudewhohacks

Reputation: 681

Opencvjs is for the browser as far as I know. You could check out my npm package: https://github.com/justadudewhohacks/opencv4nodejs, which provides JavaScript bindings to opencv3. Machine learning is not fully implemented yet, but you can use Support Vector Machines. Also it provides HOG, face detection, feature detection and matching. If you compile the library with extra modules you can use SIFT and SURF.

You can use the package for server-side CV tasks, with express, electron or with your app running in a Docker container.

Upvotes: 3

Related Questions