android-camerax

MLKit BarCode Sanner Implementation results in internal error when executing ML Kit tasks

自古美人都是妖i 提交于 2020-08-17 12:12:33
问题 Every call to scanner.process(image) is resulting in the onFailure call, with the following error: Error:com.google.mlkit.common.MlKitException: Internal error has occurred when executing ML Kit tasks Any further details or ideas as to why the task is failing? Presenting it with a barcode does not seem to change this behavior either. This error is shown when using a Pixel 3a, but totally crashes a Nexus 5 with a SIGENV error. I've been building my code from snippets while reading through the

CameraX ImageAnalysis set TargetResolution smaller than 640x480

人盡茶涼 提交于 2020-08-10 20:00:33
问题 I am trying to improve face detection rate by givining a 480x360 image to the ImageAnalysis of CameraX. However the following code produces 640x480 image, which reduces detection to 10 fps. If I give 480x360 I can improve rate to 20. How can I get smaller target resolution and the defualt Is there away to show the image I got for image anaysis as the prweview. As oppose to previews usecase. This is so that face detection overaly will not have big lag with the preview. ImageAnalysis

CameraX ImageAnalysis set TargetResolution smaller than 640x480

本秂侑毒 提交于 2020-08-10 20:00:31
问题 I am trying to improve face detection rate by givining a 480x360 image to the ImageAnalysis of CameraX. However the following code produces 640x480 image, which reduces detection to 10 fps. If I give 480x360 I can improve rate to 20. How can I get smaller target resolution and the defualt Is there away to show the image I got for image anaysis as the prweview. As oppose to previews usecase. This is so that face detection overaly will not have big lag with the preview. ImageAnalysis

CameraX PreviewView Screenshot

强颜欢笑 提交于 2020-07-23 07:07:45
问题 I want to convert CameraX preview to bitmap from previewView. Something similar to textureView.bitmap I have tried it with a textureview and it works perferctly, i can take a screenshot of the cameraview but the camera is stretched. 回答1: PreviewView now supports screenshot by calling PreviewView.getBitmap(). See: https://developer.android.com/reference/androidx/camera/view/PreviewView#getBitmap() 回答2: I finally found the answer in this link First set preferred implementationmode to

CameraX PreviewView Screenshot

半城伤御伤魂 提交于 2020-07-23 07:07:20
问题 I want to convert CameraX preview to bitmap from previewView. Something similar to textureView.bitmap I have tried it with a textureview and it works perferctly, i can take a screenshot of the cameraview but the camera is stretched. 回答1: PreviewView now supports screenshot by calling PreviewView.getBitmap(). See: https://developer.android.com/reference/androidx/camera/view/PreviewView#getBitmap() 回答2: I finally found the answer in this link First set preferred implementationmode to

CameraX PreviewView Screenshot

假装没事ソ 提交于 2020-07-23 07:06:03
问题 I want to convert CameraX preview to bitmap from previewView. Something similar to textureView.bitmap I have tried it with a textureview and it works perferctly, i can take a screenshot of the cameraview but the camera is stretched. 回答1: PreviewView now supports screenshot by calling PreviewView.getBitmap(). See: https://developer.android.com/reference/androidx/camera/view/PreviewView#getBitmap() 回答2: I finally found the answer in this link First set preferred implementationmode to

CameraX PreviewView Screenshot

你说的曾经没有我的故事 提交于 2020-07-23 07:05:21
问题 I want to convert CameraX preview to bitmap from previewView. Something similar to textureView.bitmap I have tried it with a textureview and it works perferctly, i can take a screenshot of the cameraview but the camera is stretched. 回答1: PreviewView now supports screenshot by calling PreviewView.getBitmap(). See: https://developer.android.com/reference/androidx/camera/view/PreviewView#getBitmap() 回答2: I finally found the answer in this link First set preferred implementationmode to

How do we detect the Orientation of Image captured using CameraX if Application's default orientation is set to Portrait Mode

有些话、适合烂在心里 提交于 2020-07-09 13:01:04
问题 Basically, My camera app is set to Portrait Mode. However, user can take photos in Potrait or landscape by rotating the phone accordingly (The app doesnt rotate). So my question is, how can we find the captured image orientation? I tried using DisplayManager.DisplayListener , however, it works only when orientation of app happens. Since I have blocked the orientation of app to portrait mode, it doesnt get any callbacks here. I even tried using ExifInterface , however, it always gives 6 as

MLKit Object Detection isn't not detecting objects

喜夏-厌秋 提交于 2020-06-29 03:53:46
问题 MLKit by Google (without Firebase) is new, so I'm having trouble. I'm trying to follow this example here: https://developers.google.com/ml-kit/vision/object-detection/custom-models/android The app opens fine, & the camera works (As in, I can see things). But the actual detection doesn't seem to work. Am I missing part of the code to actually detect the object? Or is it a issue with the implementation of CameraX or ImageInput? import androidx.annotation.NonNull; import androidx.appcompat.app