资源简介
zed-examples-master.zip
代码片段和文件信息
///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2018 STEREOLABS.
//
// All rights reserved.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// “AS IS“ AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL
// SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT
// LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE
// DATA OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
///////////////////////////////////////////////////////////////////////////
/********************************************************************************
** This sample demonstrates how to grab images and change the camera settings **
** with the ZED SDK **
********************************************************************************/
// Standard includes
#include
#include
// ZED include
#include
// OpenCV include (for display)
#include
// Using std and sl namespaces
using namespace std;
using namespace sl;
// Sample functions
void updateCameraSettings(char key sl::Camera &zed);
void switchCameraSettings();
void printHelp();
// Sample variables
CAMERA_SETTINGS camera_settings_ = CAMERA_SETTINGS_BRIGHTNESS;
string str_camera_settings = “BRIGHTNESS“;
int step_camera_setting = 1;
int main(int argc char **argv) {
// Create a ZED Camera object
Camera zed;
// Open the camera
ERROR_CODE err = zed.open();
if (err != SUCCESS) {
cout << toString(err) << endl;
zed.close();
return 1; // Quit if an error occurred
}
// Print help in console
printHelp();
// Print camera information
printf(“ZED Model : %s\n“ toString(zed.getCameraInformation().camera_model).c_str());
printf(“ZED Serial Number : %d\n“ zed.getCameraInformation().serial_number);
printf(“ZED Firmware : %d\n“ zed.getCameraInformation().firmware_version);
printf(“ZED Camera Resolution : %dx%d\n“ (int) zed.getResolution().width (int) zed.getResolution().height);
printf(“ZED Camera FPS : %d\n“ (int) zed.getCameraFPS());
// Create a Mat to store images
Mat zed_image;
// Capture new images until ‘q‘ is pressed
char key = ‘ ‘;
while (key != ‘q‘) {
// Check that grab() is successful
if (zed.grab() == SUCCESS) {
// Retrieve left image
zed.retrieveImage(
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-10-25 08:54 zed-examples-master\
文件 1068 2018-10-25 08:54 zed-examples-master\LICENSE
文件 1293 2018-10-25 08:54 zed-examples-master\README.md
目录 0 2018-10-25 08:54 zed-examples-master\camera control\
文件 1037 2018-10-25 08:54 zed-examples-master\camera control\CMakeLists.txt
文件 1946 2018-10-25 08:54 zed-examples-master\camera control\README.md
目录 0 2018-10-25 08:54 zed-examples-master\camera control\src\
文件 7345 2018-10-25 08:54 zed-examples-master\camera control\src\main.cpp
目录 0 2018-10-25 08:54 zed-examples-master\depth sensing\
文件 1563 2018-10-25 08:54 zed-examples-master\depth sensing\CMakeLists.txt
文件 1452 2018-10-25 08:54 zed-examples-master\depth sensing\README.md
目录 0 2018-10-25 08:54 zed-examples-master\depth sensing\include\
文件 7377 2018-10-25 08:54 zed-examples-master\depth sensing\include\GLViewer.hpp
目录 0 2018-10-25 08:54 zed-examples-master\depth sensing\src\
文件 22075 2018-10-25 08:54 zed-examples-master\depth sensing\src\GLViewer.cpp
文件 4012 2018-10-25 08:54 zed-examples-master\depth sensing\src\main.cpp
目录 0 2018-10-25 08:54 zed-examples-master\other\
目录 0 2018-10-25 08:54 zed-examples-master\other\cuda refocus\
文件 1469 2018-10-25 08:54 zed-examples-master\other\cuda refocus\CMakeLists.txt
文件 1413 2018-10-25 08:54 zed-examples-master\other\cuda refocus\README.md
目录 0 2018-10-25 08:54 zed-examples-master\other\cuda refocus\include\
文件 1410 2018-10-25 08:54 zed-examples-master\other\cuda refocus\include\dof_gpu.h
目录 0 2018-10-25 08:54 zed-examples-master\other\cuda refocus\src\
文件 8974 2018-10-25 08:54 zed-examples-master\other\cuda refocus\src\dof_gpu.cu
文件 8383 2018-10-25 08:54 zed-examples-master\other\cuda refocus\src\main.cpp
目录 0 2018-10-25 08:54 zed-examples-master\plane detection\
文件 1535 2018-10-25 08:54 zed-examples-master\plane detection\CMakeLists.txt
文件 1771 2018-10-25 08:54 zed-examples-master\plane detection\README.md
目录 0 2018-10-25 08:54 zed-examples-master\plane detection\include\
文件 509 2018-10-25 08:54 zed-examples-master\plane detection\include\GLob
文件 379 2018-10-25 08:54 zed-examples-master\plane detection\include\Shader.hpp
............此处省略68个文件信息
- 上一篇:操作系统实验.rar
- 下一篇:Unity视野场.视线视角锥可视化效果
相关资源
- bk.cmhaaoso.top.zip
- 2019_全国大学生电子设计大赛_C题_线路
- 37724122try_fxlms.rar
- UCI数据集data格式.rar
- baiduyuanpan.txt
- 分形高斯噪声完整版.zip
- CenterLib.rar
- reptilercnaxxo.zip
- 463.txt
- 小程序入门到实战.txt
- checkcode.exe
- C600磁盘阵列驱动.zip
- BaiduPanKey.rar
- ssm框架视频.txt
- ISE14.7.txt
- 世界地图shp.zip
- 1111.txt
- 现代操作系统第四版答案.zip
- 全功能codewarrior破解教程.rar
- 积分兑换小程序源码.rar
- 1bbaa9493bf64fa6b626d351c0c84423.zip
- qp198906011234_1095678.zip
- 论文.rar
- alien_invasion.rar
- ship.bmp
- 鱼雷尾追弹道.rar
- 哈夫曼编码.zip
- 转换工具[zj1244].rar
- MultiDesk7.2.zip
- KEPServerEX_6.6注册.rar
评论
共有 条评论