Coder Social home page Coder Social logo

tripolskypetr / node-gyp-opencv Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 49 KB

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

Shell 30.51% Python 25.48% C++ 35.53% JavaScript 8.48%
node-js node-gyp cpp opencv sift surf static-linking bash-script native-abstractions-for-node ubuntu1804

node-gyp-opencv's Introduction

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

node-gyp-opencv's People

Contributors

tripolskypetr avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.