ReactVision / viro

ViroReact: The AR and VR library for React Native 📳💙💛🤍💚
MIT License
1.3k stars 150 forks source link

is it possible to combine RNcamera with viro-community/react-viro #246

Closed narayanan8uplogic closed 5 months ago

narayanan8uplogic commented 5 months ago

<RNCamera ref={cameraRef} style={{flex: 1}} type={RNCamera.Constants.Type.back} onFaceDetectionError={error => console.log(error, 'error')} onFacesDetected={faces => { handleFaceDetection(faces); }} faceDetectionLandmarks={ RNCamera.Constants.FaceDetection.Landmarks.all } faceDetectionMode={RNCamera.Constants.FaceDetection.Mode.accurate} autoFocus={RNCamera.Constants.AutoFocus.on} autoFocusPointOfInterest={{x: 0.5, y: 0.5}}> <Text style={{color: 'white', textAlign: 'center'}}> Face detection <ViroARSceneNavigator initialScene={{scene: renderARScene}} style={{flex: 1}} />

i have tried to use like above ,it results in camera conflict when both packages tries to access camera

Environment

Linux @viro-community/react-viro": "^2.23.0 react-native": "^0.71.1"

linear[bot] commented 5 months ago

XR-142 is it possible to combine RNcamera with viro-community/react-viro

robertjcolley commented 5 months ago

Hi @narayanan8uplogic, currently it is not possible to use anything other than the camera provided by NativeVision. We have put it on the roadmap!

narayanan8uplogic commented 5 months ago

Hi @robertjcolley , I want to use the face detection option, and after detecting a face, I want to show objects on different parts of the face. Is that possible with ViroCommunity/React-Viro?

robertjcolley commented 5 months ago

Currently, it is not. We are planning on getting to this soon, as it is highly requested.