firebase-mlkit

Undefined symbols for architecture x86_64 flutter

梦想的初衷 提交于 2021-02-18 10:41:42
问题 I'm working in an app flutter. Android working fine but in ios no. I need some help to run this on ios mobile. I'm using lib: google_maps_flutter: ^0.5.27+3 and firebase_ml_vision: ^0.9.3+8 . Xcode 11.4.1 and Mac os Catalina 10.15.4. Someone knows how to solve this. I didn't found yet. flutter doctor [✓] Flutter (Channel stable, v1.17.0, on Mac OS X 10.15.4 19E287, locale en-BR) [✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3) [✓] Xcode - develop for iOS and

Get an Image from CameraPreview

痴心易碎 提交于 2021-01-29 15:04:27
问题 Is there a way I can get an image from a camera preview? The purpose of this would be to overlay an emoji over the face of the camera preview, and I can't overlay the emoji images without first having a Bitmap image as follows: private void processAndSetImage() { mResultsBitmap = OverlayEmoji.detectFacesandOverlayEmoji(this, mResultsBitmap); mImageView.setImageBitmap(mResultsBitmap); } Is there a way that mImageView could have the value of a camera preview? Any links to other SO posts, or

How to use image format YUV_420_888 for MLKIT of Google

感情迁移 提交于 2021-01-28 22:07:14
问题 ImageReader get each frame from camera preview is image with format YUV_420_888 , i want to use it as input for MLKIT. In document of google, i can run detector with input is: Bitmap media.Image ByteBuffer ByteArray A File I tried convert YUV_420_888 to above objects but I failed 回答1: I used this function to convert the image frame to NV21 format and set the image type in metadata in FirebaseVisionImage fun YUV_420_888toNV21(image: ImageProxy): ByteArray { val width = image.width val height =

How to use image format YUV_420_888 for MLKIT of Google

大兔子大兔子 提交于 2021-01-28 20:10:40
问题 ImageReader get each frame from camera preview is image with format YUV_420_888 , i want to use it as input for MLKIT. In document of google, i can run detector with input is: Bitmap media.Image ByteBuffer ByteArray A File I tried convert YUV_420_888 to above objects but I failed 回答1: I used this function to convert the image frame to NV21 format and set the image type in metadata in FirebaseVisionImage fun YUV_420_888toNV21(image: ImageProxy): ByteArray { val width = image.width val height =

How to use ML Kit cloud text recognizer for flutter?

空扰寡人 提交于 2021-01-28 12:27:58
问题 I am using the package 'firebase_ml_vision' in my project to do OCR. I can read Latin based languages just fine, however, I want to read Chinese characters. I know that there are on the device and cloud-based versions of the text recognizer. However, I can't find out how to 'enable' the cloud-based version in my app. I have already activated cloud-based APIs in Firebase as seen in this image: Activated cloud apis The code that I currently use is: void _initializeVision() async{ final File

How to Distinguish Slashed Zero From Eight (0->8) in OCR

折月煮酒 提交于 2021-01-27 06:22:21
问题 I'm using ML Kit for Firebase for my Android app (ReCalc: Receipt Calculator) and it performs very well except in the case of slashed zero . In around half or more of the cases it recognizes slashed zero as eight. One idea I have is to slice the rectangle containing the zero in regions and detect whether the regions just above and below the middle are dark or not. But actually... I'm planning to train a model to classify zeroes and eights . This is a lot of work thus I decided first to ask