提交 c65c49b6 编写于 作者: F feilong

fix png

上级 c9c8dc62
......@@ -2,11 +2,11 @@
OpenCV 里的连通区域分析可以将具有相同像素值且位置相邻的前景像素点组成的图像区域识别出来。有两种像素相邻的定义:
![](data/1.OpenCV初阶/2.二值图像处理/4.连通区域分析/pixel_region.jpg)
![](https://gitcode.net/csdn/skill_tree_opencv/-/raw/master/data/1.OpenCV初阶/2.二值图像处理/4.连通区域分析/pixel_region.jpg)
通过OpenCV的连通区域分析算法,我们可以将下图的水鸭子的外框框出来:
![](data/1.OpenCV初阶/2.二值图像处理/4.连通区域分析/duck_box.png)
![](https://gitcode.net/csdn/skill_tree_opencv/-/raw/master/data/1.OpenCV初阶/2.二值图像处理/4.连通区域分析/duck_box.png)
框架代码如下:
......
......@@ -32,7 +32,8 @@ class ImgWalker():
md_lines = simple_list_md_load(md_file)
md_new = []
for line in md_lines:
new_line = line.replace('![](./', f'![]({base}/')
new_line = line.replace(
'![](./', f'![](https://gitcode.net/csdn/skill_tree_opencv/-/raw/master/{base}/')
md_new.append(new_line)
md_new.append('')
simple_list_md_dump(md_file, md_new)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册