CardGateResult class
The outcome of one on-device inference.
- Annotations
Constructors
- CardGateResult({required CardGateLabel label, required double score, required double rawScore, required String modelVersion, required double latencyMs, required double decodeMs})
-
const
-
CardGateResult.fromMap(Map<
String, Object?> map) -
factory
Properties
- decodeMs → double
-
Time spent decoding, rotating and resizing the photo before inference.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isCard → bool
-
no setter
- label → CardGateLabel
-
Decided by comparing score against the threshold in the bundled policy.
final
- latencyMs → double
-
Time spent inside the interpreter.
final
- modelVersion → String
-
Version string from the bundled policy, e.g.
card-gate-recall-v3-....final - rawScore → double
-
The model's own probability for the
cardlabel, before calibration.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- score → double
-
Calibrated probability that the photo holds a card.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, Object?> - Safe to log: carries scores and timings, never image data.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited