DocLayoutKitBindings class
FFI bindings for libdoc_layout_kit native library
Constructors
- DocLayoutKitBindings(DynamicLibrary dynamicLibrary)
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
-
detectLayout(
Pointer< Char> imgPath, double confThreshold) → Pointer<Char> - Detect layout from image file path char* detectLayout(const char* img_path, float conf_threshold)
-
detectLayoutFromBytes(
Pointer< UnsignedChar> imageData, int width, int height, int channels, double confThreshold) → Pointer<Char> - Detect layout from raw image bytes char* detectLayoutFromBytes(const unsigned char* image_data, int width, int height, int channels, float conf_threshold)
-
freeString(
Pointer< Char> str) → void - Free allocated string memory void freeString(char* str)
-
getVersion(
) → Pointer< Char> - Get library version const char* getVersion()
-
initModel(
Pointer< Char> modelPath) → void - Initialize model with path void initModel(const char* model_path)
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited