https://github.com/tripolskypetr/node-gyp-opencv
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
https://github.com/tripolskypetr/node-gyp-opencv
bash-script cpp native-abstractions-for-node node-gyp node-js opencv sift static-linking surf ubuntu1804
Last synced: 22 days ago
JSON representation
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
- Host: GitHub
- URL: https://github.com/tripolskypetr/node-gyp-opencv
- Owner: tripolskypetr
- Created: 2021-08-02T16:49:06.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-12-21T11:59:58.000Z (over 3 years ago)
- Last Synced: 2025-02-12T10:31:01.895Z (2 months ago)
- Topics: bash-script, cpp, native-abstractions-for-node, node-gyp, node-js, opencv, sift, static-linking, surf, ubuntu1804
- Language: C++
- Homepage:
- Size: 47.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://github.com/nodejs/nan). Includes "opencv_contrib" so SIFT and SURF are available
## Target platform
Tested on Ubuntu 18.04. The [tmp](./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](https://patents.google.com/patent/US6711293B1/en)) 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](https://piero.dev/2019/04/the-sift-patent-has-expired/)