Methods
withOcrType(ocrTypenon-null) → {OCROptionsBuilder}
- Description:
Sets OCR type, specified by OCROptions.OCRSupportedType
Parameters:
Name | Type | Description |
---|---|---|
ocrType |
OCROptions.OCRSupportedType | see OCROptions.OCRSupportedType. Default value is OCROptions.OCRSupportedType.SEARCHABLE_IMAGE |
Returns:
This Builder instance to add any additional parameters.
- Type
- OCROptionsBuilder
withOcrLang(ocrLangnon-null) → {OCROptionsBuilder}
- Description:
Sets input language to be used for OCR, specified by OCROptions.OCRSupportedLocale.
Parameters:
Name | Type | Description |
---|---|---|
ocrLang |
OCROptions.OCRSupportedLocale | see OCROptions.OCRSupportedLocale. Default value is OCROptions.OCRSupportedLocale.EN_US |
Returns:
This Builder instance to add any additional parameters.
- Type
- OCROptionsBuilder
build() → {OCROptions}
- Description:
Returns a new OCROptions instance built from the current state of this builder.
Returns:
A new OCROptions instance.
- Type
- OCROptions