Gathering detailed insights and metrics for vision-camera-trustee-face-detector-v3
Gathering detailed insights and metrics for vision-camera-trustee-face-detector-v3
Gathering detailed insights and metrics for vision-camera-trustee-face-detector-v3
Gathering detailed insights and metrics for vision-camera-trustee-face-detector-v3
npm install vision-camera-trustee-face-detector-v3
Typescript
Module System
38.8
Supply Chain
54
Quality
75.4
Maintenance
50
Vulnerability
93.8
License
Java (44.26%)
Swift (35.81%)
TypeScript (12.56%)
Objective-C (3.99%)
Ruby (3.04%)
JavaScript (0.35%)
Total Downloads
5,462
Last Day
7
Last Week
51
Last Month
251
Last Year
2,957
4 Stars
43 Commits
3 Watching
1 Branches
4 Contributors
Minified
Minified + Gzipped
Latest Version
1.5.1
Package Id
vision-camera-trustee-face-detector-v3@1.5.1
Unpacked Size
636.81 kB
Size
261.92 kB
File Count
73
Publised On
21 Jun 2024
Cumulative downloads
Total Downloads
Last day
600%
7
Compared to previous day
Last week
200%
51
Compared to previous week
Last month
54%
251
Compared to previous month
Last year
18%
2,957
Compared to previous year
3
21
vision-camera-trustee-face-detector-v3
is a React Native library that integrates with the Vision Camera module to provide face detection functionality. It allows you to easily detect faces in real-time using the front camera and visualize the detected faces on the screen.
1yarn add vision-camera-trustee-face-detector-v3
1import { StyleSheet, Text, View } from 'react-native'; 2import React, { useEffect, useState } from 'react'; 3import { 4 Camera, 5 useCameraDevice, 6 useFrameProcessor, 7} from 'react-native-vision-camera'; 8import { scanFaces } from 'vision-camera-trustee-face-detector-v3'; 9import { Worklets } from 'react-native-worklets-core'; 10 11export default function App() { 12 const device = useCameraDevice('front'); 13 14 React.useEffect(() => { 15 (async () => { 16 const status = await Camera.requestCameraPermission(); 17 console.log({ status }); 18 })(); 19 }, [device]); 20 21 const frameProcessor = useFrameProcessor((frame) => { 22 'worklet'; 23 24 try { 25 const scannedFaces = scanFaces(frame, {}); 26 console.log(scannedFaces?.faces); 27 } catch (error) { 28 console.error({ error }); 29 } 30 }, []); 31 32 if (device == null) return <Text>No Device</Text>; 33 if (device) { 34 return ( 35 <View style={{ position: 'relative', flex: 1 }}> 36 <Camera 37 style={StyleSheet.absoluteFill} 38 device={device} 39 isActive={!!device} 40 frameProcessor={frameProcessor} 41 //pixel format should be either yuv or rgb 42 pixelFormat="yuv" 43 /> 44 </View> 45 ); 46 } 47}
No vulnerabilities found.
No security vulnerabilities found.