Switch to front camera.? #213
-
Is there any method to flip the Scene Form camera to primary and secondary (Front & Back)? |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments
-
You could take a look into the AugmentedFaces implemenation. It changes the used camera to FRONT |
Beta Was this translation helpful? Give feedback.
-
Hi, @RGregat gives an exception -- com.google.ar.core.exceptions.UnavailableException sceneform (Failed to create AR session) |
Beta Was this translation helpful? Give feedback.
-
You canot change the Camera settings while the Session is active. |
Beta Was this translation helpful? Give feedback.
-
@ThomasGorisse No, the session was not active, I added camera as Back_camera at the initial time. |
Beta Was this translation helpful? Give feedback.
-
@fvito @grassydragon @doranteseduardo Does the AugmentedFace could work on the back Camera? |
Beta Was this translation helpful? Give feedback.
-
No, according to the ARCore docs: "Augmented Faces supports front-facing (selfie) camera only...". |
Beta Was this translation helpful? Give feedback.
-
@doranteseduardo @ThomasGorisse Does the Augmented-features (other than AugmentedFace) could work on the front Camera? |
Beta Was this translation helpful? Give feedback.
-
Never tried it but you can have a test and tell us here. |
Beta Was this translation helpful? Give feedback.
-
No, when the selfie camera is used only augmented faces feature work, also, the image gets mirrored, hitTest returns an empty array, no planes are detected and so-on. When using the rear camera, all other features work except for the augmented faces. |
Beta Was this translation helpful? Give feedback.
-
Can we get some code for switching cameras? I've been at this for days. I tried pausing the session:
but this crashes, because session.update gets called after session.pause. I also tried removing and re-adding the fragment, but when I go back to back facing camera, the camera is blurry.
|
Beta Was this translation helpful? Give feedback.
No, when the selfie camera is used only augmented faces feature work, also, the image gets mirrored, hitTest returns an empty array, no planes are detected and so-on.
When using the rear camera, all other features work except for the augmented faces.