Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/178.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Google vision APi标签降低了标签百分比_Java_Android_Google Vision_Vision Api - Fatal编程技术网

Java Google vision APi标签降低了标签百分比

Java Google vision APi标签降低了标签百分比,java,android,google-vision,vision-api,Java,Android,Google Vision,Vision Api,我想使用谷歌视觉API进行标签检测。但我想减少标签的百分比,我不知道我怎么能做到这一点。有人能帮我吗?我用的是样品。我正在使用谷歌提供的android示例 代码如下: 除此之外,它还显示结果: // add the features we want annotateImageRequest.setFeatures(new ArrayList<Feature>() {{ Feature labelDetection

我想使用谷歌视觉API进行标签检测。但我想减少标签的百分比,我不知道我怎么能做到这一点。有人能帮我吗?我用的是样品。我正在使用谷歌提供的android示例 代码如下:

除此之外,它还显示结果:

 // add the features we want
     annotateImageRequest.setFeatures(new ArrayList<Feature>() {{
                            Feature labelDetection = new Feature();
                            labelDetection.setType("LABEL_DETECTION");
                            labelDetection.setMaxResults(10);
                            add(labelDetection);
                        }});
//添加我们想要的功能
annotateImageRequest.setFeatures(新的ArrayList(){{
特征标签检测=新特征();
labelDetection.setType(“LABEL_检测”);
labelDetection.setMaxResults(10);
添加(labelDetection);
}});

您的意思是想显示更多结果(标签)?如果是这种情况,只需增加
MAX\u LABEL\u RESULTS
值(默认值设置为10)


在您发布的代码片段中,您只需要更改
labelDetection.setMaxResults(10)例如到
labelDetection.setMaxResults(15)

您的意思是要显示更多结果(标签)?如果是这种情况,只需增加
MAX\u LABEL\u RESULTS
值(默认值设置为10)

在您发布的代码片段中,您只需要更改
labelDetection.setMaxResults(10)例如到
labelDetection.setMaxResults(15)