Target Class

This type is an EasyAR Sense API in C#: Target .

Description

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


Methods

runtimeID

C#

public virtual int runtimeID()

Returns the target id. A target id is a integer number generated at runtime. This id is non-zero and increasing globally.

uid

C#

public virtual string uid()

Returns the target uid. A target uid is useful in cloud based algorithms. If no cloud is used, you can set this uid in the json config as a alternative method to distinguish from targets.

name

C#

public virtual string name()

Returns the target name. Name is used to distinguish targets in a json file.

setName

C#

public virtual void setName(string name)

Set name. It will erase previously set data or data from cloud.

meta

C#

public virtual string meta()

Returns the meta data set by setMetaData. Or, in a cloud returned target, returns the meta data set in the cloud server.

setMeta

C#

public virtual void setMeta(string data)

Set meta data. It will erase previously set data or data from cloud.