camera-samples
camera-samples copied to clipboard
Multiple samples showing the best practices in camera APIs on Android.
On my Samsung Galaxy A54 5G device when I try to convert from YUV420 to RGBA, the result image is however correct, but it has a kind of green tint....
Given RenderScript is going to be deprecated soon, do we have an alternative source for the YuvToRgbConverter.kt utility?
Camera2Basic shows the mentioned error when it tries to compile in Android Studio. `Camera2Basic\app\src\main\java\com\example\android\camera2\basic\fragments\CameraFragment.kt: (97, 53): Unresolved reference: cameraId`
When recording video via **Recorder**, I try to handle an error when there is not enough memory for the recorded video. The documentation has an example with this case ([developer.android](https://developer.android.com/reference/androidx/camera/video/VideoRecordEvent.Finalize))....
Assuming, that the idea of samples is to show best practice of using ML KIT sdk, I would suggest to replace manual call to `.close()` by `lifecycle.addObserver(barcodeScanner)`. https://github.com/android/camera-samples/blob/de8b23595d3156a21b6cba53a79b502a46c90ff0/CameraX-MLKit/app/src/main/java/com/example/camerax_mlkit/MainActivity.kt#L108 However if...
https://github.com/android/camera-samples/blob/de8b23595d3156a21b6cba53a79b502a46c90ff0/CameraX-MLKit/app/src/main/java/com/example/camerax_mlkit/MainActivity.kt#L58 I see, that `Executors.newSingleThreadExecutor()` was added in the https://github.com/android/camera-samples/commit/dcaf84fa6f152fd90ad620348f6a2c26351b4462 by @donovanfm, but it's never used. Was there an idea to use it instead of `ContextCompat.getMainExecutor(this)` ? If so -...
androidx.camera.core.ImageCapture$CaptureFailedException: Capture request failed with reason ERROR
androidx.camera.core.ImageCapture$CaptureFailedException: Capture request failed with reason ERROR 
Update the gradle files and dependencies for the Camera2Basic project to properly compile and run on Android Studio Koala and Gradle plugin 8.5
Change save collection Uri to internal storage ``` val outputOptions = ImageCapture.OutputFileOptions.Builder( contentResolver, MediaStore.Images.Media.INTERNAL_CONTENT_URI, contentValues ).build() ``` ``` Exception while executing runnable androidx.camera.core.impl.utils.executor.SequentialExecutor$1@dbeb2df (Ask Gemini) java.lang.UnsupportedOperationException: Writing to internal storage...