firebase-mlkit

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

Ensuring Image Data is correctly oriented on iOS App in Swift 5

99封情书 提交于 2020-06-17 13:14:06
问题 I am using Firebase ML Kit for Face Detection, and in the documentation it says: If necessary, rotate the image so that its imageOrientation property is .up. Create a VisionImage object using the correctly-rotated UIImage. Do not specify any rotation metadata—the default value, .topLeft, must be used. I am running into the problem where photos I upload from the internet tend to work properly but when I take photos from my camera there seems to be issues. I have a feeling it is due to the way

Android Studio ML kit cannot load OCR module

北城以北 提交于 2020-04-11 07:48:08
问题 I am working on an android app that involves ML kit. I went through the tutorial on how to set up Android Studio to work with Firebase. Then I headed to use the text recognition API. Here is the code that I am having in some button click listener: FirebaseVisionTextRecognizer detector = FirebaseVision.getInstance() .getOnDeviceTextRecognizer(); Task<FirebaseVisionText> result = detector.processImage( FirebaseVisionImage.fromBitmap(BitmapFactory.decodeResource(getResources(), R.drawable.test))

Firebase ML Kit Face Contours : Cropping facial features

回眸只為那壹抹淺笑 提交于 2020-03-04 04:16:09
问题 I have the following code : It creates a path along the face's outline and then I just crop it out. What I want however is to only get the facial features (Mouth, Nose, and Eyes) and not the whole face. How do I target these Contours only? 来源: https://stackoverflow.com/questions/55843349/firebase-ml-kit-face-contours-cropping-facial-features