CrispEmbedOmrEngine class

An OmrEngine backed by CrispEmbed's SMT model through FFI.

Load once with CrispEmbedOmrEngine.load, reuse across images, then dispose. Not thread-safe; use one engine per isolate.

Implemented types

Constructors

CrispEmbedOmrEngine.load(String modelPath, {String? libraryPath, int threads = 0})
Loads modelPath (an SMT GrandStaff GGUF) with the native library found at libraryPath (or, when null, the platform default / CRISPEMBED_LIB).
factory

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

dispose() → void
Frees the native model. Idempotent.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recognize(OmrImage image) Future<String>
Recognises image, returning a space-joined bekern token sequence.
override
recognizeSync(OmrImage image) String
Synchronous recognition — the native call blocks anyway. Returns the bekern token sequence.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited