Block

class Block

Information about each word or line of text in the input document.

For additional information, see Block in the Amazon Textract API reference.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The block represents a line of text or one word of text.

Link copied to clipboard

Co-ordinates of the rectangle or polygon that contains the text.

Link copied to clipboard
val id: String?

Unique identifier for the block.

Link copied to clipboard
val page: Int?

Page number where the block appears.

Link copied to clipboard

A list of child blocks of the current block. For example, a LINE object has child blocks for each WORD block that's part of the line of text.

Link copied to clipboard
val text: String?

The word or line of text extracted from the block.

Functions

Link copied to clipboard
inline fun copy(block: Block.Builder.() -> Unit = {}): Block
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String