Package character-recognition
This package contains 3 source unit(s) defining 3 class(es) / struct(s). Each unit below lists its fields (the values it stores) and methods (the actions it performs), with a plain explanation of each.
SLCharacterRecognition #sleela 3.0 (lib/character-recognition/SLCharacterRecognition.sleela)
SLCharacterRecognition class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
GLYPH_WIDTH | static final int GLYPH_WIDTH = 28 | No description in source. |
GLYPH_HEIGHT | static final int GLYPH_HEIGHT = 28 | No description in source. |
GLYPH_PIXELS | static final int GLYPH_PIXELS = 784 | No description in source. |
STATUS_OK | static final int STATUS_OK = 0 | No description in source. |
STATUS_ERROR | static final int STATUS_ERROR = -1 | No description in source. |
STATUS_NATIVE_ADAPTER_REQUIRED | static final int STATUS_NATIVE_ADAPTER_REQUIRED = -2 | No description in source. |
minimumSimilarity | double minimumSimilarity = 0.70 | No description in source. |
threshold | int threshold = 180 | No description in source. |
modelConfigured | boolean modelConfigured = false | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
setThreshold | void setThreshold(int value) | No description in source. |
getThreshold | int getThreshold() | No description in source. |
setMinimumSimilarity | void setMinimumSimilarity(double value) | No description in source. |
getMinimumSimilarity | double getMinimumSimilarity() | No description in source. |
configureModel | int configureModel() | No description in source. |
isConfigured | boolean isConfigured() | No description in source. |
isNativeReady | boolean isNativeReady() | No description in source. |
normalizeGlyph | int normalizeGlyph(byte[] grayscale, int width, int height, byte[] output) | No description in source. |
recognize | int recognize(byte[] normalizedGlyph, SLCharacterResult result) | No description in source. |
close | void close() | No description in source. |
SLCharacterResult #sleela 3.0 (lib/character-recognition/SLCharacterResult.sleela)
SLCharacterResult class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
label | String label | No description in source. |
similarity | double similarity = 0.0 | No description in source. |
accepted | boolean accepted = false | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
setLabel | void setLabel(String value) | No description in source. |
getLabel | String getLabel() | No description in source. |
setSimilarity | void setSimilarity(double value) | No description in source. |
getSimilarity | double getSimilarity() | No description in source. |
setAccepted | void setAccepted(boolean value) | No description in source. |
isAccepted | boolean isAccepted() | No description in source. |
SLPackage #sleela 3.0 (lib/character-recognition/SLPackage.sleela)
SLPackage class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
packageName | String packageName = "character-recognition" | No description in source. |
nativeHeader | String nativeHeader = "character_recognition.h" | No description in source. |
requiresNativeAdapter | boolean requiresNativeAdapter = true | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
name | String name() | No description in source. |
available | boolean available() | No description in source. |
isNativeAdapterRequired | boolean isNativeAdapterRequired() | No description in source. |