识别相似度阈值设为99%,未识别到物品增加弹窗

This commit is contained in:
2025-11-06 08:55:57 +08:00
parent 51e4170757
commit 30ce3499eb
3 changed files with 10 additions and 2 deletions
@@ -96,7 +96,7 @@ object FoodModule {
nameScoreList.add(IdNameScore(id = it.id, name = box.get(it.id).name?:"", score = it.score))
}
Timber.tag("FoodModule").d("queryFood数据:${nameScoreList.toJsonString()}")
idScoreList.filter { it.score < 0.2 }.forEach {
idScoreList.filter { it.score < 0.01 }.forEach {
val food = box.get(it.id)
//FoodQueryResult(id = it.id, name = food.name, foodIdx = food.foodIdx, score = it.score)
food.name?.let { key ->