After testing E_Distance.SaveGroupedFaceEncodings
This commit is contained in:
@ -30,9 +30,9 @@ public sealed class FaceEncoding : DisposableObject, ISerializable
|
||||
int? row = (int?)info.GetValue(nameof(_Encoding.Rows), typeof(int));
|
||||
int? column = (int?)info.GetValue(nameof(_Encoding.Columns), typeof(int));
|
||||
if (row is null)
|
||||
throw new Exception($"{nameof(row)} is null");
|
||||
throw new ArgumentNullException(nameof(row));
|
||||
if (column is null)
|
||||
throw new Exception($"{nameof(column)} is null");
|
||||
throw new ArgumentNullException(nameof(column));
|
||||
_Encoding = new Matrix<double>(array, row.Value, column.Value);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user