Edytuj

Udostępnij za pośrednictwem


CIDetector.CreateFaceDetector Method

Definition

Overloads

CreateFaceDetector(CIContext, CIDetectorOptions)

Create a new face detector using the specified parameters.

CreateFaceDetector(CIContext, Boolean)

Create a new face detector using the specified parameters.

CreateFaceDetector(CIContext, Boolean, Single)

Create a new face detector using the specified parameters.

CreateFaceDetector(CIContext, Nullable<FaceDetectorAccuracy>, Nullable<Single>, Nullable<Boolean>)

Create a new face detector using the specified parameters.

CreateFaceDetector(CIContext, CIDetectorOptions)

Create a new face detector using the specified parameters.

public static CoreImage.CIDetector CreateFaceDetector (CoreImage.CIContext context, CoreImage.CIDetectorOptions detectorOptions);
static member CreateFaceDetector : CoreImage.CIContext * CoreImage.CIDetectorOptions -> CoreImage.CIDetector

Parameters

context
CIContext

Image context.

detectorOptions
CIDetectorOptions

Options to use for the face detector.

Returns

A CIDetector instance.

Applies to

CreateFaceDetector(CIContext, Boolean)

Create a new face detector using the specified parameters.

public static CoreImage.CIDetector CreateFaceDetector (CoreImage.CIContext context, bool highAccuracy);
static member CreateFaceDetector : CoreImage.CIContext * bool -> CoreImage.CIDetector

Parameters

context
CIContext

Image context.

highAccuracy
Boolean

If true, it uses a more precise but slower scanning method; If false, it uses a fast path, but not as precise..

Returns

A CIDetector instance.

Applies to

CreateFaceDetector(CIContext, Boolean, Single)

Create a new face detector using the specified parameters.

public static CoreImage.CIDetector CreateFaceDetector (CoreImage.CIContext context, bool highAccuracy, float minFeatureSize);
static member CreateFaceDetector : CoreImage.CIContext * bool * single -> CoreImage.CIDetector

Parameters

context
CIContext

Image context.

highAccuracy
Boolean

If true, it uses a more precise but slower scanning method; If false, it uses a fast path, but not as precise..

minFeatureSize
Single

Minimum size that the detector will discover as a feature.

Returns

A CIDetector instance.

Remarks

minFeatureSize is new in iOS 6, it will be ignored in earlier releases.

Applies to

CreateFaceDetector(CIContext, Nullable<FaceDetectorAccuracy>, Nullable<Single>, Nullable<Boolean>)

Create a new face detector using the specified parameters.

public static CoreImage.CIDetector CreateFaceDetector (CoreImage.CIContext context, Nullable<CoreImage.FaceDetectorAccuracy> accuracy = null, Nullable<float> minFeatureSize = null, Nullable<bool> trackingEnabled = null);
static member CreateFaceDetector : CoreImage.CIContext * Nullable<CoreImage.FaceDetectorAccuracy> * Nullable<single> * Nullable<bool> -> CoreImage.CIDetector

Parameters

context
CIContext

Image context.

minFeatureSize
Nullable<Single>

Minimum size that the detector will discover as a feature.

trackingEnabled
Nullable<Boolean>

Enables feature tracking.

Returns

A CIDetector instance.

Remarks

Both minFeatureSize and trackingEnabled are new in iOS 6, they will be ignored in earlier releases.

Applies to