Class InferenceFaceDetector

    Definition

    Namespace:
    Tizen.Multimedia.Vision
    Assembly:
    Tizen.Multimedia.Vision.dll

    Provides the ability to detect faces.

    public class InferenceFaceDetector : IDisposable
    Inheritance
    object
    InferenceFaceDetector

    Constructors

    View Source

    InferenceFaceDetector()

    Initializes a new instance of the InferenceFaceDetector class.

    Declaration
    public InferenceFaceDetector()

    Methods

    View Source

    Dispose()

    Releases all resources used by the InferenceFaceDetector.

    Declaration
    public void Dispose()
    View Source

    Dispose(bool)

    Releases the unmanaged resources used by the InferenceFaceDetector.

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing

    true to release both managed and unmanaged resources; false to release only unmanaged resources.

    View Source

    ~InferenceFaceDetector()

    Finalizes an instance of the InferenceFaceDetector class.

    Declaration
    protected ~InferenceFaceDetector()
    View Source

    GetRequestResults()

    Gets the bounding boxes as a result of RequestInference(MediaVisionSource).

    Declaration
    public InferenceFaceDetectorResult GetRequestResults()
    Returns
    Type Description
    InferenceFaceDetectorResult

    The bounding boxes of detected face.

    Remarks

    If there's no detected face, BoundingBoxes will be empty.
    This method uses about twice as much memory as Inference(MediaVisionSource).

    See Also
    RequestInference(MediaVisionSource)
    View Source

    Inference(MediaVisionSource)

    Detects faces on the source image synchronously.

    Declaration
    public InferenceFaceDetectorResult Inference(MediaVisionSource source)
    Parameters
    Type Name Description
    MediaVisionSource source

    The image data to detect faces.

    Returns
    Type Description
    InferenceFaceDetectorResult

    The BoundingBoxes of detected face.

    Remarks

    BoundingBoxes can be empty, if there's no detected face.

    View Source

    InferenceAsync(MediaVisionSource)

    Detects faces on the source image asynchronously.

    Declaration
    public Task<InferenceFaceDetectorResult> InferenceAsync(MediaVisionSource source)
    Parameters
    Type Name Description
    MediaVisionSource source

    The image data to detect faces.

    Returns
    Type Description
    Task<><InferenceFaceDetectorResult>
    Remarks

    BoundingBoxes can be empty, if there's no detected face.
    This method uses about twice as much memory as Inference(MediaVisionSource).

    View Source

    RequestInference(MediaVisionSource)

    Requests detecting faces to get their bounding boxes asynchronously.

    Declaration
    public ulong RequestInference(MediaVisionSource source)
    Parameters
    Type Name Description
    MediaVisionSource source

    The image data to detect faces.

    Returns
    Type Description
    ulong

    The request ID that indicates the order of requests.

    Remarks

    This function does not guarantee that inference is done when this method returns. The user can get the result by using GetRequestResults().
    If the user calls this method again before the previous one is finished internally, the call will be ignored.
    BoundingBoxes can be empty, if there's no detected face.
    Note that this method could use about twice as much memory as Inference(MediaVisionSource).

    See Also
    GetRequestResults()

    Extension Methods

    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX