Class ImageClassifier

Definition

Namespace:
Tizen.Multimedia.Vision
Assembly:
Tizen.Multimedia.Vision.dll
API Level:
6

Provides the ability to classify image objects on image source using inference engine.

C#
Copy
public static class ImageClassifier
Inheritance
System.Object
ImageClassifier

Methods

View Source

ClassifyAsync(MediaVisionSource, InferenceModelConfiguration)

Classifies image objects on the source image using inference engine set in config.
Each time when DetectAsync is called, a set of the detected faces at the media source are received asynchronously.

Declaration
C#
Copy
public static Task<IEnumerable<ImageClassificationResult>> ClassifyAsync(MediaVisionSource source, InferenceModelConfiguration config)
Parameters
Type Name Description
MediaVisionSource source

The source of the media where faces will be detected.

InferenceModelConfiguration config

The engine's configuration that will be used for classifying.

Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<ImageClassificationResult>>

A task that represents the asynchronous classify operation.
If there's no classified image object, empty collection will be returned.

Exceptions
Type Condition
System.ArgumentNullException

source or config is null.

System.InvalidOperationException

Internal error.

System.NotSupportedException

The feature is not supported.

UnauthorizedAccessException

The caller has no required privilege.

API Level: 6
Feature: http://tizen.org/feature/vision.inferencehttp://tizen.org/feature/vision.inference.image