![MYNTAI MYNT EYE D-Series Documentation Download Page 25](http://html1.mh-extra.com/html/myntai/mynt-eye-d-series/mynt-eye-d-series_documentation_1862703025.webp)
MYNT EYE D SDK Documentation, Release 1.8.0
(continued from previous page)
<!--
Device mode
device_color: left_color
X
right_color ? depth x
device_depth: left_color x right_color x depth
X
device_all:
left_color
X
right_color ? depth
X
Note:
X
: available, x: unavailable, ?: depends on #stream_mode
-->
<arg name="dev_mode" default="$(arg device_all)" />
<!-- Set Color Mode form color_raw, color_rectified-->
<arg name="color_mode" default="$(arg color_raw)" />
<!--
Set depth mode
Note: must set DEPTH_RAW to get raw depth values for points
-->
<arg name="depth_mode" default="$(arg depth_raw)" />
<!--
Set resolution from stream_640x480,stream_1280x720,stream_1280x480,stream_2560x720
-->
<arg name="stream_mode" default="$(arg stream_2560x720)" />
<!-- Auto-exposure -->
<arg name="state_ae" default="true" />
<!-- Auto-white balance -->
<arg name="state_awb" default="true" />
<!-- IR intensity -->
<arg name="ir_intensity" default="4" />
<!-- IR Depth Only -->
<arg name="ir_depth_only" default="false" />
<!-- Setup your local gravity here -->
<arg name="gravity" default="9.8" />
2.3 SDK Samples
2.3.1 Get Camera Image
Using
the
DeviceMode::DEVICE_COLOR
function
of
the
API,
you
can
get
color
imageor
use
DeviceMode::DEVICE_ALL
to get color and depth image.
Using
GetStreamData()
to get your data.
Reference code snippet:
// Device mode, default DEVICE_ALL
//
DEVICE_COLOR: IMAGE_LEFT_COLOR y IMAGE_RIGHT_COLOR - IMAGE_DEPTH n
//
DEVICE_DEPTH: IMAGE_LEFT_COLOR n IMAGE_RIGHT_COLOR n IMAGE_DEPTH y
//
DEVICE_ALL:
IMAGE_LEFT_COLOR y IMAGE_RIGHT_COLOR - IMAGE_DEPTH y
// Note: y: available, n: unavailable, -: depends on #stream_mode
params.dev_mode
=
DeviceMode
::
DEVICE_DEPTH;
auto
left_color
=
cam.GetStreamData(ImageType
::
IMAGE_LEFT_COLOR);
(continues on next page)
2.3. SDK Samples
21
Summary of Contents for MYNT EYE D-Series
Page 1: ...MYNT EYE D SDK Documentation Release 1 8 0 MYNTAI Nov 07 2019...
Page 2: ......
Page 12: ...MYNT EYE D SDK Documentation Release 1 8 0 8 Chapter 1 PRODUCT...
Page 38: ...MYNT EYE D SDK Documentation Release 1 8 0 34 Chapter 2 SDK...
Page 58: ...MYNT EYE D SDK Documentation Release 1 8 0 54 Chapter 2 SDK...
Page 72: ...MYNT EYE D SDK Documentation Release 1 8 0 68 Chapter 5 TOOLS SUPPORT...
Page 80: ...MYNT EYE D SDK Documentation Release 1 8 0 76 Chapter 6 OPEN SOURCE SUPPORT...
Page 96: ...MYNT EYE D SDK Documentation Release 1 8 0 92 Chapter 7 API DOCS...
Page 106: ...MYNT EYE D SDK Documentation Release 1 8 0 102 Chapter 8 Android API DOCS...
Page 108: ...MYNT EYE D SDK Documentation Release 1 8 0 104 Chapter 9 TECHNICAL SUPPORT...