-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
依赖版本:1.0.27
环境: JVM (JDK21)
private fun isLiveFaceByVideo(video: ByteArray): Boolean =
video.inputStream().use { stream ->
livenessDetModel.detectVideo(stream).takeIf { it.isSuccess }?.data?.let {
println("Liveness detection status: ${it.status}, size: ${video.size}")
it.status == LivenessStatus.LIVE
}
} ?: falsedetectVideo函数的LivenessStatus总是只返回第一次的检测结果,只有第一次调用正常工作(活体或非活体)
后续即使输入视频或帧发生变化,返回值也始终为第一次的检测结果,疑似存在缓存未失效
活体和人脸检测用的模型都是SEETA_FACE6_MODEL
Metadata
Metadata
Assignees
Labels
No labels