6,534 questions
1
vote
2
answers
38
views
CameraX does not work in direct boot mode
When trying to launch the camera in direct boot state using CameraX I get the following error:
Caused by: java.lang.IllegalStateException: CameraX is not configured properly. The most likely cause is ...
0
votes
1
answer
22
views
Magnifier modifier with AndroidView with camera preview
I want to implement the magnifier modifer on my camera preview.
What Im trying right now:
@Composable
fun CameraScreen() {
val previewView = remember { SurfaceView(context) }
Box(Modifier....
0
votes
0
answers
29
views
Android Studio SDK 34 get bitmap of full image from camera intent [duplicate]
I am trying to obtain the bitmap of the full size image resulting from an intent, with the following i only obtain de bitmap of the thumbnail.
//------- START CAMERA --------------
public void ...
0
votes
0
answers
37
views
Android webview close automatically when capture image from camera
I have used WebView camera for capture image but in Android 14 when capture 2-3 images one by one then on click OK button in camera WebView close automatically and also not showing any error or log.
...
0
votes
0
answers
22
views
ActivityResultContracts.TakePicture saves picture in Gallery instead of target URI
In my Android App, I use ActivityResultContracts.TakePicture to store a picture in a target URI gerated from FileProvider. This is how I dispatch the TakePicture intent and open the camera:
...
0
votes
0
answers
80
views
How can I automate video recording duration (and frequency) in Kotlin? [UPDATE Nov 22 -2024] Now permissions
I have been working on an app used for video recording of sparring rounds (in boxing). On a more fundamental basis, it should be a loop that records automatically for as long (in minutes) and as many ...
0
votes
0
answers
38
views
Flutter image picker: Camera crashes after appbundle deployment to Google Play Console
I'm working on a Flutter app that uses the image_picker package to allow users to select images from either the camera or gallery. Here’s the code I’m using:
Future<void> _pickImage() async {
...
0
votes
0
answers
25
views
Saved video has different aspect ratio than preview widget
Why does my recorded video get cropped on the sides, even though my CameraPreview shows the full frame?
I'm working on an Android app in Flutter, using the camera package (0.11.0+2). I set up my ...
1
vote
1
answer
62
views
identify Macro Camera in android smartphone using kotlin/java
I am trying to programmatically check whether the Android Smartphone has the macro camera or not.
Tried CameraManager and through that found the different characteristics of the camera. Than found the ...
0
votes
0
answers
31
views
How to share camera views from one phone to another programatically?
I am building an android application that can open multiple cameras using Camera2 API simultaneously. Now I want to stream the footage of those cameras over RSTP. I found this "libstreaming" ...
0
votes
0
answers
17
views
How to use an image from device's file system for adb emu virtualscene-image table command?
I am able to use adb emu virtualscene-image table <image> command to set the image on the table but it only works for files that are in the file system where adb server runs.
Is there a way to ...
0
votes
0
answers
32
views
How to activate "Scan" image on upload on mobile browser on file uploads?
Situation
My application allows the upload of invoices as image files via a simple_form.file_field.
When uploading inside the app via a mobile browser like Google Chrome the camera will give you the ...
1
vote
0
answers
110
views
Flutter MethodChannel: How to open the full featured camera
I opted to use Flutter MethodChannel to access the phone camera since the Flutter camera plugin seems to be limited for our use case.
Consider the code snippets below:
Flutter/Dart
import 'package:...
0
votes
0
answers
21
views
Is this Android Camera concept feasible?
I'm curious whether this concept is feasible on a chipset that supports Android 13.
Is it possible for the four camera apps, a, b, c, and d, to operate simultaneously?
If the camera throughput or ...
0
votes
0
answers
36
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 ...
0
votes
0
answers
51
views
How can I increase QR code resolution scannability for a react native app?
I'm have a QR code scanning issue as of late and am looking for a solution or insights.
The problem:
After some changes, the text content of a QR code generation increased from ~1000 characters to ...
0
votes
0
answers
40
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
1
answer
36
views
How to disable Multi-Camera Support in the ARCore session?
I'm using Pixel 8 Pro in auto-focus mode and when I get really close to the object it switches camera to macro. How can I disable that?
I tried:
setStereoCameraUsage(EnumSet.of(CameraConfig....
0
votes
1
answer
43
views
Flashlight toggle issue: Android app only turns on the flashlight, not off
I'm developing an Android app that should toggle the flashlight on or off when the app starts. The goal is to switch the flashlight to the opposite state of what it was when the app was launched. ...
0
votes
0
answers
25
views
Android how to get an image from a mediastore made Uri? [duplicate]
I created and stored an image like this:
val values = ContentValues(2)
values.put(MediaStore.Images.Media.MIME_TYPE, "image/jpeg")
values.put(MediaStore.Images.Media....
0
votes
0
answers
26
views
Flutter Camera Exif orientation is always 0 on my phone
I'm using the Camera package for flutter.
My client has a Samsung S53 phone and when it take a picture in portrait mode, the image is rotated by 90°. I tried on my Oppo A73, but no matter the ...
1
vote
1
answer
52
views
Camera2 control torch strength
Im playing around with the camera2Video sample (https://github.com/android/camera-samples/tree/main/Camera2Video), and I want to be able to control not just the torch on/off, but also its strength/...
0
votes
0
answers
194
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
Android camera2 focus distance step size
I'm developing an Android NDK camera2 app for astrophotography, for which I need the best possible focus. Considering that it is a photo in very low light conditions, with a standard smartphone device,...
0
votes
1
answer
90
views
Replace LegacyCamera with Camera2
In this device with AOSP 10, I have currently the LegacyCamera API for the camera but I want to replace it with Camera2.
What should I change to have it build and install Camera2 by default instead of ...
0
votes
0
answers
24
views
Why does querying for available video streams in JavaScript result in me being unable to open the rear camera stream on my Pixel 3 XL?
I prepared a JSFiddle which shows the difference:
Reliably opens the rear camera
Unreliably opens the rear camera
For the reliable version, it seems to work every time on my Pixel 3 XL's Chrome ...
1
vote
0
answers
132
views
Where do I upload photos to the Android Emulator via Visual Studio 2022?
I am using Visual Studio 2022 (on Windows 11 Pro) and have created a MAUI Blazor project for Android. I am using the "Phone M-DPI 5.4in - API 30 (Android 11.0 - API 30)" emulator. The ...
0
votes
0
answers
93
views
AndroidUsbCamera_not_working
Is there any official Android library to access an external USB camera?
I have gone through all the Android camera samples, but I couldn't get my external USB camera to be detected or listed with the ...
0
votes
0
answers
29
views
How to set ShutterSpeed of android Ricoh Theta X using Java?
I am using THETA Plug-in to set shutter speed for thetaX camera 360.
However I didn't notice any changes on the camera.
This is code i tried:
import theta360.hardware.Camera;
String value = "1/...
0
votes
0
answers
25
views
How to set ISO of android Ricoh Theta X using Java?
I am using THETA Plug-in to set iso for thetaX camera 360.
However I didn't notice any changes on the camera.
This is code i tried:
import theta360.hardware.Camera;
int value = 50; // value of 50 to ...
0
votes
1
answer
123
views
How to adjust flutter camera aspect ratio being compressed for Facial recognition
I've created an app in flutter that can do facial recognition on someone using tensorflow.
The app opens up the camera and checks for faces that are stored in the database or checks for faces and ...
0
votes
0
answers
100
views
Jetpack Compose: After taking a picture and pressing back, users can't click on take a picture again
I'm using Jetpack Compose and I have a modal bottom sheet where users can click on Take a picture when the bottom sheet pops up. Then they get to the camera view and after taking a picture, they click ...
0
votes
0
answers
110
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
39
views
Android Camera doesn't set the orientation EXIF tag
In the storeImage function in the LegacyCamera app of AOSP, there is a call to Exif.getOrientation to obtain the orientation from the image to set it later when storing it. In getOrientation, if the ...
0
votes
1
answer
144
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
0
answers
931
views
(Flutter Android) ImageTextureEntry can't wait on the fence on Android < 33
I'm trying to use this package: multiple_image_camera. It allows user to take multiple pictures from camera. image_picker allows only single at a time.
I/CameraManagerGlobal( 5873): Connecting to ...
1
vote
1
answer
58
views
Android: Where does CameraInfo gets the information from?
I am working on an Android device with a camera set up in vertical orientation. The problem I am trying to fix is that, when you take a picture with the Camera app, the image gets saved in horizontal ...
0
votes
0
answers
37
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
21
views
how to Retry/ok skip in samsung android phone default application
y project is an application that uses the default android phone camera application to take a picture and save it with a watermark , but the retry / ok selector after capturing the image is annoying ...
1
vote
0
answers
206
views
Flutter Camera Plugin Crashes After App Resumes from Background
I am encountering an issue with the Flutter camera plugin where my app crashes after it resumes from the background. The error occurs specifically when trying to start the camera stream.
I initialize ...
0
votes
1
answer
72
views
Camera stops after one minute application suspend
I am using CameraX in my app. When I put application to background after one minute I got following logs and then when I resume the application the camera shows no preview (black screen).
Probably I ...
0
votes
0
answers
141
views
unreal engine mobile HDR off results in a reverse(flipped vertically) camera feed in AR template
As summarized in the title there is a problem with the unreal engine when trying to turn off the mobile HDR rendering for android devices. there are a few things messing with the me right now first is ...
0
votes
1
answer
96
views
Attempt at YU12 to YUYV conversion resulting in noisy image
I'm attempting to use the Rust library nokhwa to capture images using my Android phone camera. I've connected my Android phone via USB to my laptop and am using Droidcam to have it work as a webcam.
...
0
votes
0
answers
32
views
why this error is occurred in tablet. "user cancel scrollshot " onStop() method of activity
`I am using camera to detect the face. when i m trying to back then in application its crashing and throws above error. Even I haven't written a code of onstop method. and even not using scrollview or ...
0
votes
0
answers
23
views
Returning to App in Portrait Mode from Third Party API ACTION_IMAGE_CAPTURE - Kotlin
I have an app which operates strictly in portrait mode. I call the camera app via ACTION_IMAGE_CAPTURE. The user is able to take pictures in landscape mode and if they click the "OK" button ...
0
votes
0
answers
221
views
Efficient YUV to RGB (Image to Bitmap) conversion in Android
I'm trying to apply YUV (Media.Image) to RGB (Bitmap) conversion in Android. I am currently using this official code from Android Camera samples (the code below) but it uses RenderScript which is ...
0
votes
1
answer
42
views
Auto Focus and Manual focus Focus Locking Error In Camera 2 api
I have one camera app in which i am providing user with 2 option manual focus and auto focus and then capturing 6 image back to back
but my issue is when i call auto focus and then capture image it is ...
0
votes
0
answers
117
views
camera2 CameraCaptureSession.capture() fails on first go but completes on second call
class AutomaticCapture(private val arguments: IntentArguments,
override val cameraCharacteristics: CameraCharacteristics,
override val imageReader: ...
0
votes
0
answers
41
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
0
votes
0
answers
74
views
Error trying to save video in specific folder inside Movies - Android 13
I need to create an application that records videos and saves them in 2 different folders depending on the button that was pressed to record. However, for some reason the videos are always being saved ...