Module Values.BlockSource

Information about each word or line of text in the input document. For additional information, see Block in the Amazon Textract API reference.

Sourcetype nonrec t = {
  1. id : String_.t option;
    (*

    Unique identifier for the block.

    *)
  2. blockType : BlockType.t option;
    (*

    The block represents a line of text or one word of text. WORD - A word that's detected on a document page. A word is one or more ISO basic Latin script characters that aren't separated by spaces. LINE - A string of tab-delimited, contiguous words that are detected on a document page

    *)
  3. text : String_.t option;
    (*

    The word or line of text extracted from the block.

    *)
  4. page : Integer.t option;
    (*

    Page number where the block appears.

    *)
  5. geometry : Geometry.t option;
    (*

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

    *)
  6. relationships : ListOfRelationships.t option;
    (*

    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.

    *)
}
Sourceval make : ?id:??? -> ?blockType:??? -> ?text:??? -> ?page:??? -> ?geometry:??? -> ?relationships:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Integer of Integer.t | `List of [> `Structure of (string * [> `Enum of string | `List of [> `String of String_.t ] list ]) list ] list | `String of String_.t | `Structure of (string * [> `List of [> `Structure of (string * [> `Float of Float_.t ]) list ] list | `Structure of (string * [> `Float of Float_.t ]) list ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t