Skip to content

I created a simple script which will compile OpenCV 3.4 with opencv_contrib (SIFT, SURF available) for linking with Native Abstractions for Node.js on Ubuntu 18.04

Notifications You must be signed in to change notification settings

tripolskypetr/node-gyp-opencv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-gyp-opencv

Most basic example of adding an OpenCV C++ add-on into node.js

This example will help you to to get started with your computer vision project by linking OpenCV 3.4 with Native Abstractions for Node.js. Includes "opencv_contrib" so SIFT and SURF are available

Target platform

Tested on Ubuntu 18.04. The tmp contains OpenCV 3.4 precompiled binaries in build zip archive. So if you are going to drive into development as fast as possible, you should

sudo apt update
sudo apt install unzip
unzip ../build.zip && cd build
sudo make install
sudo sh -c 'echo "/usr/local/lib" > /etc/ld.so.conf.d/opencv.conf' 
sudo ldconfig

Usage

npm run install:opencv
cd packages/client
npm install
npm start

SIFT becomes free

U.S. patents are valid for 20 years from the earliest filing date, but can be extended to 21 years if a Priority Date is used, and SIFT (US6711293B1) was filed (with priority) on 1999-03-08. This means that usage of the SIFT algorithm is no longer requires a license for use.

Source

About

I created a simple script which will compile OpenCV 3.4 with opencv_contrib (SIFT, SURF available) for linking with Native Abstractions for Node.js on Ubuntu 18.04

Topics

Resources

Stars

Watchers

Forks