@edgeros/ofii
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

ofii

Obtaining facial information from images for EdgerOS APP.

facenn 模块的 detect() 方法和 feature() 方法支持从视频流中截取图像帧以解析人脸特征信息,但是有时候我们需要从单张图片中解析人脸信息,此时就需要我们使用 imagecodec 模块手动将图片进行转码。 这里将整个流程封装成为一个包,以方便解析过程。

Install

npm install @edgeros/ofii

Usage

import getFaceFeature from '@edgeros/ofii'
const imageBuffer = fs.readFile('./dog.png')
const keys = getFaceFeature(imageBuffer)
// 如果没有检测到人脸信息则返回 []

Todo

[ ] support image url.

Readme

Keywords

Package Sidebar

Install

npm i @edgeros/ofii

Weekly Downloads

6

Version

1.0.0

License

Apache-2.0

Unpacked Size

2.52 kB

Total Files

4

Last publish

Collaborators

  • clarkttfu
  • fu-starslights
  • epmbot
  • xieyuanbin
  • chengyonbin