AutoFocusConfiguration

Auto-focus configuration. The recognizer will ignore frames that are not focused. This option is enabled by default. This configuration has no effect in SINGLE_SHOT mode.

Constructors

Link copied to clipboard
constructor(source: Map<String, Any?>)
constructor(json: JSONObject)
constructor(sensitivityThreshold: Double = 0.02)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val _type: String
Link copied to clipboard

Sensitivity threshold for detecting that autofocus is in progress. The value should be in the range 0.0, 1.0. The lower the value, the more frames might be discarded as not focused. The higher the value, the earlier the focus might be considered as focused. If set to 0.0, the feature is disabled.

Functions

Link copied to clipboard
open override fun clone(): AutoFocusConfiguration
Link copied to clipboard
open override fun toJson(config: ToJsonConfiguration): JSONObject