android-camera

How to change preview of camera at runtime?

a 夏天 提交于 2020-06-08 14:21:51
问题 I am trying to create an app which captures some x*y sized rectangular portion from the camera view. To achieve that I have been to many threads but none of them seems to be working as required. Basically what i want to achieve is as shown: My requirement is when i open camera there should be a rectangular highlighted bright part on the screen and the rest of the screen should look black translucent displaying the rest of the camera view but when user clicks the button then the camera should

CameraX equivalent of Camera2's CaptureRequest

十年热恋 提交于 2020-06-02 04:34:49
问题 I want to use ImageAnalysis with CameraX, but adjust some Camera settings such as auto-focus or auto-white balance, exposure and frame duration. Here's an example of the settings I need and how I set them with Camera2: captureRequestBuilder.set(CaptureRequest.CONTROL_AE_MODE, CameraMetadata.CONTROL_AE_MODE_OFF) captureRequestBuilder.set(CaptureRequest.CONTROL_AWB_MODE, CameraMetadata.CONTROL_AWB_MODE_OFF) captureRequestBuilder.set(CaptureRequest.SENSOR_FRAME_DURATION, FRAME_DURATION_NS)

how get Result from onActivityResult in Fragment?

爷,独闯天下 提交于 2020-05-25 06:05:16
问题 I have used Navigation drawer in each item click i have called Fragments so in one item i have called one Fragment in this fragment i need to get picture from camera and set it to as canvas background . In this I have captured camera picture but don't know how to get this picture after captured and set it to on canvas background. Fragment code import android.content.ContentValues; import android.content.Context; import android.content.Intent; import android.graphics.Bitmap; import android

how get Result from onActivityResult in Fragment?

a 夏天 提交于 2020-05-25 06:04:11
问题 I have used Navigation drawer in each item click i have called Fragments so in one item i have called one Fragment in this fragment i need to get picture from camera and set it to as canvas background . In this I have captured camera picture but don't know how to get this picture after captured and set it to on canvas background. Fragment code import android.content.ContentValues; import android.content.Context; import android.content.Intent; import android.graphics.Bitmap; import android

how get Result from onActivityResult in Fragment?

本小妞迷上赌 提交于 2020-05-25 06:03:24
问题 I have used Navigation drawer in each item click i have called Fragments so in one item i have called one Fragment in this fragment i need to get picture from camera and set it to as canvas background . In this I have captured camera picture but don't know how to get this picture after captured and set it to on canvas background. Fragment code import android.content.ContentValues; import android.content.Context; import android.content.Intent; import android.graphics.Bitmap; import android

Creating image capturing feature similar to cam scanner app [closed]

泄露秘密 提交于 2020-05-17 06:09:08
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 days ago . I am trying to make a feature in my app like cam scanner which will click the images of documents, I have tried various ways like with SurfaceView's(here's the issue thread Cropping a full screen camera image bitmap into a Surface view height and width) and, using this library https:/

How to use a previewview in camerax?

谁说胖子不能爱 提交于 2020-05-16 02:31:06
问题 i can't find out in CameraX how to use the PreviewView . i get this problem e/camera unable to configure camera 0 timeout 回答1: Could you post your code sample please? I had the same timeout error, but even after setting the implementation mode it still remains.. 回答2: i find out that the code miss this method previewView.setsetImplementationMode that is not mention in android guide document PreviewView previewView = view.findViewById(R.id.preview_view); previewView.setImplementationMode

Capturing and Saving an image in Android with different names and then retrieving it by any of those names?

末鹿安然 提交于 2020-04-21 04:34:54
问题 I am new to android and have managed to run my app where I can use the camera to capture the image. However I want to know the best solution to store and retrieve the images. Is it good to store the images in SQLlite or External Memory Can I store the image with multiple comma separated names in sqllite and then retrieve it as per those names. For e.g. I have a capture button where I can click to capture an image and then if the image is okay i can press next where it shows me a text box and

Capturing and Saving an image in Android with different names and then retrieving it by any of those names?

寵の児 提交于 2020-04-21 04:33:48
问题 I am new to android and have managed to run my app where I can use the camera to capture the image. However I want to know the best solution to store and retrieve the images. Is it good to store the images in SQLlite or External Memory Can I store the image with multiple comma separated names in sqllite and then retrieve it as per those names. For e.g. I have a capture button where I can click to capture an image and then if the image is okay i can press next where it shows me a text box and

android - how to know geotagging feature from camera is on or no?

折月煮酒 提交于 2020-04-20 15:16:17
问题 how to know geotagging feature from camera is on or no? this code for open camera phone Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); fileUri = getOutputMediaFileUri(MEDIA_TYPE_IMAGE); intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri); // start the image capture Intent startActivityForResult(intent, CAMERA_CAPTURE_IMAGE_REQUEST_CODE); 回答1: You can't check this programatically. You'll have to read the tags of the pictures taken and check the GPS-coordinates manually, if the tags