android-camerax Questions
6
I have followed Google CameraX code lab to implement custom camera. Camera preview is fine but when i take image after image capture image is rotated. I am taking image in portrait mode but saved i...
Golconda asked 16/9, 2020 at 13:35
1
Solved
I am following the official documentation to capture a video with CameraX, and I want to avoid saving the captured video in the gallery.
For now I am working on this part of the documentation code:...
Burschenschaft asked 12/7, 2022 at 11:59
1
Hello I am new to android development, can anyone help me to crop the image captured by CameraX based on a rectangle on PreviewView?
This is the activity_main.xml:
<FrameLayout xmlns:android=&q...
Hike asked 24/5, 2022 at 5:50
3
Okay, I went through different posts and find out that depending on mobile manufacturers there can be a complications such as capture images get rotated, so you have to be aware of that. What I did...
Calif asked 24/7, 2019 at 7:19
3
I would like to implement the standard UX of tapping a point on the preview to adjust the auto-focus and auto-exposure points to the place where they tapped. I found the Preview.focus() function, h...
Discredit asked 30/5, 2019 at 18:45
0
I'm currently using cameraX to record video with audio and it's working pretty well, however now I have to use SpeechRecognizer while recording the video and get the transcription of what the user ...
Buhler asked 20/1, 2022 at 16:37
2
I want to be able to get the exact image for analysis step as I get in preview.
I have preview use case:
val metrics = DisplayMetrics().also { binding.codeScannerView.display.getRealMetrics(it) }
...
Penult asked 12/8, 2019 at 13:21
4
Solved
Currently there's no equivalent to CameraView (and PreviewView) in Compose. Is it possible to wrap it and display it in a compose layout?
Northwards asked 14/5, 2020 at 10:50
6
Solved
I was working with CameraX and had hard time converting captured ImageProxy to Bitmap. After searching and trying, I formulated a solution. Later I found that it was not optimum so I changed the de...
Joleenjolene asked 9/8, 2019 at 14:49
6
Google has released the new CameraX library as part of Jetpack. It looks great for taking pictures, but my use case also require making video's. I tried googling for that, but couldn't find anythin...
Leech asked 9/5, 2019 at 7:51
1
I've been struggling to implement a camera function into my app in a way that doesn't generate the below error:
E/ContextImpl: Tried to access visual service WindowManager from a
non-visual Contex...
Chibchan asked 2/1, 2021 at 18:24
10
I am developing a feature with the possibility of switching the torch into ON/OFF states. Some days ago, we saw a new library from Google in io2019. I came up with an idea, why not use it.
After s...
Umont asked 18/5, 2019 at 12:3
2
Solved
I am trying to create a preview in portrait mode and I want the preview to be as wide as the screen and wrap content vertically. However, when I do that I always get the preview size 1200x 1200 and...
Mistrustful asked 23/4, 2020 at 20:36
5
I've implemented a new sample, here is a link which describes new CameraX api from Google codelabs, but TextureView doesn't show anything and throw next exception:
OpenGLRenderer: [SurfaceTexture-0...
Penthea asked 9/5, 2019 at 16:58
1
Can anybody show me how to draw a rectangle over cameraX preview? I tried implementing a custom view as suggested by past stack overflow answers that were written in kotlin but it does not seemed t...
Syndetic asked 22/9, 2020 at 16:27
1
Currently trying out the new CameraX. Anyone know what's the problem. I should have all the permissions needed.
Here is my entire logcat.
2019-12-08 03:57:56.716 11667-11667/com.example.camerax E...
Nerval asked 8/12, 2019 at 3:8
4
Solved
I'm investigating the new CameraX API, in relation to how viable it might be to switch over from our current Camera2 system.
In our Camera2 system, we use an OpenGL surface to capture the frames fr...
Bottom asked 13/8, 2019 at 20:42
6
java.lang.IllegalArgumentException: No supported surface combination
is found for camera device - Id : 0. May be attempting to bind too
many use cases.
why the bindToLifecycle() only choose i...
Rowney asked 20/7, 2019 at 16:9
0
We want to automate the testing of an app, the main functionality involves image processing from a video stream coming from the camera.
What is the best way to use Appium to inject a video stream a...
Daimyo asked 24/7, 2021 at 11:14
1
Solved
I was trying to use a CameraX PreviewView inside of a Composable via AndroidView, but the preview is stretched and the right half is clipped as you can see in the screenshot.
Nevertheless the view ...
Carduaceous asked 21/3, 2021 at 12:57
2
I'm trying to use Firebase's MLKit for face detection with Camerax. I'm having a hard time to get Image analysis's imageproxy size to match PreviewView's size. For both Image analysis and PreviewVi...
Aeromarine asked 15/9, 2020 at 12:55
1
I've got a simple layout:
<RelativeLayout
android:id="@+id/myP"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<androidx.ca...
Sanious asked 1/5, 2021 at 18:43
1
Solved
Is it possible to bind Preview, ImageAnalysis, and VideoCapture at the same time? Combined in pairs, all possible combinations (ie. Preview+ImageAnalysis, Preview+VideoCapture, and ImageAnalysis+Vi...
Appraisal asked 30/4, 2020 at 13:36
0
What I want to do is show a rectangle over my PreviewView and only record the area inside of that rectangle even if PreviewView shows the whole camera.
I just want to save to a file what's inside t...
Fatal asked 21/4, 2021 at 15:58
3
Solved
With Android CameraX Analyzer ImageProxy uses ImageReader under the hood with a default YUV_420_888 image format.
I'd like to convert it in OpenCV Mat in order to use OpenCV inside my analyzer:
o...
Maples asked 25/9, 2019 at 16:20
© 2022 - 2024 — McMap. All rights reserved.