commonMain.net.iriscan.sdk.iris.IrisAlgorithmProperties.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of biometric-sdk Show documentation
Show all versions of biometric-sdk Show documentation
Biometric SDK Kotlin Multiplatform library (android + ios)
package net.iriscan.sdk.iris
/**
* @author Slava Gornostal
*/
class IrisExtractProperties(
// skip edges
val verticalOffsetStart: Int? = null, // defaults to w / 5
val verticalOffsetEnd: Int? = null, // defaults to w / 5
val horizontalOffsetStart: Int? = null, // defaults to h / 5
val horizontalOffsetEnd: Int? = null, // defaults to h / 5
// center
val centerOffsetStep: Int = 6,
// pupil
val minPupilRadius: Int? = null, // defaults to 0.05 * min(w, h)
val maxPupilRadius: Int? = null, // defaults to 5 * min pupil radius
val pupilRadiusStep: Int = 3,
val pupilRadiusCalculationSteps: Int = 2,
val pupilAnglesToSearch: Array> = arrayOf(10.0..160.0, 190.0..350.0),
// iris
val minIrisRadius: Int? = null, // defaults to 1.25 * pupil radius
val maxIrisRadius: Int? = null, // defaults to 10 * pupil radius
val irisRadiusStep: Int = 4,
val irisRadiusCalculationSteps: Int = 3,
val irisAnglesToSearch: Array> = arrayOf(45.0..135.0, 225.0..315.0),
) {
companion object {
}
}
class IrisEncodeProperties(
val templateWidth: Int = 32,
val templateHeight: Int = 4,
) {
companion object {
}
}
class IrisMatchProperties(
val threshold: Double = 0.7 // 0.0-1.0
)