ProcessByTileConfiguration

data class ProcessByTileConfiguration(var enabled: Boolean = false, var minProcessedFraction: Double = 1.0, var maxProcessedFraction: Double = 1.0, var minNumberOfRequiredSymbols: Int = 100, var tileSize: Int = 300) : Parcelable

Configuration for processing image by tiles. This can be used to make the document quality analyzer processing faster with lower memory consumption, but prediction can be less accurate.

Constructors

Link copied to clipboard
constructor(source: Map<String, Any?>)
constructor(json: JSONObject)
constructor(enabled: Boolean = false, minProcessedFraction: Double = 1.0, maxProcessedFraction: Double = 1.0, minNumberOfRequiredSymbols: Int = 100, tileSize: Int = 300)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Enable processing by tiles.

Link copied to clipboard

At most this fraction of the image will be processed, range is from 0 to 1. Decreasing this value below 1.0 can lead to faster processing but may result in less accurate prediction, as only a subset of the image tiles will be analyzed.

Link copied to clipboard

If this number of symbols is found and minProcessedFraction of the image is processed, the processing stops.

Link copied to clipboard

At least this fraction of the image will be processed, range is from 0 to 1. Decreasing this value below 1.0 can lead to faster processing but may result in less accurate prediction, as only a subset of the image tiles will be analyzed.

Link copied to clipboard

Image will be processed in tiles of this size; will be ignored if image is small.

Functions

Link copied to clipboard
Link copied to clipboard
fun toJson(config: ToJsonConfiguration = ToJsonConfiguration.default()): JSONObject