opencv4nodejs
=============
![opencv4nodejs](https://user-images.githubusercontent.com/31125521/37272906-67187fdc-25d8-11e8-9704-40e9e94c1e80.jpg)
[![Build Status](https://travis-ci.org/justadudewhohacks/opencv4nodejs.svg?branch=master)](http://travis-ci.org/justadudewhohacks/opencv4nodejs)
[![Build status](https://ci.appveyor.com/api/projects/status/cv3o65nrosh1udbb/branch/master?svg=true)](https://ci.appveyor.com/project/justadudewhohacks/opencv4nodejs/branch/master)
[![Coverage](https://codecov.io/github/justadudewhohacks/opencv4nodejs/coverage.svg?branch=master)](https://codecov.io/gh/justadudewhohacks/opencv4nodejs)
[![npm download](https://img.shields.io/npm/dm/opencv4nodejs.svg?style=flat)](https://www.npmjs.com/package/opencv4nodejs)
[![node version](https://img.shields.io/badge/node.js-%3E=_6-green.svg?style=flat)](http://nodejs.org/download/)
[![Slack](https://slack.bri.im/badge.svg)](https://slack.bri.im/)
**opencv4nodejs allows you to use the native OpenCV library in nodejs. Besides a synchronous API the package provides an asynchronous API, which allows you to build non-blocking and multithreaded computer vision tasks. opencv4nodejs supports OpenCV 3 and OpenCV 4.**
**The ultimate goal of this project is to provide a comprehensive collection of nodejs bindings to the API of OpenCV and the OpenCV-contrib modules. To get an overview of the currently implemented bindings, have a look at the [type declarations](https://github.com/justadudewhohacks/opencv4nodejs/tree/master/lib/typings) of this package. Furthermore, contribution is highly appreciated. If you want to add missing bindings check out the <a href="https://github.com/justadudewhohacks/opencv4nodejs/tree/master/CONTRIBUTING.md"><b>contribution guide</b>.**
* **[Examples](#examples)**
* **[How to install](#how-to-install)**
* **[Usage with Docker](#usage-with-docker)**
* **[Usage with Electron](#usage-with-electron)**
* **[Usage with NW.js](#usage-with-nwjs)**
* **[Quick Start](#quick-start)**
* **[Async API](#async-api)**
* **[With TypeScript](#with-typescript)**
* **[External Memory Tracking (v4.0.0)](#external-mem-tracking)**
<a name="examples"></a>
# Examples
See <a href="https://github.com/justadudewhohacks/opencv4nodejs/tree/master/examples"><b>examples</b></a> for implementation.
### Face Detection
![face0](https://user-images.githubusercontent.com/31125521/29702727-c796acc4-8972-11e7-8043-117dd2761833.jpg)
![face1](https://user-images.githubusercontent.com/31125521/29702730-c79d3904-8972-11e7-8ccb-e8c467244ad8.jpg)
### Face Recognition with the OpenCV face module
Check out <a href="https://medium.com/@muehler.v/node-js-opencv-for-face-recognition-37fa7cb860e8"><b>Node.js + OpenCV for Face Recognition</b></a>.
![facerec](https://user-images.githubusercontent.com/31125521/35453007-eac9d516-02c8-11e8-9c4d-a77c01ae1f77.jpg)
### Face Landmarks with the OpenCV face module
![facelandmarks](https://user-images.githubusercontent.com/31125521/39297394-af14ae26-4943-11e8-845a-a06cbfa28d5a.jpg)
### Face Recognition with <a href="https://github.com/justadudewhohacks/face-recognition.js"><b>face-recognition.js</b></a>
Check out <a href="https://medium.com/@muehler.v/node-js-face-recognition-js-simple-and-robust-face-recognition-using-deep-learning-ea5ba8e852"><b>Node.js + face-recognition.js : Simple and Robust Face Recognition using Deep Learning</b></a>.
[![IMAGE ALT TEXT](https://user-images.githubusercontent.com/31125521/35453884-055f3bde-02cc-11e8-8fa6-945f320652c3.jpg)](https://www.youtube.com/watch?v=ArcFHpX-usQ "Nodejs Face Recognition using face-recognition.js and opencv4nodejs")
### Hand Gesture Recognition
Check out <a href="https://medium.com/@muehler.v/simple-hand-gesture-recognition-using-opencv-and-javascript-eb3d6ced28a0"><b>Simple Hand Gesture Recognition using OpenCV and JavaScript</b></a>.
![gesture-rec_sm](https://user-images.githubusercontent.com/31125521/30052864-41bd5680-9227-11e7-8a62-6205f3d99d5c.gif)
### Object Recognition with Deep Neural Networks
Check out <a href="https://medium.com/@muehler.v/node-js-meets-opencvs-deep-neural-networks-fun-with-tensorflow-and-caffe-ff8d52a0f072"><b>Node.js meets OpenCV’s Deep Neural Networks — Fun with Tensorflow and Caffe</b></a>.
#### Tensorflow Inception
![husky](https://user-images.githubusercontent.com/31125521/32703295-f6b0e7ee-c7f3-11e7-8039-b3ada21810a0.jpg)
![car](https://user-images.githubusercontent.com/31125521/32703296-f6cea892-c7f3-11e7-8aaa-9fe48b88fe05.jpeg)
![banana](https://user-images.githubusercontent.com/31125521/32703297-f6e932ca-c7f3-11e7-9a66-bbc826ebf007.jpg)
#### Single Shot Multibox Detector with COCO
![dishes-detection](https://user-images.githubusercontent.com/31125521/32703228-eae787d4-c7f2-11e7-8323-ea0265deccb3.jpg)
![car-detection](https://user-images.githubusercontent.com/31125521/32703229-eb081e36-c7f2-11e7-8b26-4d253b4702b4.jpg)
### Machine Learning
Check out <a href="https://medium.com/@muehler.v/machine-learning-with-opencv-and-javascript-part-1-recognizing-handwritten-letters-using-hog-and-88719b70efaa"><b>Machine Learning with OpenCV and JavaScript: Recognizing Handwritten Letters using HOG and SVM</b></a>.
![resulttable](https://user-images.githubusercontent.com/31125521/30635645-5a466ea8-9df3-11e7-8498-527e1293c4fa.png)
### Object Tracking
![trackbgsubtract](https://user-images.githubusercontent.com/31125521/29702733-c7b59864-8972-11e7-996b-d28cb508f3b8.gif)
![trackbycolor](https://user-images.githubusercontent.com/31125521/29702735-c8057686-8972-11e7-9c8d-13e30ab74628.gif)
### Feature Matching
![matchsift](https://user-images.githubusercontent.com/31125521/29702731-c79e3142-8972-11e7-947e-db109d415469.jpg)
### Image Histogram
![plotbgr](https://user-images.githubusercontent.com/31125521/29995016-1b847970-8fdf-11e7-9316-4eb0fd550adc.jpg)
![plotgray](https://user-images.githubusercontent.com/31125521/29995015-1b83e06e-8fdf-11e7-8fa8-5d18326b9cd3.jpg)
<a name="how-to-install"></a>
# How to install
``` bash
npm install --save opencv4nodejs
```
Native node modules are built via node-gyp, which already comes with npm by default. However, node-gyp requires you to have python installed. If you are running into node-gyp specific issues have a look at known issues with [node-gyp](https://github.com/nodejs/node-gyp) first.
**Important note:** node-gyp won't handle whitespaces properly, thus make sure, that the path to your project directory does **not contain any whitespaces**. Installing opencv4nodejs under "C:\Program Files\some_dir" or similar will not work and will fail with: "fatal error C1083: Cannot open include file: 'opencv2/core.hpp'"!**
On Windows you will furthermore need Windows Build Tools to compile OpenCV and opencv4nodejs. If you don't have Visual Studio or Windows Build Tools installed, you can easily install the VS2015 build tools:
``` bash
npm install --global windows-build-tools
```
## Installing OpenCV Manually
Setting up OpenCV on your own will require you to set an environment variable to prevent the auto build script to run:
``` bash
# linux and osx:
export OPENCV4NODEJS_DISABLE_AUTOBUILD=1
# on windows:
set OPENCV4NODEJS_DISABLE_AUTOBUILD=1
```
### Windows
You can install any of the OpenCV 3 or OpenCV 4 <a href="https://github.com/opencv/opencv/releases/"><b>releases</b></a> manually or via the [Chocolatey](https://chocolatey.org/) package manager:
``` bash
# to install OpenCV 4.1.0
choco install OpenCV -y -version 4.1.0
```
Note, this will come without contrib modules. To install OpenCV under windows with contrib modules you have to build the library from source or you can use the auto build script.
Before installing opencv4nodejs with an own installation of OpenCV you need to expose the following environment variables:
- *OPENCV_INCLUDE_DIR* pointing to the directory with the subfolder *opencv2* containing the header files
- *OPENCV_LIB_DIR* pointing to the lib directory containing the OpenCV .lib files
Also yo
没有合适的资源?快使用搜索试试~ 我知道了~
Node.js-opencv4nodejs-用于node.js的异步OpenCV3.xAPI
共1440个文件
png:887个
h:134个
js:125个
需积分: 41 8 下载量 161 浏览量
2019-08-10
03:49:01
上传
评论
收藏 14.16MB ZIP 举报
温馨提示
用于node.js的异步OpenCV 3.x API,包含以下示例:人脸检测,机器学习,深度神经网络,手势识别,对象跟踪,特征匹配,图像直方图
资源推荐
资源详情
资源评论
收起资源包目录
Node.js-opencv4nodejs-用于node.js的异步OpenCV3.xAPI (1440个子文件)
MatImgproc.cc 28KB
Mat.cc 25KB
imgprocConstants.cc 15KB
imgproc.cc 13KB
MatCalib3d.cc 12KB
core.cc 12KB
calib3d.cc 11KB
io.cc 9KB
SVM.cc 9KB
Contour.cc 8KB
HOGDescriptor.cc 8KB
Vec.cc 6KB
MultiTracker.cc 5KB
Facemark.cc 5KB
descriptorMatchingKnn.cc 5KB
descriptorMatching.cc 5KB
features2d.cc 5KB
coreConstants.cc 5KB
TrackerCSRTParams.cc 4KB
opencv4nodejs.cc 4KB
MSERDetector.cc 4KB
ioConstants.cc 4KB
ExternalMemTracking.cc 4KB
CustomMatAllocator.cc 3KB
CascadeClassifier.cc 3KB
Rect.cc 3KB
VideoCapture.cc 3KB
SimpleBlobDetectorParams.cc 3KB
SuperpixelSEEDS.cc 3KB
dnn.cc 3KB
Moments.cc 3KB
Net.cc 3KB
VideoWriter.cc 3KB
machinelearningConstants.cc 3KB
FacemarkLBFParams.cc 3KB
SuperpixelSLIC.cc 3KB
Point.cc 2KB
TrackerKCFParams.cc 2KB
LBPHFaceRecognizer.cc 2KB
calib3dConstants.cc 2KB
SuperpixelLSC.cc 2KB
BFMatcher.cc 2KB
OCRHMMDecoder.cc 2KB
KeyPointMatch.cc 2KB
text.cc 2KB
KeyPoint.cc 2KB
AGASTDetector.cc 2KB
FaceRecognizer.cc 2KB
FacemarkAAMParams.cc 2KB
TrackerMILParams.cc 2KB
RotatedRect.cc 2KB
GFTTDetector.cc 2KB
TrainData.cc 2KB
ORBDetector.cc 2KB
TrackerBoostingParams.cc 2KB
ParamGrid.cc 1KB
tracking.cc 1KB
AKAZEDetector.cc 1KB
DescriptorMatch.cc 1KB
BRISKDetector.cc 1KB
BackgroundSubtractorMOG2.cc 1KB
FeatureDetector.cc 1KB
BackgroundSubtractorKNN.cc 1KB
Tracker.cc 1KB
KAZEDetector.cc 1KB
FisherFaceRecognizer.cc 1KB
EigenFaceRecognizer.cc 1KB
TermCriteria.cc 1KB
TrackerMedianFlow.cc 1KB
SIFTDetector.cc 1KB
TrackerBoosting.cc 1KB
SURFDetector.cc 1KB
photo.cc 1KB
TrackerKCF.cc 1KB
SimpleBlobDetector.cc 1KB
Size.cc 1KB
OCRHMMClassifier.cc 1KB
TrackerMIL.cc 1KB
FacemarkLBF.cc 1KB
FacemarkAAM.cc 1KB
TrackerCSRT.cc 1KB
DetectionROI.cc 1KB
FASTDetector.cc 1KB
TrackerGOTURN.cc 1020B
FacemarkAAMData.cc 1003B
TrackerTLD.cc 936B
TrackerMOSSE.cc 904B
MatXimgproc.cc 750B
BackgroundSubtractor.cc 743B
StatModel.cc 728B
face.cc 717B
ximgproc.cc 566B
machinelearning.cc 396B
objdetect.cc 305B
video.cc 272B
xfeatures2d.cc 271B
photoConstants.cc 257B
Lenna.data 768KB
people.data 675KB
Dockerfile 403B
共 1440 条
- 1
- 2
- 3
- 4
- 5
- 6
- 15
资源评论
weixin_39840650
- 粉丝: 409
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功