DocumentFormulaOutput interface

A formula object.

Properties

confidence

Confidence of correctly extracting the formula.

kind

Formula kind.

Possible values: "inline", "display"

polygon

Bounding polygon of the formula, with coordinates specified relative to the top-left of the page. The numbers represent the x, y values of the polygon vertices, clockwise from the left (-180 degrees inclusive) relative to the element orientation.

span

Location of the formula in the reading order concatenated content.

value

LaTex expression describing the formula.

Property Details

confidence

Confidence of correctly extracting the formula.

confidence: number

Property Value

number

kind

Formula kind.

Possible values: "inline", "display"

kind: string

Property Value

string

polygon

Bounding polygon of the formula, with coordinates specified relative to the top-left of the page. The numbers represent the x, y values of the polygon vertices, clockwise from the left (-180 degrees inclusive) relative to the element orientation.

polygon?: number[]

Property Value

number[]

span

Location of the formula in the reading order concatenated content.

span: DocumentSpanOutput

Property Value

value

LaTex expression describing the formula.

value: string

Property Value

string