Quick Capture Tutorial

Introduction

이 튜토리얼에서는 Zivid SDK를 사용하여 포인트 클라우드를 캡처하는 가장 기본적인 방법을 설명합니다.

Prerequisites

Initialize

Zivid SDK에서 API를 호출하려면 Zivid 애플리케이션을 초기화하고 프로그램이 실행되는 동안 활성 상태를 유지해야 합니다.

소스로 이동

소스

Zivid::Application zivid;
소스로 이동

소스

var zivid = new Zivid.NET.Application();
소스로 이동

소스

app = zivid.Application()

Connect

소스로 이동

소스

auto camera = zivid.connectCamera();
소스로 이동

소스

var camera = zivid.ConnectCamera();
소스로 이동

소스

camera = app.connect_camera()

Configure

소스로 이동

source

const auto settings = Zivid::Settings(settingsPath);
소스로 이동

소스

var settings = new Zivid.NET.Settings(settingsFile);
소스로 이동

source

settings = zivid.Settings.load(user_options.settings_path)

Capture

소스로 이동

소스

const auto frame = camera.capture2D3D(settings);
소스로 이동

소스

using (var frame = camera.Capture2D3D(settings))
소스로 이동

소스


frame = camera.capture_2d_3d(settings)

Save

소스로 이동

소스

const auto dataFile = "Frame.zdf";
frame.save(dataFile);
소스로 이동

소스

var dataFile = "Frame.zdf";
frame.Save(dataFile);
소스로 이동

소스

data_file = "Frame.zdf"
frame.save(data_file)

소스로 이동

소스

const auto dataFilePLY = "PointCloud.ply";
frame.save(dataFilePLY);
소스로 이동

소스

var dataFilePLY = "PointCloud.ply";
frame.Save(dataFilePLY);
소스로 이동

소스

data_file_ply = "PointCloud.ply"
frame.save(data_file_ply)

다른 내보내기 옵션에 대해서는 지원되는 형식 목록을 보려면 Point Cloud 를 참조하세요.

Utilize

소스로 이동

소스

const auto pointCloud = frame.pointCloud();
const auto data = pointCloud.copyData<Zivid::PointXYZColorRGBA_SRGB>();
소스로 이동

소스

var pointCloud = frame.PointCloud;
var pointCloudData = pointCloud.CopyPointsXYZColorsRGBA();
소스로 이동

소스

point_cloud = frame.point_cloud()
xyz = point_cloud.copy_data("xyz")
rgba = point_cloud.copy_data("rgba_srgb")

  1. Zivid Studio 에서 Presets 내용을 YML로 내보낼 수 있습니다.

  2. Zivid Studio 에서 Frame.zdf 파일을 열어서 볼 수 있습니다.

Conclusion

이 튜토리얼은 Zivid SDK를 사용하여 Zivid 카메라에 연결, 캡처 및 저장하는 가장 기본적인 방법을 보여줍니다.

더 자세한 튜토리얼을 보려면 Capture Tutorial 를 확인하십시오.