Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

face-recognition-react-native

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

face-recognition-react-native

Simple detect faces from image

  • 0.0.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11
increased by22.22%
Maintainers
1
Weekly downloads
 
Created
Source

face-recognition-react-native

Getting started

$ npm install face-recognition-react-native --save

Or

$ yarn add face-recognition-react-native

Mostly automatic installation

$ react-native link face-recognition-react-native

Manual installation

iOS
  1. Add the following to your Podfile and run pod update:
pod 'FaceRecognitionReactNative', :path => '../node_modules/face-recognition-react-native'
Android
  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import info.moonjava.face.recognition.FaceRecognitionReactNativePackage; to the imports at the top of the file
  • Add new FaceRecognitionReactNativePackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':face-recognition-react-native'
    project(':face-recognition-react-native').projectDir = new File(rootProject.projectDir, 	'../node_modules/face-recognition-react-native/android')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      implementation project(':face-recognition-react-native')
    

Usage

import {detectFaces} from "face-recognition-react-native";
detectFaces(imageUrl:string).then(result => {
            
        }, e => {
            
        });

Result Info

  • faces: Array of detected face infos

Face Info

  • rect: Rectangle of face.
  • eulerY: A face with a positive Euler Y angle is turned to the camera's right and to its left.
  • eulerZ: A face with a positive Euler Z angle is rotated counter-clockwise relative to the camera.

Rect Info

  • x
  • y
  • width
  • height

Keywords

FAQs

Package last updated on 26 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc