I'm trying to take selfie picture using cameraX.
Preview works fine and show the front camera, but the actual captured image is from the back camera.
How to fix that problem?
Have anyone faced the same problem before?
Every UseCase config need to be defined with
setLensFacing(CameraX.LensFacing.FRONT)
Setting it to the preview only won't help for face recognition or image capture.
Related
I am making an application using front camera and recently came up with this issue that outcomes of captured image and video are different(left-right inverted) from what I've seen through the display.
So for the image I could process it right after taking the picture because the size of the image wasn't too big - I used matrix preScale to mirror the image.
However, I have no idea how to do that with video capture. I already know that Android default camera does not mirror the front camera video output and lots of famous applications have compromised with default setting. But at the same time there are some camera related applications such as Instagram, Snow Camera, and B612 that do exactly what I want.
So my questions are,
Is it possible to mirror the front camera video output using Android MediaRecorder and Camera class? (That's what I've been using so far)
Or do you have to process the video after you take it? And if so, is there any nice and fast way of doing it?
It would be nice if any of you can answer it specifically. Thank you in advance!
I am using given link https://github.com/googlesamples/android-Camera2Basic to make a new Camera2 for android version 5.0. Camera is working fine for me but sometimes preview does not set properly. I am sharing the images of camera preview below.
And second images is
please help me to short out the issue.
Note* How i can implement the Front and back camera open feature.
Thanks
I have an application built which is displaying a camera feed. The user is able to take a picture by pressing a button.
The color of the preview seems to be different than the picture of the jpeg that results from taking the picture on at least one device (MotoG). I don't see this behavior when testing on an LG-P700.
Any idea why this would be?
Below are attached images for what I'm seeing. Notice how the Preview is more yellow than the other images. (The device camera has a little yellow too, but not as much as the preview.)
PREVIEW
JPEG
DEVICE CAMERA
Thanks!
I want to capture image from the front facing camera.
Is there a way to detect front facing camera?
I searched a lot and the all the answers I found are quite old 2-3 yrs old.
Do I have to make a custom camera for it or is there any other way?
With the help of these links I was able to create my own front camera to take pictures
Android using front facing camera to take a picture
Access front camera
Android developer camera
Here is the link to final project
Custom Front Camera
In my app, I'm using the built-in camera app to take pictures.
The thing is that this interface has a button to change camera ( to front) and when I take a picture with front picture, it is not working anymore.
So, Is there a way to take picture fromt front camera with built-in camera app.
If it is not posible, is there a way to remove the icon from built in app???
Any suggestion will be appreciated!