43 lines
1.2 KiB
C#
43 lines
1.2 KiB
C#
using Aurora.Api;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace VisionCommon {
|
|
public enum eVisionTestType {
|
|
Pattern, Align, Calibration
|
|
}
|
|
|
|
public class PatternTestResult {
|
|
public string Path { get; set; }
|
|
public string PatternStatus { get; set; }
|
|
public double IX { get; set; }
|
|
public double IY { get; set; }
|
|
public double SX { get; set; }
|
|
public double SY { get; set; }
|
|
public double Angle { get; set; }
|
|
public double Width { get; set; }
|
|
public double Height { get; set; }
|
|
public double Radius { get; set; }
|
|
public double Score { get; set; }
|
|
public double TackTime { get; set; }
|
|
}
|
|
|
|
public abstract class VisionImageTesterBase {
|
|
public List<string> ImagePaths { get; set; }
|
|
public int Count { get; set; } = 0;
|
|
public List<PatternResult> PatternResults { get; set; }
|
|
|
|
public abstract int SetTestImagePath(List<string> testPath);
|
|
|
|
public abstract int GetCurrentImage(ICameraDisplay cameraDisplay, ref object image);
|
|
|
|
public void SetCount(int count) {
|
|
Count = count;
|
|
|
|
}
|
|
}
|
|
}
|