相机优化、对接识别名称搜索新接口、替换模型文件

This commit is contained in:
2025-10-30 15:40:36 +08:00
parent 7930ba0cd1
commit 89fabe7322
17 changed files with 333 additions and 209 deletions
@@ -33,9 +33,9 @@ object FoodModule {
Thread {
module_mobile = Module.load(copyAssetToCache(context, "best_embedding_model_mobile.pt"))
box = ObjectBox.boxStore.boxFor(Food::class)
// if (box.all.isNotEmpty()) {
// box.removeAll()
// }
if (box.all.isNotEmpty()) {
box.removeAll()
}
if (box.all.isEmpty()) {
initFoodData(context)
}