public CharInfo(PlateChar plateChar, Mat originalMat, Rect originalRect, PlateLocateMethod plateLocateMethod, CharSplitMethod charSplitMethod) { this.PlateChar = plateChar; this.OriginalMat = originalMat; this.OriginalRect = originalRect; this.PlateLocateMethod = plateLocateMethod; this.CharSplitMethod = charSplitMethod; }
public PlateInfo(PlateCategory plateCategory, Rect originalRect, Mat originalMat, List <CharInfo> charInfos, PlateLocateMethod plateLocateMethod) { this.PlateCategory = plateCategory; this.OriginalRect = originalRect; this.OriginalMat = originalMat; this.CharInfos = charInfos; this.PlateLocateMethod = plateLocateMethod; }
public static List <PlateInfo> RecogPlateAndChar(Mat matSource) { List <PlateInfo> PlateInfoList = PlateRecognition_V3.Recognite(matSource); if (PlateInfoList.Count == 0) { PlateCategory PlateCategory = PlateCategory.非车牌; Rect OriginalRect = new Rect(); Mat OriginalMatnew = new Mat(); PlateLocateMethod PlateLocateMethod = PlateLocateMethod.未知; List <CharInfo> CharInfos = null; PlateInfo noPlateInfo = new PlateInfo(PlateCategory, OriginalRect, OriginalMatnew, CharInfos, PlateLocateMethod); PlateInfoList.Add(noPlateInfo); return(PlateInfoList); } else { return(PlateInfoList); } }