Table of Contents

Method Detect

Namespace
LMKit.Vision
Assembly
LM-Kit.NET.dll

Detect(ImageBuffer, CancellationToken)

Finds the faces in an image.

public IReadOnlyList<DetectedFace> Detect(ImageBuffer image, CancellationToken cancellationToken = default)

Parameters

image ImageBuffer

The image. Any pixel format; it is read as RGB.

cancellationToken CancellationToken

A token to cancel the detection.

Returns

IReadOnlyList<DetectedFace>

The faces found, the most confident first, in the image's pixels.

Exceptions

ArgumentNullException

image is null.

OperationCanceledException

The detection was cancelled.

Share