face-classification-js icon indicating copy to clipboard operation
face-classification-js copied to clipboard

Create node module

Open bluenex opened this issue 6 years ago • 1 comments

We should create node module out of this project. Let's discuss how we should make it.

  • what should be the module name?
  • what functions should be available?
  • should it be in a class?

For example, the simplest function could be:

import { FaceDetector as fd } from 'face-classification-js';

const result = fd.classifyFace('image-of-face.png');

console.log(result.emotion);

Let's gather more information about this @kittinan @titipata @bachkukkik!

bluenex avatar Dec 17 '18 06:12 bluenex

Face image input must have size 64x64 px, see this file for preprocessing util.js

kittinan avatar Dec 17 '18 07:12 kittinan