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()
meta()
Gets the meta data set by setMetaData, or gets the meta data set by the server from a target returned by cloud recognition.
public virtual string meta()
name()
Gets the target name. The name is used to distinguish targets in json files.
public virtual string name()
runtimeID()
Gets the target id. The target id is 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()
setMeta(string)
Sets meta data. This operation overwrites the previous setting or data returned by the server.
public virtual void setMeta(string data)
Parameters
data
setName(string)
Sets the target name. This operation overwrites the previous setting or data returned by the server.
public virtual void setName(string name)
Parameters
name
uid()
Gets the target uid. The uid of ImageTarget is used in cloud recognition algorithms. When cloud recognition is not integrated, you can set this uid in the json configuration and use it in your own code as another way to distinguish targets.
public virtual string uid()