Questions tagged [camera2]

142 questions
1
vote
1 answer

android api 21+ camera2 api

i try to run this code, but it say that there is some thing not found in framworke.jar super.onCreate(savedInstanceState); CameraManager manager = (CameraManager) getSystemService(Context.CAMERA_SERVICE); String id = null; try { …
tarik203
  • 375
  • 3
  • 9
1
vote
2 answers

Camera2 preview is black, if I add a GLSurfaceView in front

I want to do an OpenGL animation (GLSurfaceView) in front of the Camera2 API preview (TextureView), but the animation isn't transparent. I've added the GLSurfaceView in front of the TextureView. it only works, if I set the setZOrderOnTop(true); in…
Manuel Schmitzberger
  • 5,162
  • 3
  • 36
  • 45
1
vote
1 answer

Android Camera2 API MediaRecoder how to capture image (not stream nor file)

I am trying to develop a driving recorder app for android 6.0 platform. This app can record video capturing from camera and save to mp4 files. During the saving process, I hope the app to also capture the image one by one with the image I can do…
wureka
  • 731
  • 1
  • 11
  • 26
1
vote
1 answer

Enable a preview during a capture session on Camera2

I'm building a camera app based on Camera2, but the picture I save is not matching the latest one I saw on my surface view. It seems that the Preview session works but when I ask for a capture, the new request stop the preview and capture the image.…
Seb
  • 2,929
  • 4
  • 30
  • 73
1
vote
3 answers

Camera2 front camera preview rotation

i am working on camera2 and have got a problem with rotation. In some devices, when switching to front camera, preview is being rotated 180 degrees. Was looking such a "setDefaultOrientation()" method for camera2 but couldn't find it. Thanks
user0770
  • 797
  • 3
  • 11
  • 22
1
vote
0 answers

Launch camera app from password-protected lock screen

I'm trying to get my camera app to launch from a password protected lock screen. I've added the following intent filter to allow the app to appear as an option for the lock screen shortcut:
Eddie Kezeli
  • 61
  • 1
  • 6
1
vote
1 answer

How to enable front camera in Camera2 API?

How to enable front camera on Camera2 API.Can anyone help ? I have this Camera2 API code .This only sets Main camera of the device ,I want to enable both front and rear camera on a button click.What is LENS_FACING_FRONT,I am new to android…
Tom
  • 296
  • 6
  • 22
1
vote
1 answer

how to become the preview stream in RAW Format (Camera2 API , ImageFormate.RAW_SENSOR)?

Hello I have a really difficult question. I got the nexus 6 and I want to have the preview stream in RAW fromat (ImageFormate.RAW_SENSOR) at the camera2 API. Is this even possible? I use the android-Camera2Raw…
DionDomain
  • 11
  • 7
1
vote
1 answer

Android Camera2 Focus Area

I am using the new Camera2 api trying to implement touch focus and can't seem to find an equivalent to the Camera1 api setFocusArea(). I want a user to be able to touch the preview screen and have the camera focus on that area. There doesnt seem…
1
vote
1 answer

Android Camera2 Image Processing: What is Geometric Correction?

On this page, there is a picture of the camera pipeline (Figure 2). It says, there are eight stages during Image Processing. I found the stages with corresponding names in the CameraMetadata, except for one stage: Geometric Correction I have googled…
Budel
  • 33
  • 5
1
vote
2 answers

Available options to take Pictures from My Application

I have been trying to create an Android camera activity to test how it works on the emulator, but I am not sure if I am doing things right. I have added the permission to the manifest for the deprecated camera version, focus and front camera. And I…
Matej Varga
  • 95
  • 2
  • 14
0
votes
1 answer

Android camera2 api

I need to take a picture from camera where it goes to another activity where we have image view to show the picture taken through camera.My questions is how to pass image data through intents using camera2api? In which method in camera2api i need to…
0
votes
2 answers

CameraView black on when being used for second time

I am using CameraView library for showing a viewfinder and taking snaps from it. I have two buttons, one for opening the view and another button for closing the view. Both the buttons click will call the following method with true and false…
0
votes
0 answers

android sending pictures from cam via socket

I transmit the images frame-by-frame from the camera via the socket after clicking on the form. I do not understand how to make an uninterrupted transfer of images after clicking on the form. Tried to put in a cycle, but in this case the image…
0
votes
0 answers

How to control flash in camera2 api?

I am using https://github.com/googlesamples/android-Camera2Basic project to create my own app, But when I added the code to control flash(on, off, auto). private void setAutoFlash(CaptureRequest.Builder requestBuilder) { if (mFlashSupported)…
Root
  • 11
  • 3