【问题标题】:Filter category in Firebase Image LabelFirebase 图片标签中的过滤类别
【发布时间】:2023-03-12 15:24:01
【问题描述】:

是否可以使用 Firebase Vision Cloud Image Labeler仅从一个类别中过滤 FirebaseVisionImageLabels?或者如何从输出 FirebaseVisionImageLabel 对象中获取类别?

例如,我只需要检测 Food 类别的对象,就我的应用而言,我知道我对任何其他类别的对象都不感兴趣。

text = Yellow | entityId = /m/088fh   // this is unnecessary
text = Meyer lemon | entityId = /m/04klfb
text = Citron | entityId =  /m/02054x
text = Lemon | entityId = /m/09k_b
text = Citrus | entityId =  /m/0dqb5

这里提到的类别: https://firebase.google.com/docs/ml-kit/label-images

【问题讨论】:

    标签: android firebase firebase-mlkit


    【解决方案1】:

    很遗憾,该功能在 API 中不可用。您必须从收到的响应中过滤您的结果。

    【讨论】:

    • 我能以某种方式从实体 ID 中获取类别吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-12-12
    • 2021-06-11
    • 2015-06-08
    • 2015-04-19
    • 2012-07-12
    • 2020-03-05
    • 1970-01-01
    相关资源
    最近更新 更多