@@ -387,7 +387,7 @@ fc.known_image_path = dt.new_widget("file_chooser_button"){
387
387
is_directory = true ,
388
388
changed_callback = function (this )
389
389
dt .preferences .write (MODULE , " known_image_path" , " directory" , this .value )
390
- end
390
+ end
391
391
}
392
392
393
393
fc .export_format = dt .new_widget (" combobox" ){
@@ -414,9 +414,9 @@ fc.height = dt.new_widget("entry"){
414
414
415
415
fc .execute = dt .new_widget (" button" ){
416
416
label = " detect faces" ,
417
- clicked_callback = function (this )
417
+ clicked_callback = function (this )
418
418
face_recognition ()
419
- end
419
+ end
420
420
}
421
421
422
422
local widgets = {
@@ -433,14 +433,14 @@ local widgets = {
433
433
if dt .configuration .running_os == " windows" or dt .configuration .running_os == " macos" then
434
434
table.insert (widgets , df .executable_path_widget ({" face_recognition" }))
435
435
end
436
- table.insert (widgets , dt .new_widget (" section_label" ){ label = _ (" processing options" )})
437
- table.insert (widgets , fc .tolerance )
438
- table.insert (widgets , fc .num_cores )
439
- table.insert (widgets , fc .export_format )
440
- table.insert (widgets , dt .new_widget (" box" ){
441
- orientation = " horizontal" ,
442
- dt .new_widget (" label" ){ label = _ (" width " )},
443
- fc .width ,
436
+ table.insert (widgets , dt .new_widget (" section_label" ){ label = _ (" processing options" )})
437
+ table.insert (widgets , fc .tolerance )
438
+ table.insert (widgets , fc .num_cores )
439
+ table.insert (widgets , fc .export_format )
440
+ table.insert (widgets , dt .new_widget (" box" ){
441
+ orientation = " horizontal" ,
442
+ dt .new_widget (" label" ){ label = _ (" width " )},
443
+ fc .width ,
444
444
})
445
445
table.insert (widgets , dt .new_widget (" box" ){
446
446
orientation = " horizontal" ,
@@ -450,11 +450,11 @@ table.insert(widgets, dt.new_widget("box"){
450
450
table.insert (widgets , fc .execute )
451
451
452
452
fc .widget = dt .new_widget (" box" ){
453
- orientation = vertical ,
454
- reset_callback = function (this )
453
+ orientation = vertical ,
454
+ reset_callback = function (this )
455
455
reset_preferences ()
456
- end ,
457
- table.unpack (widgets ),
456
+ end ,
457
+ table.unpack (widgets ),
458
458
}
459
459
460
460
dt .register_lib (
0 commit comments