DetectedDocument class

Represents a document detected in an image.

Annotations

Constructors

DetectedDocument({required CropRect normalizedRect, required double confidence, CropAspectRatio? matchedRatio, String label = 'Document'})
Creates a DetectedDocument.
const

Properties

confidence → double
Detection confidence score between 0.0 and 1.0.
final
hashCode → int
The hash code for this object.
no setteroverride
label → String
Human-readable label for the detected document type (e.g. "ID Card (Aadhar)").
final
matchedRatio → CropAspectRatio?
Optional matched standard aspect ratio (e.g., CropAspectRatio.idCard).
final
normalizedRect → CropRect
The normalized bounding rectangle of the detected document (values between 0.0 and 1.0).
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
toPixelRect(Size imageSize) → Rect
Converts the normalized rectangle into absolute pixel bounds for a given image size.
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override