Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Image serialization mode. Applicable only when serializeImages is true.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class IoError(message: String) : Throwable
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Scanners typically can produce better results from a single image if they are allowed to spend a longer time analyzing it. On the other hand, scanners can produce even better results if they can analyze multiple images of the same subject and cross-check and combine the results. The processing mode tells the scanner whether to optimize for single or multiple images of a subject.

Link copied to clipboard
class TimeoutError(message: String) : Throwable
Link copied to clipboard
data class ToJsonConfiguration(val serializeImages: Boolean = true, val imageSerializationMode: ImageSerializationMode = ImageSerializationMode.REFERENCE)

Configuration used to serialize an object to json.

Functions

Link copied to clipboard
actual fun base64Decode(base64: String): ByteArray
expect fun base64Decode(base64: String): ByteArray
actual fun base64Decode(base64: String): ByteArray
Link copied to clipboard
actual fun base64Encode(bytes: ByteArray): String
expect fun base64Encode(bytes: ByteArray): String
actual fun base64Encode(bytes: ByteArray): String
Link copied to clipboard
Link copied to clipboard
fun NSData.toByteArray(): ByteArray
Link copied to clipboard
fun ByteArray.toNSData(): NSData