Skip to content

Commit 54a66f9

Browse files
committed
Category Tag default & no_person_found
1 - empty by default 2 - not added when no_person_found
1 parent d579b25 commit 54a66f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/face_recognition.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ local function reset_preferences()
154154
fc.unknown_tag.text = "unknown_person"
155155
fc.no_persons_found_tag.text = "no_persons_found"
156156
fc.ignore_tags.text = ""
157-
fc.category_tags.text = "People"
157+
fc.category_tags.text = ""
158158
fc.known_image_path.value = dt.configuration.config_dir .. "/face_recognition"
159159
fc.tolerance.value = 0.6
160160
fc.num_cores.value = -1
@@ -306,7 +306,7 @@ local function face_recognition ()
306306
t = nonpersonsfoundTag
307307
end
308308
if t ~= "" and t ~= nil then
309-
if categoryTagString ~= "" then
309+
if categoryTagString ~= "" and t ~= nonpersonsfoundTag then
310310
t = categoryTagString .. "|" .. t
311311
end
312312
dt.print_log ("ImgId:" .. img.id .. " Tag:".. t)

0 commit comments

Comments
 (0)