Table of Contents

Class InertialCameraDevice

네임스페이스
easyar

InertialCameraDevice implements a camera device based on motion inertia, outputting InputFrame whose CameraTransformType is FiveDofRotXZ (including image, camera parameters, timestamp, pose transform matrix, and tracking status). After creation, start/stop can be called to start and stop video stream data collection. When the device is no longer needed, close can be called to close it. It should not be used after close. InertialCameraDevice outputs InputFrame through inputFrameSource. inputFrameSource should be connected to InputFrameSink for use. bufferCapacity indicates the capacity of the InputFrame buffer. If more than this number of InputFrame objects are output from the device and not released, the device will stop outputting new InputFrame objects until previous InputFrame objects are released. This may cause problems such as a frozen image.

InertialCameraDevice

생성자

InertialCameraDevice

생성합니다 by default.

void easyar_InertialCameraDevice__ctor(easyar_InertialCameraDevice * * Return)
InertialCameraDevice()
public InertialCameraDevice()
constructor()
+ (easyar_InertialCameraDevice *) create
public convenience init()
public InertialCameraDevice()

메서드

isAvailable

확인합니다 whether it is available. Returns true only on Android 7.0 and above (API Level 24+) when the accelerometer, gyroscope, and pose sensor are available.

bool easyar_InertialCameraDevice_isAvailable(void)
static bool isAvailable()
public static boolean isAvailable()
companion object fun isAvailable(): Boolean
+ (bool)isAvailable
public static func isAvailable() -> Bool
public static bool isAvailable()

반환 값

형식 설명
Boolean

bufferCapacity

Capacity of the InputFrame buffer. The default value is 8.

int easyar_InertialCameraDevice_bufferCapacity(const easyar_InertialCameraDevice * This)
int bufferCapacity()
public int bufferCapacity()
fun bufferCapacity(): Int
- (int)bufferCapacity
public func bufferCapacity() -> Int32
public virtual int bufferCapacity()

반환 값

형식 설명
Int32

setBufferCapacity

설정합니다 the capacity of the InputFrame buffer.

void easyar_InertialCameraDevice_setBufferCapacity(easyar_InertialCameraDevice * This, int capacity)
void setBufferCapacity(int capacity)
public void setBufferCapacity(int capacity)
fun setBufferCapacity(capacity: Int): Unit
- (void)setBufferCapacity:(int)capacity
public func setBufferCapacity(_ capacity: Int32) -> Void
public virtual void setBufferCapacity(int capacity)

매개 변수

이름 형식 설명
capacity Int32

반환 값

형식 설명
Void

inputFrameSource

InputFrame output port.

void easyar_InertialCameraDevice_inputFrameSource(easyar_InertialCameraDevice * This, easyar_InputFrameSource * * Return)
std::shared_ptr<InputFrameSource> inputFrameSource()
public @Nonnull InputFrameSource inputFrameSource()
fun inputFrameSource(): InputFrameSource
- (easyar_InputFrameSource *)inputFrameSource
public func inputFrameSource() -> InputFrameSource
public virtual InputFrameSource inputFrameSource()

반환 값

형식 설명
InputFrameSource

setFocusMode

설정합니다 the focus mode to focusMode. Call before start.

void easyar_InertialCameraDevice_setFocusMode(easyar_InertialCameraDevice * This, easyar_InertialCameraDeviceFocusMode focusMode)
void setFocusMode(InertialCameraDeviceFocusMode focusMode)
public void setFocusMode(int focusMode)
fun setFocusMode(focusMode: Int): Unit
- (void)setFocusMode:(easyar_InertialCameraDeviceFocusMode)focusMode
public func setFocusMode(_ focusMode: InertialCameraDeviceFocusMode) -> Void
public virtual void setFocusMode(InertialCameraDeviceFocusMode focusMode)

매개 변수

이름 형식 설명
focusMode InertialCameraDeviceFocusMode

반환 값

형식 설명
Void

type

camera type. Call after successful open.

easyar_CameraDeviceType easyar_InertialCameraDevice_type(const easyar_InertialCameraDevice * This)
CameraDeviceType type()
public int type()
fun type(): Int
- (easyar_CameraDeviceType)type
public func type() -> CameraDeviceType
public virtual CameraDeviceType type()

반환 값

형식 설명
CameraDeviceType

cameraOrientation

The clockwise rotation angle required when displaying the camera image in the device natural orientation. Call after successful open.

int easyar_InertialCameraDevice_cameraOrientation(const easyar_InertialCameraDevice * This)
int cameraOrientation()
public int cameraOrientation()
fun cameraOrientation(): Int
- (int)cameraOrientation
public func cameraOrientation() -> Int32
public virtual int cameraOrientation()

