Skip to content
JavaScript HTML Makefile Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib
static
test
.dockerignore
.gitignore
.jshintignore
.jshintrc
.npmignore
.travis.yml
Dockerfile
HISTORY.md
LICENSE
Makefile
README.md
entrypoint.sh
index.js
package.json

README.md

nodecv-server

NPM version build status Test coverage node version npm download

nodecv server side

Usage

$ git clone git@github.com:macacajs/nodecv-server.git --depth=1
$ cd nodecv-server
$ npm i
$ make server

Please visit demo: http://localhost:9900/

API

POST /opencv/dissimilarity
POST /opencv/matchtemplate
POST /opencv/cascadedetect

Example:

request.post({
  url: `${remoteHost}/opencv/dissimilarity`,
  formData: formData
}, function(err, httpResponse, body) {
  if (err) {
    return console.error('upload failed:', err);
  }
  console.log('Server responded with:', body);
  try {
    const data = JSON.parse(body);
    console.log(`Dissimilarity is: ${data.dissimilarity}`);
  } catch (e) {
  }
});

More sample: macaca-sample

License

The MIT License (MIT)

You can’t perform that action at this time.