示例#1
0
        }                                                                                  // Model path system

        public FaceRecognizer(byte[] image, RgbPixel penColor, ModelPathSystem pathSystem) // Get image from bytes array
        {
            PathSystem = pathSystem;
            Image      = image.ToArray2D(PathSystem);
            Color      = penColor;
        }
示例#2
0
 public FaceRecognizer(string imageName, RgbPixel penColor, ModelPathSystem pathSystem) // Get image from image file
 {
     PathSystem = pathSystem;
     Image      = Dlib.LoadImage <RgbPixel>(Path.Combine(PathSystem.InputsPath, imageName));
     Color      = penColor;
 }
示例#3
0
 public void Dispose()
 {
     Image.Dispose();
     PathSystem = null;
     GC.SuppressFinalize(this);
 }