Table of Contents

Class ImageTarget

네임스페이스
easyar
어셈블리
EasyAR.Sense.dll

ImageTarget planar image의 target을 나타냅니다, which can be tracked by `ImageTracker`_. Values in ImageTarget must first be filled by create... methods before they can be read. Then, after it is successfully loaded into `ImageTracker`_ through `ImageTracker.loadTarget`_, it can be detected and tracked by `ImageTracker`_.

public class ImageTarget : Target, IDisposable
상속
ImageTarget
구현
상속된 멤버

생성자

ImageTarget()

public ImageTarget()

메서드

Clone()

public ImageTarget Clone()

aspectRatio()

Aspect ratio of the image.

public virtual float aspectRatio()

createFromImageFile(string, StorageType, string, string, string, float)

생성합니다 from an image. If not needed, name, uid, and meta can be empty strings, and scale can use the default value 1. jpeg or png files are supported.

public static Optional<ImageTarget> createFromImageFile(string path, StorageType storageType, string name, string uid, string meta, float scale)

매개 변수

path
storageType
name
uid
meta
scale

createFromParameters(ImageTargetParameters)

생성합니다 from parameters.

public static Optional<ImageTarget> createFromParameters(ImageTargetParameters parameters)

매개 변수

parameters

createFromTargetData(Buffer)

생성합니다 from an etd data buffer.

public static Optional<ImageTarget> createFromTargetData(Buffer buffer)

매개 변수

buffer

createFromTargetFile(string, StorageType)

생성합니다 from an etd file.

public static Optional<ImageTarget> createFromTargetFile(string path, StorageType storageType)

매개 변수

path
storageType

images()

가져옵니다 the list of images stored in the target. This method is usually used to get the recognition images of a target returned from the cloud.

public virtual List<Image> images()

meta()

가져옵니다 the meta data set by setMetaData. Or, in a target returned by cloud recognition, gets the meta data set by the server.

public override string meta()

name()

가져옵니다 the target name. The name is used to distinguish targets in a json file.

public override string name()

runtimeID()

가져옵니다 the target id. target id is integer data created at runtime and is valid (non-zero) only after successful configuration. This id is non-zero and globally incremental.

public override int runtimeID()

save(string)

Saves as an etd file.

public virtual bool save(string path)

매개 변수

path

scale()

Scale ratio of the image. Its value is the ratio between the physical width of the image and 1 meter. The default value is 1.

public virtual float scale()

setMeta(string)

설정합니다 meta data. This operation overrides the previous setting or data returned by the server.

public override void setMeta(string data)

매개 변수

data

setName(string)

설정합니다 the target name. This operation overrides the previous setting or data returned by the server.

public override void setName(string name)

매개 변수

name

setScale(float)

Sets the scale ratio of the image. After it is set, it overrides the default value and the value set in the json file. Its value is the ratio between the physical width of the image and 1 meter. The default value is 1. This model scale also needs to be set separately in the rendering engine.

public virtual bool setScale(float scale)

매개 변수

scale

uid()

가져옵니다 the target uid. The uid of ImageTarget is used in the cloud recognition algorithm. When cloud recognition is not integrated, you can set this uid in json configuration and use it in your own code as another way to distinguish targets.

public override string uid()