Table of Contents

Class Target

Namespace
easyar
Assembly
EasyAR.Sense.dll

Target is the base class for all targets that can be tracked by `ImageTracker`_ or other algorithms in EasyAR.

public class Target : RefBase, IDisposable
Inheritance
Target
Implements
Derived
Inherited Members

Methods

Clone()

public Target Clone()

Returns

CloneObject()

protected override object CloneObject()

Returns

meta()

Get the meta data set by setMetaData. Or, in a target returned by cloud recognition, get the meta data set by the server.

public virtual string meta()

Returns

name()

Get the target name. The name is used to distinguish targets in the json file.

public virtual string name()

Returns

runtimeID()

Get the target id. The target id is an integer created at runtime, and it is valid (non-zero) only after successful configuration. This id is non-zero and globally incremental.

public virtual int runtimeID()

Returns

setMeta(string)

Set meta data. This operation will overwrite the previous setting or data returned by the server.

public virtual void setMeta(string data)

Parameters

data

setName(string)

Set the target name. This operation will overwrite the previous setting or data returned by the server.

public virtual void setName(string name)

Parameters

name

uid()

Get the target uid. The uid of ImageTarget is used in cloud recognition algorithms. When cloud recognition is not connected, you can set this uid in the json configuration, and use it as another way to distinguish targets in your own code.

public virtual string uid()

Returns