874
questions
0
votes
0
answers
22
views
Camera is not active
Failed to submit capture request
androidx.camera.core.ImageCaptureException: Failed to submit capture request
at androidx.camera.core.imagecapture.TakePictureManager$1.onFailure(TakePictureManager....
0
votes
1
answer
36
views
what is wrong with the TextRecognizer code? fails with tflite XMNPack or policy_tflite_dynamite_
I am unable to get textrecognizer to work either on emulator or on a device. (Update: able to recognize text now, but, the callbacks for success, failure, completion are not hit). Why the Listeners ...
0
votes
0
answers
17
views
Android camerax - Flash mode not working with OverlayEffect
I'm using camerax version 1.4.0-rc01.
When I'm binding the following UseCaseGroup:
var ucWithEffect = UseCaseGroup.Builder()
.addUseCase(preview)
.addUseCase(imageCapture!!)
.addUseCase(...
0
votes
0
answers
34
views
Google Pixel 8 Pro - Access telephoto lens with CameraX or Camera2 in Android
I am trying to get a camera controller in my app to use the telephoto lens of my Google Pixel 8 Pro.
However, listing the available cameras do only result in list of 1 front and 1 back camera where I ...
0
votes
0
answers
22
views
How to control ArCore camera's focus while in FocusMode.FIXED
I have a very specific task with ArCore and if someone had a similar situation, here is the use case: I have to use ArCore session’s FIXED focus (not AUTO). But then whenever the user clicks to ...
1
vote
0
answers
42
views
Accessing hidden method/field [closed]
Error in Running Application
Im new to develop android with kotlin please help me with this error.
I want to run my liveness activity with camerax and save it into room databases is it any problem ...
0
votes
1
answer
50
views
Android ImageProxy to byteArray and send over socket
I'm trying to convert ImageProxy to byteArray to send it over socket to a python server.
I'm using Camerax and this is my ImageAnalysis:
mageAnalysis imageAnalysis = new ImageAnalysis.Builder()
...
0
votes
0
answers
25
views
Could not determine the dependencies of task ':camera_android_camerax:test'
What went wrong:
Could not determine the dependencies of task ':camera_android_camerax:test'.
Could not create task ':camera_android_camerax:testDebugUnitTest'.
this and base files have different ...
3
votes
0
answers
38
views
CameraX is recomposing and making the screen glitch when text is updated
I have a camera screen in Jetpack Compose. It has another ImageView(SubcomposeAsyncImage) that gets updated with the image count when I take an image.
Issue:
The camera preview is not opening ...
0
votes
0
answers
21
views
Cancelling ListenableFuture returned from ProcessCameraProvider.getInstance(context) call
According to the documentation of ProcessCameraProvider https://developer.android.com/reference/androidx/camera/lifecycle/ProcessCameraProvider#getInstance(android.content.Context) the call to ...
0
votes
0
answers
33
views
TensorFlow Object Detection is not working on Xiaomi /Oppo Devices
I am facing an issue while working with TensorFlow Lite for Android. I am using Object Detection, and so far, the detection has been working fine. However, I encountered a problem on two devices: the ...
0
votes
0
answers
37
views
How to set a ratio to camera capture Android?
I would like to put the camera capture in full screen. Even when setting a 'Resolution strategy' to 1280 by 1280, the size does not change. I am using these versions of CameraX.
def ...
0
votes
0
answers
48
views
Android CameraX Unable to configure camera
I'm trying to create a simple camera app on android, I was following this this (medium.com) guide, but my preview doesn't load, I only get an empty screen.
Error in logcat:
Unable to configure camera ...
0
votes
0
answers
33
views
ML kit camera text recognition not working when navigated from another screen
I asked a previous question here where the camera preview screen with ocr wouldn't work when navigated from another screen and I managed to get it to work but now the problem is the ocr function doesn'...
0
votes
0
answers
60
views
Android CameraX Video Capture: ERROR_NO_VALID_DATA when starting recording
I'm trying to implement video recording in my Android app using CameraX. The app displays the camera preview correctly, but when I try to start recording, I get the following
error:Sending ...
0
votes
0
answers
32
views
CameraX preview page not working with navigation
So I have camera preview page that implements google mlkit's ocr option and it works if I run it as is but if I link it by navigation through a button the page opens up but the camera preview is not ...
2
votes
0
answers
79
views
Crash with CameraX and Compose Navigation on Android 11
I have a problem very similar to this.
I'm encountering a crash in my app when using CameraX with Compose Navigation. The issue occurs inconsistently: sometimes it crashes when opening the bottom ...
4
votes
0
answers
207
views
How to get camera preview on jetpack compose with library implementation("androidx.camera:camera-viewfinder-compose:1.0.0-alpha02")?
The alpha version of viewfinder has been released.
How can I use it to get a preview from the camera?
Viewfinder(
surfaceRequest = ,
implementationMode = ,
transformationInfo = ,
)
0
votes
0
answers
62
views
Android - How to display captured image from CameraX full size in ImageView?
I am using Kotlin CameraX, I have successfully implemented PreviewView with ratio 16:9
I successfully Captured Image using ImageCapture.takePicture(...)
imageCapture.takePicture(executor, object : ...
0
votes
0
answers
447
views
Application crashes in Android 14 devices in ServiceCompat.startForeground() function
I am trying to make an android application that keeps recording videos even when the user leaves the app ( foreground service) . I declared all the permissions as per the documentation in the Manifest ...
0
votes
1
answer
112
views
App stops when navigating to / from a composable displaying camera on Android 11
I have a bottom navigation app in the beginning stages. It has 5 navigation items, one of which displays the camera. When navigating between tabs, eventually the app stops either when landing on the ...
0
votes
3
answers
165
views
Text Recognition Overlay Misalignment Issue in Camera Preview
I'm working on an Android application where I'm implementing live text recognition using CameraX and ML Kit. The recognized text is displayed with bounding boxes on the camera preview, but I'm facing ...
0
votes
1
answer
94
views
Native module:React native, showing black screen when integrating camera
I am using react-native-cli version 0.74.0 and Andorid device for debugging linux os for writing code.
I am trying to make a Camera app using a native module.
You will ask if there is already a camera ...
0
votes
1
answer
2k
views
NullPointerException: Cannot invoke "String.length()" because "<parameter1>" is null appear on build Android camerax v1.4.0-beta02
i update camerax version to v1.4.0-beta02, but i get the error java.lang.NullPointerException: Cannot invoke "String.length()" because "<parameter1>" is null when build. how ...
0
votes
0
answers
32
views
Camera crop working on Android 10. Not working on Android 11 or 12
Below is a very small gitHub project for image cropping from camera pic or gallery pic.
So, on the android java side it is using the 'edmodo' image cropper library-
com.theartofdev.edmodo.cropper
But ...
0
votes
0
answers
54
views
Android Super Resolution Camera Extension
I saw an article saying that a video stabilization extension will be added to Camera2 as part of Android 15. Is there any news on an extensions to enable super resolution photos that you can take with ...
0
votes
1
answer
42
views
Jetpack Compsoe Camerax imageCapture and crop 3 rectangles
I am trying to implement an app to take pictures, I don't want the full pic, I need to crop three pictures of the main pic (represented with rectangles), and save them for later processing. I am using ...
1
vote
1
answer
184
views
(Java) Upgrading androidx.lifecycle:lifecycle-viewmodel
When I try to upgrade androidx.lifecycle:lifecycle-viewmodel from 2.7.0 to 2.8.1 - error pops out:
Cannot resolve symbol 'AndroidViewModelFactory'
Question: Is there a way to get the same behaviour ...
0
votes
1
answer
111
views
MLKit Object Detection Can't detect and Can't draw the bounding box?
so basically I'm learning on an app From the MLKit sample apps and others to detect an object with MLKit object detection and draw boundingBox with a custom, view. At first, I does work and I can ...
0
votes
1
answer
165
views
cameraX preview view aspect ratio not working on high resolution device
need to set 16:9 / 4:3 / 1:1 aspect ratio
i use below code to do this
` cameraExecutor = Executors.newSingleThreadExecutor()
imgCaptureExecutor = Executors.newSingleThreadExecutor()
...
0
votes
0
answers
80
views
Reactivecircus emulator crashes with IllegalArgumentException for front camera
I am trying to do some UI testing on github, one of those tests uses camera, front one. This is step that I use for running emulator and runing script
- name: run tests
uses: reactivecircus/...
0
votes
1
answer
58
views
What's mean "Callback for when the camera has started exposing a frame"
"I am currently exploring the official Android CameraX documentation
and came across the onCaptureStarted() method.
However, I'm confused about its description, which states:
'Callback for when ...
0
votes
0
answers
32
views
how to open flash light when back camera is open using CameraManager in Android
I am trying to open flash light when camera is open but it's working only if the camera is off, when back camera is on, it is throwing exception
Torch for camera "0" is not available due to ...
0
votes
0
answers
70
views
Android CameraX failed to write temp file
private void takePicture() {
if (ContextCompat.checkSelfPermission(requireActivity(), Manifest.permission.CAMERA) == PackageManager.PERMISSION_GRANTED) {
long timestamp = System....
0
votes
0
answers
47
views
CameraX : java.lang.IllegalArgumentException: No display can be found from the input display manager
The camera function is called in the background service, and the camera function does not require preview, so the corresponding function is not added during configuration. This problem occurred and ...
0
votes
1
answer
65
views
Android CameraX FPS > 30 causes image crop
I have an application which uses CameraX API with Preview and Analyzer Use cases.
I'm setting the desired FPS using the Camera2Interop.Extender() and setting the CONTROL_AE_TARGET_FPS_RANGE option to ...
0
votes
1
answer
47
views
How can i wait until imageCapture to be initialized to take a picture?
How can i wait until the moment imageCapture is initialized, i tried using while (imageCapture == null) {}, but it just crashes the application, using a delay isn't an option too as i want to take a ...
0
votes
0
answers
82
views
Android: ImageAnalysis giving lower resolution as compared to Image Capture
I am using cameraX in my android app for imageCapturing.
Imagecapture giving full resolution i.e 3000 x 4000 but ImageAnalysis is only giving 1080 x 1440.
Here is my code:
private ResolutionSelector ...
0
votes
0
answers
145
views
I am getting this error java.lang.IllegalArgumentException - Provided camera selector unable to resolve a camera for the given use case
I am attaching the code below. I am inverting an camera on click of a button starting the camera on view created of an fragment and click image on click of a button.
//used for inverting the camera.
...
0
votes
0
answers
29
views
Distortions in Wide-Angle Shots Using CameraX on Android: Any Solutions?
I'm capturing wide-angle shots using CameraX on Android. However, I've noticed distortions, like a fisheye effect, in these wide-angle shots. Do you have any suggestions for a solution?
Thanks
1
vote
0
answers
89
views
DeferrableSurface error when focus / taking photos on Android/Temi Robot with CameraX
Situation:
I made a custom Android app that runs on a Temi Robot.
The Android app moves the robot through a room and takes pictures with the onboard camera.
These pictures get saved onto the internal ...
1
vote
0
answers
76
views
Jetpack Compose - Opening camera softlocks the refresh rate to 60hz
I'm building an Android app for scanning barcodes and I have a very esoteric problem regarding the CameraX library's camera.
Every time I open the camera's PreviewView in the app the screen refresh ...
0
votes
2
answers
135
views
How to implement pinch to zoom and camera preview kotlin
I have a camera I'm trying to create in my app that allows users to pinch the preview screen when using the camera. I've been trying to implement pinch to zoom in my camera, but I am having no luck at ...
0
votes
0
answers
76
views
Implementing Burst mode with Kotlin Jetpack Compose
I successfully implemented burst mode in camera , where it captures 30 photos at once.
But the speed of image capture is slow , like it capture 30 images in 13 sec and also while capturing images the ...
0
votes
0
answers
109
views
Change Camera Properties (fps, exposure, white balance) in Android Camera App
I'd like to develop a camera app for video capturing in Android Studio using Kotlin language where I can manually change the camera properties within the app to alter frame rate, exposure and white ...
0
votes
1
answer
141
views
CameraX ImageCapture invalid URI content
I have problems capturing image with CameraX, it outputs an image in the gallery which is corrupted and i get this error in the log which seems to point to error with the URI content:
E Couldn't ...
1
vote
1
answer
105
views
CameraX with jetpack composes screen logic
I have this page where I have a button that opens a camera preview and I want it to have a exit button to simply exit the camera preview and continue where I left off on the page:
class page : Screen {...
0
votes
0
answers
129
views
Camera LensFacing verification failed, existing cameras: [Camera@6e9a9d0[id=0]] in CameraX plugin
I was developing an app in Kotlin which use the CameraX plugin to access to camera, and take a picture. After read a lot of related question with the error I'm reciving:
Camera LensFacing ...
0
votes
1
answer
87
views
MediaPipe buffer too small
I tried to create a live camera feed with face detection using both CameraX and MediaPipe in Kotlin.
Sadly, I get the error that my buffer is too small for the pixels.
The main function I execute ...
1
vote
1
answer
636
views
Call a Composable function from an onClick that is in a Composable
I have a page where i have a compose card that has a onClick:
Card(
modifier = Modifier
.width(cardWidth)
.height(cardHeight)
.padding(cardPadding),
...