Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Quite useful react snippet for automatic photo capture with check of correct face position. It uses Haar-cascade in WASM (performant and can be trained instead of programmed)

License

Notifications You must be signed in to change notification settings

react-declarative/react-face-kyc

Repository files navigation

react-face-kyc

Quite useful react snippet for automatic photo capture with check of correct face position (KYC document face liveness)

It uses FaceWASM - face detection implementation based on Haar-cascades. This method is performant and can be trained instead of programmed

screenshot

Contribute

Important

Made by using react-declarative to solve your problems. ⭐Star and 💻Fork It on github will be appreciated

Usage

npm install
npm start

Code sample

export const verifyCompleteEmitter = Source.multicast(() =>
 Source
 .join([
 stateEmitter,
 Source.fromInterval(1_000),
 ])
 .reduce((acm, [{ state: isValid }]) => {
 if (isValid) {
 return acm + 1;
 }
 return 0;
 }, 0)
 .tap((ticker) => {
 if (ticker === 1) {
 recorder.beginRecord();
 }
 })
 .filter((ticker) => ticker === CC_SECONDS_TO_VERIFY)
 .tap(() => {
 recorder.endRecord();
 })
);

About

Quite useful react snippet for automatic photo capture with check of correct face position. It uses Haar-cascade in WASM (performant and can be trained instead of programmed)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /