Skip to content

Instantly share code, notes, and snippets.

@nurcinozer
Created January 27, 2022 12:04
Show Gist options
  • Save nurcinozer/87f6cc5f0bba91896423e73bd974f1ab to your computer and use it in GitHub Desktop.
Save nurcinozer/87f6cc5f0bba91896423e73bd974f1ab to your computer and use it in GitHub Desktop.
private MLImageClassificationAnalyzer createImageAnalyzer() {
MLLocalClassificationAnalyzerSetting setting =
new MLLocalClassificationAnalyzerSetting.Factory()
.setMinAcceptablePossibility(0.8f) // Higher min acceptable possibility results in higher accuracy in classification results.
.create();
return MLAnalyzerFactory.getInstance().getLocalImageClassificationAnalyzer(setting);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment