Class InferenceFaceDetector
Definition
- Namespace:
- Tizen.Multimedia.Vision
- Assembly:
- Tizen.Multimedia.Vision.dll
Provides the ability to detect faces.
public class InferenceFaceDetector : IDisposable
- Inheritance
-
objectInference
Face Detector
- Implements
-
System.
IDisposable
Constructors
View SourceInferenceFaceDetector()
Initializes a new instance of the Inference
Declaration
public InferenceFaceDetector()
Exceptions
Type | Condition |
---|---|
System. |
The required features are not supported. |
Methods
View SourceDispose()
Releases all resources used by the InferenceFaceDetector.
Declaration
public void Dispose()
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. |
~InferenceFaceDetector()
Finalizes an instance of the InferenceFaceDetector class.
Declaration
protected ~InferenceFaceDetector()
GetRequestResults()
Gets the bounding boxes as a result of Request
Declaration
public InferenceFaceDetectorResult GetRequestResults()
Returns
Type | Description |
---|---|
Inference |
The bounding boxes of detected face. |
Remarks
If there's no detected face, Bounding
This method uses about twice as much memory as Inference(Media
Exceptions
Type | Condition |
---|---|
System. |
The InferenceFaceDetector already has been disposed. |
See Also
View SourceInference(MediaVisionSource)
Detects faces on the source image synchronously.
Declaration
public InferenceFaceDetectorResult Inference(MediaVisionSource source)
Parameters
Type | Name | Description |
---|---|---|
Media |
source | The image data to detect faces. |
Returns
Type | Description |
---|---|
Inference |
The BoundingBoxes of detected face. |
Remarks
Bounding
Exceptions
Type | Condition |
---|---|
System. |
The InferenceFaceDetector already has been disposed. |
System. |
|
InferenceAsync(MediaVisionSource)
Detects faces on the source image asynchronously.
Declaration
public Task<InferenceFaceDetectorResult> InferenceAsync(MediaVisionSource source)
Parameters
Type | Name | Description |
---|---|---|
Media |
source | The image data to detect faces. |
Returns
Type | Description |
---|---|
System. |
Remarks
Bounding
This method uses about twice as much memory as Inference(Media
Exceptions
Type | Condition |
---|---|
System. |
The InferenceFaceDetector already has been disposed. |
System. |
|
RequestInference(MediaVisionSource)
Requests detecting faces to get their bounding boxes asynchronously.
Declaration
public ulong RequestInference(MediaVisionSource source)
Parameters
Type | Name | Description |
---|---|---|
Media |
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 Get
If the user calls this method again before the previous one is finished internally, the call will be ignored.
Bounding
Note that this method could use about twice as much memory as Inference(Media
Exceptions
Type | Condition |
---|---|
System. |
The InferenceFaceDetector already has been disposed. |
System. |
|