camera-samples
camera-samples copied to clipboard
Multiple samples showing the best practices in camera APIs on Android.
Hi! I'm developing an abstraction over the Camera2 API and found this sample to be very useful, so thanks! I'm currently stuck with one issue though, and I can't seem...
cameraX errors while setup 1. E/CameraManagerGlobal: Camera 5 is not available. Ignore physical camera status change 2. Camera 6 is not available. Ignore physical camera status change 3. Camera 7...
In the [docs](https://developer.android.com/reference/kotlin/androidx/camera/core/ImageAnalysis.Builder#setTargetResolution(android.util.Size)), it says the following: The resolution [Size](https://developer.android.com/reference/android/util/Size.html) should be expressed in the coordinate frame after rotating the supported sizes by the target rotation. For example, a device...
Running non-modified camera2.basic sample on emulator, capturing image by "Front JPEG" camera. ``` Process: com.android.example.camera2.basic, PID: 2662 java.lang.NullPointerException at com.example.android.camera2.basic.fragments.CameraFragment.getFragmentCameraBinding(CameraFragment.kt:79) at com.example.android.camera2.basic.fragments.CameraFragment.access$getFragmentCameraBinding(CameraFragment.kt:74) at com.example.android.camera2.basic.fragments.CameraFragment$animationTask$2.invoke$lambda-1$lambda-0(CameraFragment.kt:117) at com.example.android.camera2.basic.fragments.CameraFragment$animationTask$2.$r8$lambda$kSaIYQrPru2VxvpYHL5tPwU4w3s(Unknown Source:0) at com.example.android.camera2.basic.fragments.CameraFragment$animationTask$2$$ExternalSyntheticLambda1.run(Unknown Source:2)...
I am facing the below issue on a specific Android phone (Samsung Galaxy J7 Max, Android OS 8): Caused by java.util.concurrent.ExecutionException androidx.camera.core.InitializationException: androidx.camera.core.CameraUnavailableException: androidx.camera.camera2.internal.compat.CameraAccessExceptionCompat: CAMERA_IN_USE (4): connectHelper:1769: Camera "0" is...
Trying to pick a picture using camerax in android 31+ This exception happens: ``` 2022-01-21 17:52:36.956 11841-11938/com.limeint E/CameraCaptureSession: Session 0: Exception while stopping repeating: android.hardware.camera2.CameraAccessException: CAMERA_ERROR (3): The camera device...
Hi, I'm trying to make the sample cameraXvideo work however , the build fails and gives this error: ````e:app/RecordingFragment.kt: (78, 52): Cannot access class 'com.google.common.util.concurrent.ListenableFuture'. Check your module classpath for...
I just wants to use all the cameras not only two main cameras.
val imageAnalyzer = ImageAnalysis.Builder() .setTargetResolution(Size(1080, 720)) .build() val cameraSelector = CameraSelector.Builder().requireLensFacing(lensFacing).build() val camera = cameraProvider.bindToLifecycle( this, cameraSelector , imageAnalyzer)
Device: Pixel 5 System: Android 12 (S2B1.211112.006) Phenomenon 1: Without any modification, select "Back(0) 3840x2160 60 FPS" and the camera has a black screen Phenomenon 2: After adding `set(CaptureRequest.CONTROL_AE_TARGET_FPS_RANGE, Range(args.fps,...