人脸识别+采集分开处理

This commit is contained in:
2026-02-05 13:32:45 +08:00
parent 67f5d07f25
commit 2ee4d2d320
4 changed files with 1146 additions and 64 deletions
@@ -69,4 +69,15 @@ fun View.clickWithCoroutines(
lastClickTime = currentTime
}
}
}
fun View.clickWithDebounce(delay: Long = 500, action: () -> Unit) {
var job: Job? = null
setOnClickListener {
job?.cancel()
job = CoroutineScope(Dispatchers.Main).launch {
delay(delay)
action()
}
}
}