3

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.

1 Answer 1

3

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.

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks! Do you have a base image or example for docker?
I only have some images for different opencv3 versions for CI: hub.docker.com/r/justadudewhohacks. You can pull one of these and pull from some node base image and you should be ready to go.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.