DocumentPage class
Single scanned document page model (Scanbot SDK style page architecture).
Constructors
- DocumentPage({required String id, required Uint8List originalBytes, Uint8List? processedBytes, DocumentFilterMode filterMode = DocumentFilterMode.original, required DocumentCorners corners, ScanQualityReport? qualityReport, DateTime? timestamp, int width = 640, int height = 480})
- Constructs a DocumentPage.
Properties
- corners ↔ DocumentCorners
-
Quadrilateral corner coordinates of detected document boundaries.
getter/setter pair
- filterMode ↔ DocumentFilterMode
-
Active document enhancement filter applied to this page.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → int
-
Page height in pixels.
final
- id → String
-
Unique page identifier.
final
- originalBytes → Uint8List
-
Original raw image byte buffer.
final
- processedBytes ↔ Uint8List
-
Processed and filtered image byte buffer.
getter/setter pair
- qualityReport → ScanQualityReport
-
Document quality analysis metrics for this page.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timestamp → DateTime
-
Creation timestamp of page capture.
final
- width → int
-
Page width in pixels.
final
Methods
-
applyFilter(
DocumentFilterMode filter) → void - Applies a new DocumentFilterMode to this page and updates processedBytes.
-
copyWith(
{String? id, Uint8List? originalBytes, Uint8List? processedBytes, DocumentFilterMode? filterMode, DocumentCorners? corners, ScanQualityReport? qualityReport, DateTime? timestamp, int? width, int? height}) → DocumentPage - Creates a defensive copy of this page.
-
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.
inherited
-
updateCorners(
DocumentCorners newCorners) → void - Updates polygon quadrilateral corners for perspective cropping.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited