Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface LineBlock

Interface that provides access to information about Line blocks. Line blocks are always children of the Page block and represent a single line of text in the processed document.

The line is further split into words what are made into Word blocks and are added as children to a Line block.

Hierarchy

Index

Properties

blockType

blockType: Line

Constant indicating the type of Block. Can be used for type descrimination, see BlockType for more details.

confidence

confidence: number

The confidence (as a precentage) that the text has been identified correctly

geometry

geometry: Geometry

Location information identifying where the block can be found

id

id: string

Unique id used to identify a block

text

text: string

The text recognised for this block

Methods

children

hasChild

  • Determines whether or not the specified node is a child of this node.

    Parameters

    Returns boolean

    true if the item is a child of this node, false otherwise

parent

  • Get the parent node of this node

    Returns PageBlock | undefined

    the parent of this node or undefined if this is the root node

Generated using TypeDoc