All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.net.iriscan.sdk.face.FaceAlgorithmProperties.kt Maven / Gradle / Ivy

The newest version!
package net.iriscan.sdk.face

import net.iriscan.sdk.core.io.HashMethod

/**
 * @author Slava Gornostal
 */
class FaceExtractProperties

class FaceEncodeProperties(val tfModel: FaceNetModelConfiguration)

class FaceNetModelConfiguration(
    val path: String,
    val inputWidth: Int,
    val inputHeight: Int,
    val outputLength: Int,
    val modelChecksum: String?,
    val modelChecksumMethod: HashMethod?,
    val overrideCacheOnWrongChecksum: Boolean?
) {
    constructor(
        path: String,
        inputWidth: Int,
        inputHeight: Int,
        outputLength: Int
    ) : this(path, inputWidth, inputHeight, outputLength, null, null, null)
}

class FaceMatchProperties(val threshold: Double)

class FaceLivenessDetectionProperties(
    val photo: LivenessModelPhotoConfiguration?,
    val position: LivenessModelPositionConfiguration?,
)

class LivenessModelPositionConfiguration(
    val threshold: Double
)

class LivenessModelPhotoConfiguration(
    val path: String,
    val inputWidth: Int,
    val inputHeight: Int,
    val threshold: Double,
    val modelChecksum: String?,
    val modelChecksumMethod: HashMethod?,
    val overrideCacheOnWrongChecksum: Boolean?
) {
    constructor(
        path: String,
        inputWidth: Int,
        inputHeight: Int,
        threshold: Double
    ) : this(path, inputWidth, inputHeight, threshold, null, null, null)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy