
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@baibing1001/vision-camera-face-detector
Advanced tools
VisionCamera Frame Processor Plugin to detect faces using MLKit Vision Face Detector (compatible with react-native-vision-camera v4)
VisionCamera Frame Processor Plugin to detect faces using MLKit Vision Face Detector (compatible with react-native-vision-camera v4)
yarn add vision-camera-face-detector
yarn add react-native-vision-camera react-native-worklets-core
For iOS, you also need to run:
cd ios && pod install
Add the worklets plugin to your babel.config.js
:
module.exports = {
plugins: [
['react-native-reanimated/plugin', {
processNestedWorklets: true,
}],
['react-native-worklets-core/plugin'],
// ... other plugins
],
}
import * as React from 'react';
import { Worklets } from 'react-native-worklets-core';
import { StyleSheet } from 'react-native';
import {
useCameraDevice,
useFrameProcessor,
} from 'react-native-vision-camera';
import { Camera } from 'react-native-vision-camera';
import { scanFaces, Face } from 'vision-camera-face-detector';
export default function App() {
const [hasPermission, setHasPermission] = React.useState(false);
const [faces, setFaces] = React.useState<Face[]>();
const device = useCameraDevice('front');
React.useEffect(() => {
console.log(faces);
}, [faces]);
React.useEffect(() => {
(async () => {
const status = await Camera.requestCameraPermission();
setHasPermission(status === 'granted');
})();
}, []);
const setFacesJS = Worklets.createRunOnJS(setFaces);
const frameProcessor = useFrameProcessor((frame) => {
'worklet';
const scannedFaces = scanFaces(frame);
setFacesJS(scannedFaces);
}, [setFacesJS]);
return device != null && hasPermission ? (
<Camera
style={StyleSheet.absoluteFill}
device={device}
isActive={true}
frameProcessor={frameProcessor}
/>
) : null;
}
}
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
FAQs
VisionCamera Frame Processor Plugin to detect faces using MLKit Vision Face Detector (compatible with react-native-vision-camera v4)
The npm package @baibing1001/vision-camera-face-detector receives a total of 9 weekly downloads. As such, @baibing1001/vision-camera-face-detector popularity was classified as not popular.
We found that @baibing1001/vision-camera-face-detector demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.