JapaneseTextRecognizerOptions.Builder

  • JapaneseTextRecognizerOptions.Builder is used to create JapaneseTextRecognizerOptions instances for Japanese text recognition.

  • It provides methods to customize the text recognition process, such as setting a custom Executor.

  • The build() method creates a new JapaneseTextRecognizerOptions instance based on the builder's settings.

  • By default, an internal background thread pool is used if no custom Executor is set.

public static class JapaneseTextRecognizerOptions.Builder extends Object

Builder for the JapaneseTextRecognizerOptions class.

Public Constructor Summary

Public Method Summary

JapaneseTextRecognizerOptions
build()
Creates a new JapaneseTextRecognizerOptions instance.
JapaneseTextRecognizerOptions.Builder
setExecutor(Executor executor)
Sets the custom Executor to use.

Inherited Method Summary

Public Constructors

public Builder ()

Public Methods

public JapaneseTextRecognizerOptions build ()

Creates a new JapaneseTextRecognizerOptions instance.

public JapaneseTextRecognizerOptions.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