# facial-login

> ### 安装依赖 npm install 或 yarn

Latest version **1.0.0** (published 2024-03-05) · 0 weekly downloads

## Install

```sh
npm install facial-login
pnpm add facial-login
yarn add facial-login
bun add facial-login
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; large bundle.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2024-03-05 |
| First published | 2024-03-05 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=12 |
| Dependencies | 13 |
| Unpacked size | 12 MB |
| Known vulnerabilities | 0 (+16 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | yaser.lin |

## Links

- npm: https://www.npmjs.com/package/facial-login
- npm.io page: https://npm.io/package/facial-login

## Dependencies (13)

- [env](https://npm.io/package/env.md) 0.0.2
- [next](https://npm.io/package/next.md) ^12.2.5
- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [crypto-js](https://npm.io/package/crypto-js.md) ^4.2.0
- [vue-cam-vision](https://npm.io/package/vue-cam-vision.md) 0.0.8
- [@tensorflow/tfjs](https://npm.io/package/@tensorflow/tfjs.md) ^3.20.0
- [@mediapipe/face_mesh](https://npm.io/package/@mediapipe/face_mesh.md) ^0.4.1633559619
- [@tensorflow/tfjs-core](https://npm.io/package/@tensorflow/tfjs-core.md) ^3.20.0
- [wasi_snapshot_preview1](https://npm.io/package/wasi_snapshot_preview1.md) 0.0.0-dev
- [@tensorflow/tfjs-converter](https://npm.io/package/@tensorflow/tfjs-converter.md) ^3.20.0
- [@tensorflow/tfjs-backend-wasm](https://npm.io/package/@tensorflow/tfjs-backend-wasm.md) ^3.20.0
- [@tensorflow/tfjs-backend-webgl](https://npm.io/package/@tensorflow/tfjs-backend-webgl.md) ^3.20.0
- [@tensorflow-models/face-landmarks-detection](https://npm.io/package/@tensorflow-models/face-landmarks-detection.md) ^1.0.2

## Recent versions

- 1.0.0 (latest) — 2024-03-05

## README

<!--
 * @Date: 2024-01-22 14:24:41
 * @LastEditors: yaser yaser.lin@welab-inc.com
 * @FilePath: /FaceID-H5-SDK/README.md
-->
 ### 安装依赖
 npm install 或 yarn

 ### 启动
 npm run serve

 ### 生成发布用的代码
 npm run build

### 使用方法
```js
// env     ---- 当前环境，prod时请求生产，其他默认请求测试环境(代码逻辑在src/api/base.js)
// showCam ---- 是否显示人脸识别video，默认false
// width   ---- video宽度，默认375
// height  ---- video高度，默认282
// @handleError  ---- 错误信息，{code: 状态码, message: 错误信息}
// @showTips     ---- 动作提示等提示信息， string
// @success      ---- 人脸识别成功，返回接口数据 {receipt: 照片回执,token: 人脸识别临时token}
<FacialLogin 
    :showCam = "true" 
    :width = "375"
    :height = "282"
    @handleError = "handleError"
    @showTips = "showTips"
    @success = "success"
>
</FacialLogin>
```

---
_Source: https://npm.io/package/facial-login · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
