Skip to content

Commit e2b9fe2

Browse files
CropFace does not work for Greyscale image (#207)
1 parent e28bd7b commit e2b9fe2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FaceRecognitionDotNet/FaceRecognition.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ public static IEnumerable<Image> CropFaces(Image image, IEnumerable<Location> lo
365365
case Mode.Greyscale:
366366
var gray = image.Matrix as Matrix<byte>;
367367
results.Add(new Image(DlibDotNet.Dlib.ExtractImage4Points(gray, dPoint, width, height),
368-
Mode.Rgb));
368+
Mode.Greyscale));
369369
break;
370370
}
371371
}

0 commit comments

Comments
 (0)