camera-samples
camera-samples copied to clipboard
Multiple samples showing the best practices in camera APIs on Android.
`testInstrumentationRunner` in Camera2Extensions/app/build.gradle is set incorrectly to `kotlin_version` which results in > Execution failed for task ':app:processDebugAndroidTestResources'. > A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction > Android resource linking failed camera-samples\Camera2Extensions\app\build\intermediates\packaged_manifests\debugAndroidTest\AndroidManifest.xml:9:...
Camera video recording Face retouching is not supported. We had to use a third-party camera, the B612. https://play.google.com/store/apps/details?id=com.linecorp.b612.android The B612 keeps sending our face data to a China company. https://github.com/user-attachments/assets/55cb76ea-a044-466e-998f-1fa66dadab39
I need to transform the camera view to match the view of other camera. It is not a problem to do so by setting matrix transform on textureview using Camera...
The foreground drawable was not rendering fully over the entire screen due to the use of `SurfaceView` by `PreviewView` when `ImplementationMode.PERFORMANCE` is used (which is the default)([Source](https://developer.android.com/reference/androidx/camera/view/PreviewView.ImplementationMode#PERFORMANCE)). `SurfaceView` draws in...
Initialization failed java.lang.IllegalArgumentException: Invalid rotation degrees: 359 at androidx.camera.view.TransformUtils.is90or270(TransformUtils.java:115) at androidx.camera.view.PreviewTransformation.getRotatedViewportSize(PreviewTransformation.java:347) at androidx.camera.view.PreviewTransformation.isViewportAspectRatioMatchPreviewView(PreviewTransformation.java:363) at androidx.camera.view.PreviewTransformation.getSurfaceToPreviewViewMatrix(PreviewTransformation.java:233) at androidx.camera.view.PreviewTransformation.getPreviewViewToNormalizedSurfaceMatrix(PreviewTransformation.java:425) at androidx.camera.view.PreviewViewMeteringPointFactory.recalculate(PreviewViewMeteringPointFactory.java:77) at androidx.camera.view.PreviewView.redrawPreview(PreviewView.java:598) at androidx.camera.view.PreviewView$1.lambda$onSurfaceRequested$1$androidx-camera-view-PreviewView$1(PreviewView.java:189) at androidx.camera.view.PreviewView$1$$ExternalSyntheticLambda0.onTransformationInfoUpdate(Unknown Source:6) at androidx.camera.core.SurfaceRequest.lambda$setTransformationInfoListener$7(SurfaceRequest.java:446) at androidx.camera.core.SurfaceRequest$$ExternalSyntheticLambda3.run(Unknown...
Android integrates Camerax into existing projects; Add dependencies as follows: implementation "androidx.camera:camera-core:1.4.2" implementation "androidx.camera:camera-camera2:1.4.2" implementation "androidx.camera:camera-lifecycle:1.4.2" implementation "androidx.camera:camera-video:1.4.2" implementation "androidx.camera:camera-view:1.4.2" FAILURE: Build failed with an exception. * What went wrong:...
Welcome to [Renovate](https://redirect.github.com/renovatebot/renovate)! This is an onboarding PR to help you understand and configure settings before regular Pull Requests begin. 🚦 Renovate will begin keeping your dependencies up-to-date only once...
This PR standardizes GitHub Actions triggers in workflow files within `.github/workflows/`. The goal is to ensure workflows run consistently on `push`, `pull_request`, and `workflow_dispatch` events where appropriate. This is part...
error code 2, Capture request failed with reason ERROR -- 13104-23 06:08:51.007 3312 3352 E CrashReport: at camerax.usecase.CameraXView$3.lambda$onError$1$camerax-usecase-CameraXView$3(CameraXView.java:173) 13204-23 06:08:51.007 3312 3352 E CrashReport: at camerax.usecase.CameraXView$3$$ExternalSyntheticLambda0.run(Unknown Source:4) 13304-23 06:08:51.007 3312...
demo 1: CameraX Basic deme 2: Camera2SlowMotion 测试手机: 荣耀X50 ALI_AN00 CameraX 实现的效果 , 预览起来没那么流畅 , 而Camera2 反而非常流畅