2.0.11
This commit is contained in:
@@ -69,6 +69,20 @@ namespace Hawkeye.VisionBuilder.Features.ImageStatistics
|
||||
//treeView.ExpandAll();
|
||||
}
|
||||
|
||||
public void AddExpected(string filePath, string[]? defects)
|
||||
{
|
||||
// get folder name as expected defect
|
||||
string expectedDefect = System.IO.Path.GetFileName(System.IO.Path.GetDirectoryName(filePath) ?? string.Empty) ?? string.Empty;
|
||||
if (defects.Contains(expectedDefect, StringComparer.OrdinalIgnoreCase))
|
||||
{
|
||||
AddGoodImage(filePath);
|
||||
}
|
||||
else
|
||||
{
|
||||
AddBadImage(filePath, [expectedDefect]);
|
||||
}
|
||||
}
|
||||
|
||||
private void UpdateBranchText(TreeNode node, string name)
|
||||
{
|
||||
if (node == _badNode)
|
||||
|
||||
Reference in New Issue
Block a user