Skip to content

Commit

Permalink
Merge pull request googlesamples#100 from SilverDestiny/patch-1
Browse files Browse the repository at this point in the history
Update ImageLabelingActivity.java
  • Loading branch information
calren authored Aug 6, 2020
2 parents f630a63 + 58e8d96 commit 2deaaca
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ private void labelImages(InputImage image) {
.setConfidenceThreshold(0.8f)
.build();

// [START get_detector_default]
// [START get_detector_options]
ImageLabeler labeler = ImageLabeling.getClient(options);
// [END get_detector_default]
// [END get_detector_options]

/*
// [START get_detector_options]
// Or, to set the minimum confidence required:
ImageLabeler detector = ImageLabeler.newInstance(options);
// [END get_detector_options]
// [START get_detector_default]
// Or use the default options:
ImageLabeler detector = ImageLabeling.getClient(ImageLabelerOptions.DEFAULT_OPTIONS);
// [END get_detector_default]
*/

// [START run_detector]
Expand Down

0 comments on commit 2deaaca

Please sign in to comment.