Block class
Logical element on the page.
- Annotations
-
- @JsonSerializable(explicitToJson: true)
Constructors
-
Block({required TextProperty? property, required BoundingPoly? boundingBox, BlockType blockType = BlockType.UNKNOWN, required List<
Paragraph> ? paragraphs, required double? confidence}) -
Block.fromJson(Map<
String, dynamic> json) -
factory
Properties
- blockType → BlockType
-
Detected block type (text, image etc) for this block.
final
- boundingBox → BoundingPoly?
-
The bounding box for the block. 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 on the block. Range [0, 1].
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
paragraphs
→ List<
Paragraph> ? -
List of paragraphs in this block (if this blocks is of type text).
final
- property → TextProperty?
-
Additional information detected for the block.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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