Questions tagged [android-image-capture]
58 questions
1
vote
1 answer
Google Mobile Vision Low Image Quality
I try to take photo from camera with mobile vision library but taken image's qualities are low (Resolution 240x320)
I don't know where I should modify this feature(I guess it is related with CameraSource) and I'm not sure I should modify or not.…

Melih
- 23
- 10
1
vote
2 answers
ImageReader acquireLastestImage of different resolution than ImageReader itself on Galaxy S6
I'm trying to read an image from an ImageReader set to a particular resolution (obtained from CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP of course), but the ImageReader.acquireLastestImage returns an image of a different resolution!
Note:…

Roy Shilkrot
- 3,079
- 29
- 25
1
vote
1 answer
Why this code of capturing picture from a device don't run properly?
I was just trying to write a code to capture an image and save that image in default directory with a name test.jpg. My device do capture the image but it runs the else part of the test case and shows error capturing image.In xml file there is only…

adnan_aust
- 45
- 8
1
vote
3 answers
android: FATAL EXCEPTION: java.lang.SecurityException: Permission Denial: starting Intent { act=android.media.action.IMAGE_CAPTURE
I have tried everything I could find by researching. Nothing is working. I have an Activity with a FragmentDialog. In this dialog, I have an image view with a button. When this button is pressed, an alert pops up to take pic, choose pic from…

LizG
- 2,246
- 1
- 23
- 38
1
vote
4 answers
onActivityResult returns null Intent
I am trying to capture image from camera. But it returns null Intent onActivityResult .
Here is my code
CaptureImageFromCamera.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
intent = new…

Raksha Deshmukh
- 31
- 1
- 5
1
vote
1 answer
Camera intent resultCode 0 in 4.4.2 but -1 in 5.0 and above
I was experiencing some weird behavior in Android. I'm trying to capture an image and it works on Android 5.0 and above including Android 7.0. Here are the links I followed - Link1 Link2
The weird behavior happens on Android 4.4.2 (kitkat). It…

karthik prasad
- 738
- 7
- 15
1
vote
0 answers
image resolution loss when try to crop image from camera view and gallery
At my project i have image crop function when user change profile .
Everything is going fine but when i try to crop the image after select photo
the photo change to blur and loss resolution . I use Edmodo cropper.
is there have any solution or a…

Kim Te
- 11
- 1
1
vote
2 answers
Crop Intent using google photos not working
I am trying to make an app to select an image from the gallery or google photos and then crop it to make it my app background. The problem I am facing is that When I try to crop the picture using google photos then it gets saved but the app…

anant kumar
- 33
- 5
1
vote
1 answer
Android: How do I take a picture with the camera and store the full resolution image in imageview?
I am trying to make an app where the user can take a picture and that picture gets stored in an imageview. I have tried dozens of methods to get this to work.
A lot of answers I've viewed suggest using data.getExtra("data") with using the MediaStore…

kindOfABigDeal
- 11
- 2
1
vote
1 answer
Android IMAGE_CAPTURE intent saves photo after onActivityResult
I am trying to take photo using IMAGE_CAPTURE intent and show this photo on the screen immediately. What I do:
File photoFile = createImageFile();
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
intent.putExtra(MediaStore.EXTRA_OUTPUT,…

Andrei
- 42,814
- 35
- 154
- 218
0
votes
1 answer
I am capturing an image using CameraX in android on button click, but in some phones the captured image is rotated. Why so and how to correct it?
I am capturing the image to transform it into a square of a certain size. When I capture an image using different phones, in some of them the image captured is the same as the image shown in the preview, but in some phones, the image captured is…
0
votes
1 answer
Jetpack compose not showing bitmap image for very high quality image
When image bitmap is low quality I am able to load and display the image with coil but when image bitmap is very high quality the screen doesn't show anything and pressing back lets to crash the app.
I tried bitmap instead the painter but same…

Jeevan Rupacha
- 3,055
- 1
- 15
- 29
0
votes
0 answers
Image quality is very low after capture with camera in jetpack compose
I am making this camera app where I take the picture and upload to server. But after captured image that I am getting very low quality. Can we specify the image quality here?
val cameraLauncher = rememberLauncherForActivityResult(
contract =…

Jeevan Rupacha
- 3,055
- 1
- 15
- 29
0
votes
0 answers
How can I create a bitmap from an input image in kotln? is that the best way to edit an image?
override fun onImageSaved(output: ImageCapture.OutputFileResults){
val image: InputImage
try {
image = output.savedUri?.let { InputImage.fromFilePath(baseContext, it) }!!
if (image != null) {
//what to put here to…

Adel
- 1
- 1
0
votes
0 answers
android capture image from camera and display in another activity
I want to capture image on button click and display the same image in another activity. The below code is capturing image but displaying in the same activity. How can I take image to next activity? What changes to be added?
public class MainActivity…

Abm
- 271
- 2
- 15