Share via


FaceDetector Constructors

Definition

Overloads

FaceDetector(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

FaceDetector(Int32, Int32, Int32)

Creates a FaceDetector, configured with the size of the images to be analysed and the maximum number of faces that can be detected.

FaceDetector(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected FaceDetector (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Media.FaceDetector : nativeint * Android.Runtime.JniHandleOwnership -> Android.Media.FaceDetector

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

FaceDetector(Int32, Int32, Int32)

Creates a FaceDetector, configured with the size of the images to be analysed and the maximum number of faces that can be detected.

[Android.Runtime.Register(".ctor", "(III)V", "")]
public FaceDetector (int width, int height, int maxFaces);
[<Android.Runtime.Register(".ctor", "(III)V", "")>]
new Android.Media.FaceDetector : int * int * int -> Android.Media.FaceDetector

Parameters

width
Int32

the width of the image

height
Int32

the height of the image

maxFaces
Int32

the maximum number of faces to identify

Attributes

Remarks

Creates a FaceDetector, configured with the size of the images to be analysed and the maximum number of faces that can be detected. These parameters cannot be changed once the object is constructed. Note that the width of the image must be even.

Java documentation for android.media.FaceDetector.FaceDetector(int, int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to