[Android] Can't pass case turn head left
vanhai989 opened this issue · 5 comments
{ "main": "node_modules/expo/AppEntry.js", "scripts": { "start": "expo start", "android": "expo start --android", "ios": "expo start --ios", "web": "expo start --web", "eject": "expo eject" }, "dependencies": { "@react-native-community/masked-view": "0.1.10", "@react-navigation/native": "^5.8.10", "@react-navigation/stack": "^5.12.8", "@unimodules/core": "^7.1.2", "@unimodules/react-native-adapter": "^6.3.9", "deprecated-react-native-prop-types": "^3.0.1", "expo": "~46.0.0", "expo-camera": "~12.4.0", "expo-face-detector": "~8.3.0", "expo-status-bar": "~1.4.0", "react": "18.0.0", "react-dom": "18.0.0", "react-native": "0.69.6", "react-native-circular-progress": "^1.3.6", "react-native-gesture-handler": "~2.5.0", "react-native-reanimated": "~2.9.1", "react-native-safe-area-context": "4.3.1", "react-native-screens": "~3.15.0", "react-native-svg": "12.3.0", "react-native-web": "~0.18.7" }, "devDependencies": { "@babel/core": "~7.9.0", "@types/react": "~16.9.35", "@types/react-dom": "~16.9.8", "@types/react-native": "~0.63.2", "typescript": "~3.9.5" }, "private": true }
Can you support to android platform
thank you
same problem
Same. It's a great tho. Thanks for giving us a starting point. I adjusted the min and max angles and it works fine on android after.
@vanhai989
You can follow this link and try converting yaw and roll.!!!
Work for me: angle > 180 ? angle - 360 : angle
https://stackoverflow.com/questions/67555851/expo-face-detector-angle
By the way, I would really recommend you now to try and re-implement this using vision camera
https://www.react-native-vision-camera.com/docs/guides/frame-processors
https://github.com/rodgomesc/vision-camera-face-detector
It wasn't a thing back when I wrote the article and made this example, but you will have much better results due to the massive performance improvements.