Skip to content

mtcnn-tfjs 1.0.7

Install from the command line:
Learn more about npm packages
$ npm install @whoisltd/mtcnn-tfjs@1.0.7
Install via package.json:
"@whoisltd/mtcnn-tfjs": "1.0.7"

About this version

mtcnn-tfjs

Implement mtcnn with Tensorflow.js

CodeFactor

What is this?

A face detection framework with MTCNN and Tensorflow.js

Give me a ⭐️, if you like it ❤️

(Currently, framework is only accepted to detect one face, i'll update soon)

Installation

Run:

npm install whoisltd/mtcnn-tfjs

Use:

const mtcnn = require('@whoisltd/mtcnn-tfjs');

const pnet_url = 'https://storage.googleapis.com/my-mtcnn-models/final_model/pnet/model.json'

const rnet_url = 'https://storage.googleapis.com/my-mtcnn-models/final_model/rnet/model.json'

const onet_url = 'https://storage.googleapis.com/my-mtcnn-models/final_model/onet/model.json'

const model = new mtcnn.MTCNN(pnet_url, rnet_url, onet_url)

//Draw bounding boxes on image:
model.draw_img(url_img, url_output);

//Crop face from image:
model.crop_face(url_img, url_output, true);

//Get bounding boxes, landmarks, score:
model.detect(url_img);

Demo

Contribution

Pull request is welcome!

Details


Assets

  • mtcnn-tfjs-1.0.7-npm.tgz

Download activity

  • Total downloads 0
  • Last 30 days 0
  • Last week 0
  • Today 0