資源簡介
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?<????????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視野場.視線視角錐可視化效果
評論
共有 條評論