InputType

Inheritance: java.lang.Object, java.lang.Enum

public enum InputType extends Enum<InputType>

Types of image/ documents for processing / recognition.

Fields

FieldDescription
SingleImageSupports GIF, PNG, JPEG, BMP, TIFF, JFIF, InputStream, BufferedImage.
PDFScanned PDF document from file or from InputStream.
TIFFMultipage TIFF, TIF document from file or from InputStream.
URLLink on the image.
DirectoryPath to the directory.
ZipFull name of the ZIP archive.
Base64base64 string with the image or path to the .txt file with the base64 content.

Methods

MethodDescription
values()
valueOf(String name)

SingleImage

public static final InputType SingleImage

Supports GIF, PNG, JPEG, BMP, TIFF, JFIF, InputStream, BufferedImage.

PDF

public static final InputType PDF

Scanned PDF document from file or from InputStream.

TIFF

public static final InputType TIFF

Multipage TIFF, TIF document from file or from InputStream.

URL

public static final InputType URL

Link on the image. Supports GIF, PNG, JPEG, BMP, TIFF.

Directory

public static final InputType Directory

Path to the directory. Nested archives and folders are not supported. Supports GIF, PNG, JPEG, BMP, TIFF. Default amount of processed images is all.

Zip

public static final InputType Zip

Full name of the ZIP archive. Nested archives and folders are not supported. Supports GIF, PNG, JPEG, BMP, TIFF, JFIF. Default amount of processed images is all.

Base64

public static final InputType Base64

base64 string with the image or path to the .txt file with the base64 content. Supports GIF, PNG, JPEG, BMP, TIFF.

values()

public static InputType[] values()

Returns: com.aspose.ocr.InputType[]

valueOf(String name)

public static InputType valueOf(String name)

Parameters:

ParameterTypeDescription
namejava.lang.String

Returns: InputType