Class InferencePoseLandmarkDetector
Definition
- Namespace:
- Tizen.Multimedia.Vision
- Assembly:
- Tizen.Multimedia.Vision.dll
Provides the ability to detect pose landmark.
C#Copypublic class InferencePoseLandmarkDetector : IDisposable
- Inheritance
-
objectInferencePoseLandmarkDetector
- Implements
-
System.IDisposable
Constructors
InferencePoseLandmarkDetector()
Initializes a new instance of the InferencePoseLandmarkDetector class.
Declaration
C#Copypublic InferencePoseLandmarkDetector()
Exceptions
| Type | Condition |
|---|---|
| System.NotSupportedException | The required features are not supported. |
Methods
Declaration
C#Copypublic void Dispose()
Dispose(bool)
Releases the unmanaged resources used by the InferencePoseLandmarkDetector.
Declaration
C#Copyprotected 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. |
~InferencePoseLandmarkDetector()
Finalizes an instance of the InferencePoseLandmarkDetector class.
Declaration
C#Copyprotected ~InferencePoseLandmarkDetector()
Declaration
C#Copypublic InferencePoseLandmarkDetectorResult GetRequestResults()
Returns
| Type | Description |
|---|---|
| InferencePoseLandmarkDetectorResult | The points of detected pose landmark. |
Remarks
If there's no detected pose landmark, Points will be empty.
This method uses about twice as much memory as Inference(MediaVisionSource).
Exceptions
| Type | Condition |
|---|---|
| System.ObjectDisposedException | The InferencePoseLandmarkDetector already has been disposed. |
See Also
Declaration
C#Copypublic InferencePoseLandmarkDetectorResult Inference(MediaVisionSource source)
Parameters
| Type | Name | Description |
|---|---|---|
| MediaVisionSource | source | The image data to detect pose landmark. |
Returns
| Type | Description |
|---|---|
| InferencePoseLandmarkDetectorResult | The coordinates of detected pose landmarks. |
Remarks
Points can be empty, if there's no detected pose landmark.
Exceptions
| Type | Condition |
|---|---|
| System.ObjectDisposedException | The InferencePoseLandmarkDetector already has been disposed. |
| System.ArgumentNullException |
|
InferenceAsync(MediaVisionSource)
Detects pose landmarks on the source image asynchronously.
Declaration
C#Copypublic Task<InferencePoseLandmarkDetectorResult> InferenceAsync(MediaVisionSource source)
Parameters
| Type | Name | Description |
|---|---|---|
| MediaVisionSource | source | The image data to detect pose landmark. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<TResult><InferencePoseLandmarkDetectorResult> |
Remarks
Points can be empty, if there's no detected pose landmark.
This method uses about twice as much memory as Inference(MediaVisionSource).
Exceptions
| Type | Condition |
|---|---|
| System.ObjectDisposedException | The InferencePoseLandmarkDetector already has been disposed. |
| System.ArgumentNullException |
|
RequestInference(MediaVisionSource)
Requests detecting pose landmarks to get their points asynchronously.
Declaration
C#Copypublic ulong RequestInference(MediaVisionSource source)
Parameters
| Type | Name | Description |
|---|---|---|
| MediaVisionSource | source | The image data to detect pose landmark. |
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.
Points can be empty, if there's no detected pose landmark.
Note that this method could use about twice as much memory as Inference(MediaVisionSource).
Exceptions
| Type | Condition |
|---|---|
| System.ObjectDisposedException | The InferencePoseLandmarkDetector already has been disposed. |
| System.ArgumentNullException |
|