반환 값

형식 설명
Int32

size

가져옵니다 the current image size. Call after successful open.

easyar_Vec2I easyar_InertialCameraDevice_size(const easyar_InertialCameraDevice * This)
Vec2I size()
public @Nonnull Vec2I size()
fun size(): Vec2I
- (easyar_Vec2I *)size
public func size() -> Vec2I
public virtual Vec2I size()

반환 값

형식 설명
Vec2I

supportedSizeCount

가져옵니다 the number of all image sizes supported by the current device. Call after successful open.

int easyar_InertialCameraDevice_supportedSizeCount(const easyar_InertialCameraDevice * This)
int supportedSizeCount()
public int supportedSizeCount()
fun supportedSizeCount(): Int
- (int)supportedSizeCount
public func supportedSizeCount() -> Int32
public virtual int supportedSizeCount()

반환 값

형식 설명
Int32

supportedSize

가져옵니다 the index-th image size among all image sizes supported by the current device. If index is out of range, returns {0, 0}. Call after successful open.

easyar_Vec2I easyar_InertialCameraDevice_supportedSize(const easyar_InertialCameraDevice * This, int index)
Vec2I supportedSize(int index)
public @Nonnull Vec2I supportedSize(int index)
fun supportedSize(index: Int): Vec2I
- (easyar_Vec2I *)supportedSize:(int)index
public func supportedSize(_ index: Int32) -> Vec2I
public virtual Vec2I supportedSize(int index)

매개 변수

이름 형식 설명
index Int32

반환 값

형식 설명
Vec2I

setSize

설정합니다 the current image size. The available value closest to the set value will be used. The actual size can be obtained with size. Call after successful open. frameRateRange may change after setting size.

bool easyar_InertialCameraDevice_setSize(easyar_InertialCameraDevice * This, easyar_Vec2I size)
bool setSize(Vec2I size)
public boolean setSize(@Nonnull Vec2I size)
fun setSize(size: Vec2I): Boolean
- (bool)setSize:(easyar_Vec2I *)size
public func setSize(_ size: Vec2I) -> Bool
public virtual bool setSize(Vec2I size)

매개 변수

이름 형식 설명
size Vec2I

반환 값

형식 설명
Boolean

open

Opens the device back camera. If opening fails, returns false.

bool easyar_InertialCameraDevice_open(easyar_InertialCameraDevice * This)
bool open()
public boolean open()
fun open(): Boolean
- (bool)open
public func `open`() -> Bool
public virtual bool open()

반환 값

형식 설명
Boolean

start

시작합니다 collecting video stream data.

bool easyar_InertialCameraDevice_start(easyar_InertialCameraDevice * This)
bool start()
public boolean start()
fun start(): Boolean
- (bool)start
public func start() -> Bool
public virtual bool start()

반환 값

형식 설명
Boolean

stop

중지합니다 collecting video stream data.

void easyar_InertialCameraDevice_stop(easyar_InertialCameraDevice * This)
void stop()
public void stop()
fun stop(): Unit
- (void)stop
public func stop() -> Void
public virtual void stop()

반환 값

형식 설명
Void

reset

재설정합니다 state.

void easyar_InertialCameraDevice_reset(easyar_InertialCameraDevice * This)
void reset()
public void reset()
fun reset(): Unit
- (void)reset
public func reset() -> Void
public virtual void reset()

반환 값

형식 설명
Void

close

닫습니다. It should not be used after close.

void easyar_InertialCameraDevice_close(easyar_InertialCameraDevice * This)
void close()
public void close()
fun close(): Unit
- (void)close
public func close() -> Void
public virtual void close()

반환 값

형식 설명
Void

frameRateRangeLower

가져옵니다 the lower bound of the current frame rate range. Call after successful open.

double easyar_InertialCameraDevice_frameRateRangeLower(const easyar_InertialCameraDevice * This)
double frameRateRangeLower()
public double frameRateRangeLower()
fun frameRateRangeLower(): Double
- (double)frameRateRangeLower
public func frameRateRangeLower() -> Double
public virtual double frameRateRangeLower()

반환 값

형식 설명
Double

frameRateRangeUpper

가져옵니다 the upper bound of the current frame rate range. Call after successful open.

double easyar_InertialCameraDevice_frameRateRangeUpper(const easyar_InertialCameraDevice * This)
double frameRateRangeUpper()
public double frameRateRangeUpper()
fun frameRateRangeUpper(): Double
- (double)frameRateRangeUpper
public func frameRateRangeUpper() -> Double
public virtual double frameRateRangeUpper()

반환 값

형식 설명
Double