StringType
A string value paired with an OCR confidence score. Used throughout the SDK wherever the parsed value has associated extraction confidence.
Package: com.microblink.core
Declaration
class StringType : Parcelable
Constructors:
StringType(value: String?)
StringType(value: String?, confidence: Float)
Quick Reference
Properties
| Property | Description |
|---|---|
value() | The parsed string value |
confidence() | OCR or parsing confidence score |
has() | Whether the value is non-null and non-empty |
Properties
value()
fun value(): String?
The parsed string value.
confidence()
fun confidence(): Float
OCR or parsing confidence score. StringType.DEFAULT_CONFIDENCE (100.0f) when not set explicitly.
has()
fun has(): Boolean
true if value() is non-null and non-empty.