@@ -66,14 +66,6 @@ local function _(msgid)
66
66
return gettext .dgettext (" face_recognition" , msgid )
67
67
end
68
68
69
- -- preferences
70
-
71
- if not dt .preferences .read (MODULE , " initialized" , " bool" ) then
72
- reset_preferences ()
73
- save_preferences ()
74
- dt .preferences .write (MODULE , " initialized" , " bool" , true )
75
- end
76
-
77
69
local function build_image_table (images )
78
70
local image_table = {}
79
71
local file_extension = " "
@@ -242,7 +234,10 @@ local function face_recognition ()
242
234
243
235
-- Get path of exported images
244
236
local path = df .get_path (img_list [1 ])
237
+ dt .print_log (" Face recognition: Path to known faces: " .. knownPath )
245
238
dt .print_log (" Face recognition: Path to unknown images: " .. path )
239
+ dt .print_log (" Face recognition: Tag used for unknown faces: " .. unknownTag )
240
+ dt .print_log (" Face recognition: Tag used if non person is found: " .. nonpersonsfoundTag )
246
241
os.setlocale (" C" )
247
242
local tolerance = dt .preferences .read (MODULE , " tolerance" , " float" )
248
243
@@ -470,5 +465,13 @@ dt.register_lib(
470
465
471
466
fc .tolerance .value = dt .preferences .read (MODULE , " tolerance" , " float" )
472
467
468
+ -- preferences
469
+
470
+ if not dt .preferences .read (MODULE , " initialized" , " bool" ) then
471
+ reset_preferences ()
472
+ save_preferences ()
473
+ dt .preferences .write (MODULE , " initialized" , " bool" , true )
474
+ end
475
+
473
476
--
474
477
-- vim: shiftwidth=2 expandtab tabstop=2 cindent syntax=lua
0 commit comments