Method Detect
Detect(ImageBuffer, CancellationToken)
Finds the faces in an image.
public IReadOnlyList<DetectedFace> Detect(ImageBuffer image, CancellationToken cancellationToken = default)
Parameters
imageImageBufferThe image. Any pixel format; it is read as RGB.
cancellationTokenCancellationTokenA token to cancel the detection.
Returns
- IReadOnlyList<DetectedFace>
The faces found, the most confident first, in the image's pixels.
Exceptions
- ArgumentNullException
imageis null.- OperationCanceledException
The detection was cancelled.