From 54a66f9ab21aa78dc74197c512ab993836cd70ea Mon Sep 17 00:00:00 2001 From: Stephan Bolten Date: Sat, 9 May 2020 19:58:57 +0200 Subject: [PATCH] Category Tag default & no_person_found 1 - empty by default 2 - not added when no_person_found --- contrib/face_recognition.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/face_recognition.lua b/contrib/face_recognition.lua index 89b2041..26caff6 100644 --- a/contrib/face_recognition.lua +++ b/contrib/face_recognition.lua @@ -154,7 +154,7 @@ local function reset_preferences() fc.unknown_tag.text = "unknown_person" fc.no_persons_found_tag.text = "no_persons_found" fc.ignore_tags.text = "" - fc.category_tags.text = "People" + fc.category_tags.text = "" fc.known_image_path.value = dt.configuration.config_dir .. "/face_recognition" fc.tolerance.value = 0.6 fc.num_cores.value = -1 @@ -306,7 +306,7 @@ local function face_recognition () t = nonpersonsfoundTag end if t ~= "" and t ~= nil then - if categoryTagString ~= "" then + if categoryTagString ~= "" and t ~= nonpersonsfoundTag then t = categoryTagString .. "|" .. t end dt.print_log ("ImgId:" .. img.id .. " Tag:".. t)