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;
 }
示例#2
0
 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;
 }
示例#3
0
        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);
            }
        }