Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zy445566/get-face


https://github.com/zy445566/get-face

Last synced: 21 days ago
JSON representation

Awesome Lists containing this project

README

        

# get-face
use wasm opencv.js to get face!

# use
```sh
npm i get-face
```

# example
```js
const getFace = require('get-face');
const fs = require('fs');
const faceImgBufList = await getFace.getFace(fs.readFileSync('./imgInput.jpg'),'image/jpeg');
for(let i=0;i> (face photo's buffer )
|ParamName |Must|Type|Default|Remark|
|:---- |:---|:----- |:----- |----- |
|srcBuffer |yes |Buffer | / | photo's buffer |
|mime |no |string | "image/jpeg" |alltype: "image/png","image/jpeg","image/bmp" |
|top |no |number | 0 | |
|right |no |number | 0 | |
|bottom |no |number | 0 | |
|left |no |number | 0 | |