Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zy445566/get-face
https://github.com/zy445566/get-face
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/zy445566/get-face
- Owner: zy445566
- License: mit
- Created: 2020-06-03T09:41:13.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T22:09:59.000Z (over 1 year ago)
- Last Synced: 2024-10-15T21:02:15.534Z (28 days ago)
- Language: JavaScript
- Size: 2.71 MB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 | |