示例#1
0
 private RealPhotoAnalysis(string path)
 {
     ICalculateLiquidPercentage rpa  = new RealPhotoAnalysis(new Image <Emgu.CV.Structure.Bgr, byte>(path));
     RealPhotoAnalysis          rpa1 = (RealPhotoAnalysis)rpa;
 }
示例#2
0
        public static int GetPercentage(Bitmap bmp)
        {
            ICalculateLiquidPercentage rpa = new RealPhotoAnalysis(new Image <Bgr, byte>(bmp));

            return(rpa.CalculatePercentageOfLiquid());
        }