'Expo Camera Crashes with onFacesDetected option on (Android custom dev client )
expo app keeps crashing whenever I navigated to the camera component. am using expo sdk 43, and this happens on expo custom dev client only but works fine with expo go app.
import { Camera } from "expo-camera";
import * as FaceDetector from "expo-face-detector";
export default app = ()=>{
const handleFaceDetection = ({faces}) => console.log(faces);
return <Camera
style={styles.camera}
type={Camera.Constants.Type.front}
onFacesDetected={handleFaceDetection}
faceDetectorSettings={{
mode: FaceDetector.FaceDetectorMode.fast,
detectLandmarks: FaceDetector.FaceDetectorLandmarks.none,
runClassifications:
FaceDetector.FaceDetectorClassifications.none,
minDetectionInterval: 500,
tracking: true,
}}
/>;
};
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
