0.8.1 • Published 6 months ago

vision-camera-face-detector-plugin v0.8.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

vision-camera-face-detector-plugin

A Face detector plugin used for react-native-vision-camera

Requirement

Android Minsdk: 26

IOS target platform: 13

Installation

npm install git+https://code.vng.vn/myVNG/vision-camera-face-detector.git#feat/v3

or

yarn add git+https://code.vng.vn/myVNG/vision-camera-face-detector.git#feat/v3

for Yarn 3+

yarn add vision-camera-face-detector-plugin@git+https://code.vng.vn/myVNG/vision-camera-face-detector.git#feat/v3

Usage

import { detectFace } from 'vision-camera-face-detector-plugin';

// ...

const frameProcessor = useFrameProcessor((frame) => {
'worklet';
const response = detectFace(frame);
}, []);

// ...

Develop

brew install jq

If you already had jq, ignore the script above:

Install dependencies

yarn

For release new version:

yarn release

Commit rule: https://github.com/conventional-changelog/commitlint/tree/master/@commitlint/config-conventional#type-enum

Run example

Android:

yarn example android

iOS:

yarn example ios

License

MIT

0.8.1

6 months ago