你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

FormPage 类

  • java.lang.Object
    • com.azure.ai.formrecognizer.models.FormPage

public final class FormPage

表示从输入文档识别的页面。 包含行、字词、表格、选择标记和页面元数据。

构造函数摘要

构造函数 说明
FormPage(float height, float textAngle, LengthUnit unit, float width, List<FormLine> lines, List<FormTable> tables, int pageNumber)

构造窗体页对象。

方法摘要

修饰符和类型 方法和描述
float getHeight()

获取 height 属性:图像/PDF 的高度(以像素/英寸为单位)。

List<FormLine> getLines()

获取 lines 属性:当 includeFieldElements 设置为 true 时,会列出识别的文本行。

Integer getPageNumber()

获取输入文档中从 1 开始的页码。

List<FormSelectionMark> getSelectionMarks()

获取输入文档中的选择标记。

List<FormTable> getTables()

获取 tables 属性:从页面中提取的数据表列表。

float getTextAngle()

获取文本角度属性。

LengthUnit getUnit()

获取 unit 属性:宽度、高度和边界Box 属性使用的单位。

float getWidth()

获取 width 属性:图像/PDF 的宽度(以像素/英寸为单位)。

方法继承自 java.lang.Object

构造函数详细信息

FormPage

public FormPage(float height, float textAngle, LengthUnit unit, float width, List lines, List tables, int pageNumber)

构造 FormPage 对象。

Parameters:

height - 图像/PDF 的高度(以像素/英寸为单位)。
textAngle - 文本顺时针方向的一般方向。
unit - 宽度、高度和 boundingBox 属性使用的单位。
width - 图像/PDF 的宽度(以像素/英寸为单位)。
lines - 当 includeFieldElements 设置为 true 时,会列出已识别的文本行。
tables - 从页面提取的数据表列表。
pageNumber - 输入文档中从 1 开始的页码。

方法详细信息

getHeight

public float getHeight()

获取 height 属性:图像/PDF 的高度(以像素/英寸为单位)。

Returns:

高度值。

getLines

public List getLines()

获取 lines 属性:当 includeFieldElements 设置为 true 时,可识别文本行的列表。

Returns:

已识别行的不可修改列表。

getPageNumber

public Integer getPageNumber()

获取输入文档中从 1 开始的页码。

Returns:

页码值。

getSelectionMarks

public List getSelectionMarks()

获取输入文档中的选择标记。

Returns:

选择标记。

getTables

public List getTables()

获取 tables 属性:从页面中提取的数据表列表。

Returns:

已识别表的不可修改列表。

getTextAngle

public float getTextAngle()

获取文本角度属性。

Returns:

文本角度值。

getUnit

public LengthUnit getUnit()

获取 unit 属性:宽度、高度和 boundingBox 属性使用的单位。 对于图像,单位为“像素”。 对于 PDF,单位为“英寸”。

Returns:

单位值。

getWidth

public float getWidth()

获取 width 属性:图像/PDF 的宽度(以像素/英寸为单位)。

Returns:

宽度值。

适用于