ClassifyCardPlatform class abstract
The platform contract behind ClassifyCard.
Swap instance for a fake in tests instead of stubbing the method channel.
- Inheritance
-
- Object
- PlatformInterface
- ClassifyCardPlatform
- Implementers
Constructors
- ClassifyCardPlatform()
- Constructs a ClassifyCardPlatform.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
classify(
String imagePath) → Future< CardGateResult> -
Runs one inference on the photo at
imagePath. -
classifyFrame(
CardGateFrame frame) → Future< CardGateResult> - Runs one inference on a live camera frame, without writing it to disk.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
release(
) → Future< void> - Frees the interpreter. Best effort; never throws.
-
toString(
) → String -
A string representation of this object.
inherited
-
warmUp(
) → Future< String> - Builds the classifier and returns the bundled model version.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ ClassifyCardPlatform
-
The default instance of ClassifyCardPlatform to use.
getter/setter pair