Class ImageTrackingModel

Definition

Namespace:
Tizen.Multimedia.Vision
Assembly:
Tizen.Multimedia.Vision.dll
API Level:
4
Feature:
http://tizen.org/feature/vision.image_recognition

Represents the image tracking model interface.

C#
Copy
public class ImageTrackingModel : IDisposable
Inheritance
System.Object
ImageTrackingModel
Implements
System.IDisposable

Constructors

View Source

ImageTrackingModel()

Initializes a new instance of the ImageTrackingModel class.

Declaration
C#
Copy
public ImageTrackingModel()
Exceptions
Type Condition
System.NotSupportedException

The feature is not supported.

API Level: 4
View Source

ImageTrackingModel(String)

Initializes a new instance of the ImageTrackingModel class with the specified path.

Declaration
C#
Copy
public ImageTrackingModel(string modelPath)
Parameters
Type Name Description
System.String modelPath

Path to the model to load.

Remarks

Model saved by Save(String) can be loaded.

Exceptions
Type Condition
System.ArgumentNullException

modelPath is null.

System.IO.FileNotFoundException

modelPath is invalid.

System.NotSupportedException

The feature is not supported.
-or-
modelPath is not supported format.

UnauthorizedAccessException

No permission to access the specified file.

See Also
API Level: 4

Methods

View Source

Dispose()

Releases all resources used by the ImageTrackingModel object.

Declaration
C#
Copy
public void Dispose()
API Level: 4
View Source

Dispose(Boolean)

Releases the resources used by the ImageTrackingModel object.

Declaration
C#
Copy
protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
Boolean disposing

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

API Level: 4
View Source

Finalize()

Finalizes an instance of the ImageTrackingModel class.

Declaration
C#
Copy
protected void Finalize()
View Source

Refresh()

Refreshes the state of image tracking model.
Clears the moving history and change state to undetected. It is usually called each time before tracking is started for the new sequence of sources, which is not the direct continuation of the sequence for which tracking has been performed before. Tracking algorithm will try to find image by itself.

Declaration
C#
Copy
public void Refresh()
Exceptions
Type Condition
ObjectDisposedException

The ImageTrackingModel has already been disposed of.

API Level: 4
View Source

Save(String)

Saves the tracking model to the file.

Declaration
C#
Copy
public void Save(string path)
Parameters
Type Name Description
System.String path

Path to the file to save the model.

Exceptions
Type Condition
System.ArgumentNullException

path is null.

UnauthorizedAccessException

No permission to write to the specified path.

ObjectDisposedException

The ImageTrackingModel has already been disposed of.

DirectoryNotFoundException

The directory for path does not exist.

API Level: 4
View Source

SetTarget(ImageObject)

Sets the target of the image tracking model.
Sets the image object which will be tracked by using tracking functionality with this tracking model.

Declaration
C#
Copy
public void SetTarget(ImageObject imageObject)
Parameters
Type Name Description
ImageObject imageObject

Image object which will be set as the target for tracking.

Exceptions
Type Condition
System.ArgumentNullException

imageObject is null.

ObjectDisposedException

The ImageTrackingModel has already been disposed of.
-or-
imageObject has already been disposed of.

System.InvalidOperationException

Internal error.(Since API level 10)

API Level: 4

Implements

System.IDisposable