ObjectDetectorOptions.Builder

public static class ObjectDetectorOptions.Builder extends Object

Builder of ObjectDetectorOptions.

Public Constructor Summary

Public Method Summary

ObjectDetectorOptions
ObjectDetectorOptions.Builder
enableClassification()
Enables classification.
ObjectDetectorOptions.Builder
enableMultipleObjects()
Enables multiple objects for detection.
ObjectDetectorOptions.Builder
ObjectDetectorOptions.Builder
setExecutor(Executor executor)
Sets the custom Executor to use.

Inherited Method Summary

Public Constructors

public Builder ()

Public Methods

public ObjectDetectorOptions build ()

public ObjectDetectorOptions.Builder enableClassification ()

Enables classification.

By default, the classification is off.

public ObjectDetectorOptions.Builder enableMultipleObjects ()

Enables multiple objects for detection.

When enabled, the maximum number of detected objects per image is 5.

By default, the detector detects prominent object only.

public ObjectDetectorOptions.Builder setExecutor (Executor executor)

Sets the custom Executor to use. If no Executor is set, an internal background thread pool will be used.

Most clients should not need to call this method.

Parameters
executor the Executor to use
Returns
  • this object, for chaining method calls