Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

node-picojs

yrq1104MIT0.0.4

using picojs easily in node

readme

node-picojs

Make using picojs feel cool in Node env.

Install

npm install --save node-picojs
# or
yarn add node-picojs

Usage

const pico = require('node-picojs')
const qThreshold = 10.0; // default is 5.0
const IoU = 0.3; // default is 0.2
pico.face_detection('image_file.jpg', qThreshold, IoU),then(response => {
  /**
   * Ref to picojs doc: 
   * The array response contains quadruplets of the form(r, c, s, q), where r, c and s specify 
   * the position (row, column) and size of face region, and q represents the detection score. 
   * The higher the score of the region, the more likely it is a face. 
  */
  console.log('face detection results: ', response)
})

Feature

  • Automatically calculate object sizes based on input image.
  • Custom qThreshold and IoU parameters