Paragraph class
Structural unit of text representing a number of words in certain order.
- Annotations
-
- @JsonSerializable(explicitToJson: true)
Constructors
-
Paragraph({required TextProperty? property, required BoundingPoly? boundingBox, required List<
Word> ? words, required double? confidence}) -
Paragraph.fromJson(Map<
String, dynamic> json) -
factory
Properties
- boundingBox → BoundingPoly?
-
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:
final
- confidence → double?
-
Confidence of the OCR results for the paragraph. Range [0, 1].
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- property → TextProperty?
-
Additional information detected for the paragraph.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
words
→ List<
Word> ? -
List of all words in this paragraph.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited