How to combine all Firebase ML kit APIs in one app?

末鹿安然 提交于 2019-12-13 09:32:51

问题


I want that if one image is selected it detects Label, text and faces in single image at one time only.


回答1:


Just call all of the functions on your image file at once, then combine the results using something like zip in RXJava.

Alternatively, you could nest the results (e.g. call FirebaseVision.getInstance().onDeviceTextRecognizer.processImage(image) inside the onSuccessListener of another function), although this will take much longer to complete all.

If you provide code of your existing attempts, StackOverflow can help further.



来源:https://stackoverflow.com/questions/53358301/how-to-combine-all-firebase-ml-kit-apis-in-one-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!