Firebase图像标签中的过滤器类别



是否可以使用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

遗憾的是,API中没有该功能。您必须从收到的响应中筛选您端的结果。

最新更新