Getting the results
The onResults parameter return an TouchlessResults
data class TouchlessResults(
var rawFingerprintImages: ArrayList<Bitmap>? = null,
var processedFingerprintImages: ArrayList<Bitmap>? = null,
var enhancedFingerprintImages: ArrayList<Bitmap>? = null,
var slapImage: Bitmap? = null,
var slapWsqData: ByteArray? = null,
var fullFrameImage: Bitmap? = null,
var wsqData: ArrayList<ByteArray>? = null,
var metrics: CaptureMetrics? = null
)
data class CaptureMetrics(
var nfiqMetrics: List<NfiqMetrics> = ArrayList(),
var livenessConfidence: Double = 0.0,
var qualityMetric: Double = 0.0
)
data class NfiqMetrics(
var nfiqScore: Int = 0,
var mlpScore: Float = 0.0f
)
Core dependencies
The following dependencies might be needed if facing any challenges
def compose_version = "1.2.0"
implementation("androidx.compose.ui:ui:$compose_version")
// Tooling support (Previews, etc.)
implementation("androidx.compose.ui:ui-tooling:$compose_version")
// Foundation (Border, Background, Box, Image, Scroll, shapes, animations, etc.)
implementation("androidx.compose.foundation:foundation:$compose_version")
// Material Design
implementation("androidx.compose.material:material:$compose_version")
implementation "androidx.compose.runtime:runtime-livedata:$compose_version"
implementation "androidx.lifecycle:lifecycle-viewmodel-compose:2.5.0"