代码拉取完成,页面将自动刷新
Create a custom low-cost stereo camera and capture depth maps with it using OpenCV.
All the code files and folders follow the following structure.
├── cpp
│ ├── disparity2depth_calib.cpp
│ ├── disparity_params_gui.cpp
│ ├── obstacle_avoidance.cpp
│ └── CMakeLists.txt
├── data
│ ├── depth_estimation_params.xml
│ ├── depth_estimation_params_cpp.xml
│ ├── depth_estmation_params_py.xml
│ ├── depth_params.xml
│ └── stereo_rectify_maps.xml
├── python
│ ├── disparity2depth_calib.py
│ ├── disparity_params_gui.py
│ ├── obstacle_avoidance.py
│ └── requirements.txt
└── README.md
To run the code in C++, please go into the cpp
folder, then compile the disparity_params_gui.cpp
, obstacle_avoidance.cpp
and disparity2depth_calib.cpp
code files, use the following:
mkdir build
cd build
cmake ..
cmake --build . --config Release
./build/disparity_params_gui
./build/disparity2depth_calib
./build/obstacle_avoidance
To run the code in Python, please go into the python
folder and refer to the following to use the disparity_params_gui.py
, obstacle_avoidance.py
and disparity2depth_calib.py
files respectively:
python3 disparity_params_gui.py
python3 disparity2depth_calib.py
python3 obstacle_avoidance.py
Want to become an expert in AI? AI Courses by OpenCV is a great place to start.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。