Save Grouped Face Encodings
This commit is contained in:
@ -7,10 +7,12 @@ public class PropertyHolder
|
||||
|
||||
protected readonly bool? _Abandoned;
|
||||
protected readonly bool? _Changed;
|
||||
protected object? _Face;
|
||||
protected FileInfo? _ImageFileInfo;
|
||||
protected readonly int _G;
|
||||
protected DateTime? _MinimumDateTime;
|
||||
protected bool? _Moved;
|
||||
protected List<(string Directory, string PersonKey, object Object)> _Named;
|
||||
protected readonly bool? _NoJson;
|
||||
protected A_Property? _Property;
|
||||
protected readonly int _R;
|
||||
@ -22,11 +24,13 @@ public class PropertyHolder
|
||||
protected bool? _WrongYear;
|
||||
public bool? Abandoned => _Abandoned;
|
||||
public bool? Changed => _Changed;
|
||||
public object? Face => _Face;
|
||||
public FileInfo? ImageFileInfo => _ImageFileInfo;
|
||||
public int G => _G;
|
||||
public DateTime? MinimumDateTime => _MinimumDateTime;
|
||||
public bool? Moved => _Moved;
|
||||
public bool? NoJson => _NoJson;
|
||||
public List<(string Directory, string PersonKey, object Object)> Named => _Named;
|
||||
public A_Property? Property => _Property;
|
||||
public int R => _R;
|
||||
public string RelativePath => _RelativePath;
|
||||
@ -39,9 +43,10 @@ public class PropertyHolder
|
||||
public PropertyHolder()
|
||||
{
|
||||
_G = -1;
|
||||
_Named = new();
|
||||
_RelativePath = string.Empty;
|
||||
_SourceDirectory = string.Empty;
|
||||
_SourceDirectoryFile = string.Empty;
|
||||
_RelativePath = string.Empty;
|
||||
_R = -1;
|
||||
}
|
||||
|
||||
@ -54,6 +59,7 @@ public class PropertyHolder
|
||||
_G = g;
|
||||
_Moved = moved;
|
||||
_NoJson = abandoned is null;
|
||||
_Named = new();
|
||||
_Property = property;
|
||||
_R = r;
|
||||
_RelativePath = relativePath;
|
||||
@ -80,4 +86,6 @@ public class PropertyHolder
|
||||
|
||||
public bool Any() => (_Abandoned.HasValue && _Abandoned.Value) || (_Changed.HasValue && _Changed.Value) || (_Moved.HasValue && _Moved.Value) || (_NoJson.HasValue && _NoJson.Value);
|
||||
|
||||
public void AddNamed(string directory, string personKey, object face) => _Named.Add(new(directory, personKey, face));
|
||||
|
||||
}
|
Reference in New Issue
Block a user