Class Target
- Namespace
- easyar
- Assembly
- EasyAR.Sense.dll
Target is the base class of all targets in EasyAR that can be tracked by `ImageTracker`_ or other algorithms.
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 the target returned by cloud recognition, obtain 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 data created at runtime and is valid (non-zero) only after successful configuration. This id is non-zero and globally increasing.
public virtual int runtimeID()
Returns
setMeta(string)
Set meta data. This operation will overwrite the previous setting or the 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 the 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 the cloud recognition algorithm. When not accessing cloud recognition, 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()