Interface ParagraphOrBuilder (3.78.0)

publicinterface ParagraphOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getBoundingBox()

publicabstractBoundingPolygetBoundingBox()

The bounding box for the paragraph. The vertices are in the order of top-left, top-right, bottom-right, bottom-left. When a rotation of the bounding box is detected the rotation is represented as around the top-left corner as defined when the text is read in the 'natural' orientation. For example:

  • when the text is horizontal it might look like: 0----1 | | 3----2
  • when it's rotated 180 degrees around the top-left corner it becomes: 2----3 | | 1----0 and the vertex order will still be (0, 1, 2, 3).

.google.cloud.vision.v1.BoundingPoly bounding_box = 2;

Returns
Type Description
BoundingPoly

The boundingBox.

getBoundingBoxOrBuilder()

publicabstractBoundingPolyOrBuildergetBoundingBoxOrBuilder()

The bounding box for the paragraph. The vertices are in the order of top-left, top-right, bottom-right, bottom-left. When a rotation of the bounding box is detected the rotation is represented as around the top-left corner as defined when the text is read in the 'natural' orientation. For example:

  • when the text is horizontal it might look like: 0----1 | | 3----2
  • when it's rotated 180 degrees around the top-left corner it becomes: 2----3 | | 1----0 and the vertex order will still be (0, 1, 2, 3).

.google.cloud.vision.v1.BoundingPoly bounding_box = 2;

Returns
Type Description
BoundingPolyOrBuilder

getConfidence()

publicabstractfloatgetConfidence()

Confidence of the OCR results for the paragraph. Range [0, 1].

float confidence = 4;

Returns
Type Description
float

The confidence.

getProperty()

publicabstractTextAnnotation.TextPropertygetProperty()

Additional information detected for the paragraph.

.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;

Returns
Type Description
TextAnnotation.TextProperty

The property.

getPropertyOrBuilder()

publicabstractTextAnnotation.TextPropertyOrBuildergetPropertyOrBuilder()

Additional information detected for the paragraph.

.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;

Returns
Type Description
TextAnnotation.TextPropertyOrBuilder

getWords(int index)

publicabstractWordgetWords(intindex)

List of all words in this paragraph.

repeated .google.cloud.vision.v1.Word words = 3;

Parameter
Name Description
index int
Returns
Type Description
Word

getWordsCount()

publicabstractintgetWordsCount()

List of all words in this paragraph.

repeated .google.cloud.vision.v1.Word words = 3;

Returns
Type Description
int

getWordsList()

publicabstractList<Word>getWordsList()

List of all words in this paragraph.

repeated .google.cloud.vision.v1.Word words = 3;

Returns
Type Description
List<Word>

getWordsOrBuilder(int index)

publicabstractWordOrBuildergetWordsOrBuilder(intindex)

List of all words in this paragraph.

repeated .google.cloud.vision.v1.Word words = 3;

Parameter
Name Description
index int
Returns
Type Description
WordOrBuilder

getWordsOrBuilderList()

publicabstractList<?extendsWordOrBuilder>getWordsOrBuilderList()

List of all words in this paragraph.

repeated .google.cloud.vision.v1.Word words = 3;

Returns
Type Description
List<? extends com.google.cloud.vision.v1.WordOrBuilder>

hasBoundingBox()

publicabstractbooleanhasBoundingBox()

The bounding box for the paragraph. The vertices are in the order of top-left, top-right, bottom-right, bottom-left. When a rotation of the bounding box is detected the rotation is represented as around the top-left corner as defined when the text is read in the 'natural' orientation. For example:

  • when the text is horizontal it might look like: 0----1 | | 3----2
  • when it's rotated 180 degrees around the top-left corner it becomes: 2----3 | | 1----0 and the vertex order will still be (0, 1, 2, 3).

.google.cloud.vision.v1.BoundingPoly bounding_box = 2;

Returns
Type Description
boolean

Whether the boundingBox field is set.

hasProperty()

publicabstractbooleanhasProperty()

Additional information detected for the paragraph.

.google.cloud.vision.v1.TextAnnotation.TextProperty property = 1;

Returns
Type Description
boolean

Whether the property field is set.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.