private RealPhotoAnalysis(string path) { ICalculateLiquidPercentage rpa = new RealPhotoAnalysis(new Image <Emgu.CV.Structure.Bgr, byte>(path)); RealPhotoAnalysis rpa1 = (RealPhotoAnalysis)rpa; }
public static int GetPercentage(Bitmap bmp) { ICalculateLiquidPercentage rpa = new RealPhotoAnalysis(new Image <Bgr, byte>(bmp)); return(rpa.CalculatePercentageOfLiquid()); }