Spelling
This commit is contained in:
parent
7b33fbe050
commit
9b896794f2
11
.vscode/launch.json
vendored
11
.vscode/launch.json
vendored
@ -398,4 +398,13 @@
|
|||||||
// '98'
|
// '98'
|
||||||
// C:\Program Files\ImageMagick-7.1.0-Q16-HDRI>identify -format '%Q' "D:\7) Question\- - - Images\Mike Goolgle Photos 2014\197616258.jpg"
|
// C:\Program Files\ImageMagick-7.1.0-Q16-HDRI>identify -format '%Q' "D:\7) Question\- - - Images\Mike Goolgle Photos 2014\197616258.jpg"
|
||||||
// '90'
|
// '90'
|
||||||
// dotnet dead-csharp --inputs "**/*.cs" --excludes "**/obj/**" "**/I*.cs" "**/UnitTest*.cs"
|
// dotnet dead-csharp --inputs "**/*.cs" --excludes "**/obj/**" "**/I*.cs" "**/UnitTest*.cs"
|
||||||
|
// " - Shortcut (2)"
|
||||||
|
// _ Manual Copy Successful
|
||||||
|
// # Don't know full birthday
|
||||||
|
// ] Match
|
||||||
|
// ^ Know birthday
|
||||||
|
// _ Import of Partial info
|
||||||
|
// ` Want to find
|
||||||
|
// ~ Approxomite age
|
||||||
|
// + Approxomite age and have at least one image
|
@ -33,6 +33,9 @@
|
|||||||
"CopyFacesAndSaveFaceLandmarkForOutputResolutions": [
|
"CopyFacesAndSaveFaceLandmarkForOutputResolutions": [
|
||||||
"Original"
|
"Original"
|
||||||
],
|
],
|
||||||
|
"xJLinks": [
|
||||||
|
"Julie"
|
||||||
|
],
|
||||||
"JLinks": [
|
"JLinks": [
|
||||||
"Mike Phares Jr"
|
"Mike Phares Jr"
|
||||||
],
|
],
|
||||||
@ -53,7 +56,7 @@
|
|||||||
],
|
],
|
||||||
"RangeDistanceTolerance": [
|
"RangeDistanceTolerance": [
|
||||||
0,
|
0,
|
||||||
0.98,
|
0.6,
|
||||||
1.8
|
1.8
|
||||||
],
|
],
|
||||||
"RangeFaceAreaTolerance": [
|
"RangeFaceAreaTolerance": [
|
||||||
|
@ -140,6 +140,7 @@ public class MapLogic : Shared.Models.Methods.IMapLogic
|
|||||||
const int zero = 0;
|
const int zero = 0;
|
||||||
List<int>? collection;
|
List<int>? collection;
|
||||||
PersonBirthday personBirthday;
|
PersonBirthday personBirthday;
|
||||||
|
List<string> shouldMove = new();
|
||||||
foreach (KeyValuePair<int, Dictionary<int, PersonContainer[]>> idToCollection in _IdThenNormalizedRectangleToPersonContainers)
|
foreach (KeyValuePair<int, Dictionary<int, PersonContainer[]>> idToCollection in _IdThenNormalizedRectangleToPersonContainers)
|
||||||
{
|
{
|
||||||
foreach (KeyValuePair<int, PersonContainer[]> normalizedRectangleToPersonContainers in idToCollection.Value)
|
foreach (KeyValuePair<int, PersonContainer[]> normalizedRectangleToPersonContainers in idToCollection.Value)
|
||||||
@ -148,6 +149,8 @@ public class MapLogic : Shared.Models.Methods.IMapLogic
|
|||||||
{
|
{
|
||||||
if (personContainer.Key is null || personContainer.Birthdays is null || !personContainer.Birthdays.Any())
|
if (personContainer.Key is null || personContainer.Birthdays is null || !personContainer.Birthdays.Any())
|
||||||
continue;
|
continue;
|
||||||
|
if (personContainer.DisplayDirectoryName.Contains(@"{}\~\"))
|
||||||
|
shouldMove.Add(personContainer.DisplayDirectoryName);
|
||||||
personBirthday = personContainer.Birthdays[zero];
|
personBirthday = personContainer.Birthdays[zero];
|
||||||
personKey = personBirthday.Value.Ticks;
|
personKey = personBirthday.Value.Ticks;
|
||||||
if (!results.TryGetValue(personKey, out collection))
|
if (!results.TryGetValue(personKey, out collection))
|
||||||
@ -162,6 +165,8 @@ public class MapLogic : Shared.Models.Methods.IMapLogic
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (shouldMove.Any())
|
||||||
|
throw new Exception(string.Join(Environment.NewLine, shouldMove));
|
||||||
return results;
|
return results;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -751,7 +756,7 @@ public class MapLogic : Shared.Models.Methods.IMapLogic
|
|||||||
Dictionary<int, Mapping>? normalizedRectangleToMapping;
|
Dictionary<int, Mapping>? normalizedRectangleToMapping;
|
||||||
string by = nameof(Shared.Models.Stateless.IMapLogic.ManualCopy);
|
string by = nameof(Shared.Models.Stateless.IMapLogic.ManualCopy);
|
||||||
Dictionary<int, PersonContainer[]>? normalizedRectangleToPeronContainerCollection;
|
Dictionary<int, PersonContainer[]>? normalizedRectangleToPeronContainerCollection;
|
||||||
string successfull = $"_ {nameof(Shared.Models.Stateless.IMapLogic.ManualCopy).Humanize(LetterCasing.Title)} Successfull";
|
string successful = $"_ {nameof(Shared.Models.Stateless.IMapLogic.ManualCopy).Humanize(LetterCasing.Title)} Successful";
|
||||||
foreach (KeyValuePair<long, PersonContainer> personKeyToPersonContainer in _PersonKeyToPersonContainer)
|
foreach (KeyValuePair<long, PersonContainer> personKeyToPersonContainer in _PersonKeyToPersonContainer)
|
||||||
{
|
{
|
||||||
if (personKeyToPersonContainer.Value.Key is null || personKeyToPersonContainer.Value.Birthdays is null || !personKeyToPersonContainer.Value.Birthdays.Any())
|
if (personKeyToPersonContainer.Value.Key is null || personKeyToPersonContainer.Value.Birthdays is null || !personKeyToPersonContainer.Value.Birthdays.Any())
|
||||||
@ -798,9 +803,9 @@ public class MapLogic : Shared.Models.Methods.IMapLogic
|
|||||||
if (!File.Exists(checkFile))
|
if (!File.Exists(checkFile))
|
||||||
File.Copy(personDisplayDirectoryAllFile, checkFile);
|
File.Copy(personDisplayDirectoryAllFile, checkFile);
|
||||||
}
|
}
|
||||||
if (personDisplayDirectoryAllFile.Contains(successfull))
|
if (personDisplayDirectoryAllFile.Contains(successful))
|
||||||
continue;
|
continue;
|
||||||
directoryName = Path.Combine(personDisplayDirectory, successfull);
|
directoryName = Path.Combine(personDisplayDirectory, successful);
|
||||||
if (!Directory.Exists(directoryName))
|
if (!Directory.Exists(directoryName))
|
||||||
_ = Directory.CreateDirectory(directoryName);
|
_ = Directory.CreateDirectory(directoryName);
|
||||||
checkFile = Path.Combine(directoryName, personDisplayFileName);
|
checkFile = Path.Combine(directoryName, personDisplayFileName);
|
||||||
|
@ -134,8 +134,8 @@ public partial class UnitTestCalculations
|
|||||||
[TestMethod]
|
[TestMethod]
|
||||||
public void TestMethodHumanize()
|
public void TestMethodHumanize()
|
||||||
{
|
{
|
||||||
string successfull = $"_ {"ManualCopy".Humanize(LetterCasing.Title)} Successfull";
|
string successful = $"_ {"ManualCopy".Humanize(LetterCasing.Title)} Successful";
|
||||||
Assert.IsTrue(successfull == "_ Manual Copy Successfull");
|
Assert.IsTrue(successful == "_ Manual Copy Successful");
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user