public static class

TextRecognizer.Builder

extends Object
java.lang.Object
   ↳ com.google.android.gms.vision.text.TextRecognizer.Builder

Class Overview

TextRecognizer Builder. Use this class to create TextRecognizer instances.

Summary

Public Constructors
TextRecognizer.Builder(Context context)
Creates a TextRecognizer Builder with the supplied context.
Public Methods
TextRecognizer build()
Creates a TextRecognizer instance.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public TextRecognizer.Builder (Context context)

Creates a TextRecognizer Builder with the supplied context.

Parameters
context Context

Public Methods

public TextRecognizer build ()

Creates a TextRecognizer instance.

Note that this method may cause blocking disk reads and should not be called on an application's main thread. To avoid blocking the main thread, consider moving Detector construction to a background thread using AsyncTask. Enable StrictMode to automatically detect blocking operations on the main thread.

Returns
TextRecognizer