1 Star 5 Fork 1

cubone/learnopencv

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Contour Detection using OpenCV

Directory Structure

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

Instructions

Python

To run the code in Python, please go into the python folder and execute the Python scripts in each of the respective sub-folders.

C++

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

AI Courses by OpenCV

Want to become an expert in AI? AI Courses by OpenCV is a great place to start.

img

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cubone/learnopencv.git
git@gitee.com:cubone/learnopencv.git
cubone
learnopencv
learnopencv
master

搜索帮助