代码拉取完成,页面将自动刷新
All the code files and folders follow the following structure.
├── CPP
│ ├── channel_experiments
│ │ ├── channel_experiments.cpp
│ │ └── CMakeLists.txt
│ ├── contour_approximations
│ │ ├── CMakeLists.txt
│ │ └── contour_approx.cpp
│ └── contour_extraction
│ ├── CMakeLists.txt
│ └── contour_extraction.cpp
├── input
│ ├── custom_colors.jpg
│ ├── image_1.jpg
│ └── image_2.jpg
├── python
│ ├── channel_experiments
│ │ └── channel_experiments.py
│ ├── contour_approximations
│ │ └── contour_approx.py
│ └── contour_extraction
│ └── contour_extraction.py
└── README.md
To run the code in Python, please go into the python
folder and execute the Python scripts in each of the respective sub-folders.
To run the code in C++, please go into the cpp
folder, then go into each of the respective sub-folders and follow the steps below:
mkdir build
cd build
cmake ..
cmake --build . --config Release
cd ..
./build/channel_experiments
mkdir build
cd build
cmake ..
cmake --build . --config Release
cd ..
./build/contour_approximations
mkdir build
cd build
cmake ..
cmake --build . --config Release
cd ..
./build/contour_extraction
Want to become an expert in AI? AI Courses by OpenCV is a great place to start.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。