This commit is contained in:
Juwan
2022-07-12 15:44:33 +08:00
committed by GitHub
parent 79102869f8
commit 853fa201ca

View File

@@ -605,9 +605,9 @@
"source": [
"## 【传统视觉基础】寻找色块(颜色识别)\n",
"\n",
"在 0.5.1 后改用 openmv 的实现,原因是 opencv 的实现细节不够丰富。\n",
"> 该功能需要更新到 0.5.1 版本以后,填色的顺序为 [(L 最小值, L 最大值, A 最小值, A 最大值, B 最小值, B 最大值)]。\n",
"\n",
"使用 find_blobs 的查找色块算法,查找图像中符合颜色阈值的色块,可以在列表中放入多个阈值区间进行匹配,通过阈值编辑工具可将目标颜色变成白色意为提取,其他颜色全变为黑色表示忽略。\n",
"使用 find_blobs 的查找色块算法,查找图像中符合 LAB 颜色阈值的色块,可以在列表中放入多个阈值区间进行匹配,通过阈值编辑工具可将目标颜色变成白色意为提取,其他颜色全变为黑色表示忽略。\n",
"\n",
"如 `blue = 13, 54, 11, 48, -91, -28` 为什么是 蓝色 的 lab 阈值,这是因为使用 LAB 阈值工具可以获得两个期望颜色区间的最大和最小的 L A B 值,所以上图对应的下图示意图的顺序。\n",
"\n",
@@ -615,9 +615,9 @@
" <a href=\"https://wiki.sipeed.com/threshold\"><img src=\"../asserts/omv_lab.jpg\" style=\"max-width:640px; max-height:480px;\"></a>\n",
"</div>\n",
"\n",
"> 在 0.4.9 之前阈值顺序为 [(L 最小值, A 最小值, B 最小值, L 最大值, A 最大值, B 最大值)],因此在 0.5.0 以后修正顺序为 [(L 最小值, L 最大值, A 最小值, A 最大值, B 最小值, B 最大值)]。\n",
"现已支持在线图传调试 LAB 阈值 [en.wiki.sipeed.com/threshold](https://en.wiki.sipeed.com/threshold) ,动态调试效果请看实现[https://github.com/junhuanchen/thresholding-filter-browser-html](https://github.com/junhuanchen/thresholding-filter-browser-html)。\n",
"\n",
"现已支持在线图传调试 LAB 阈值 [en.wiki.sipeed.com/threshold](https://en.wiki.sipeed.com/threshold) ,动态调试效果请看实现[https://github.com/junhuanchen/thresholding-filter-browser-html](https://github.com/junhuanchen/thresholding-filter-browser-html))。\n"
"> Lab颜色空间中的L分量用于表示像素的亮度取值范围是 [0,100],表示从纯黑到纯白a表示从红色到绿色的范围取值范围是 [127,-128]b表示从黄色到蓝色的范围取值范围是 [127,-128]。 图1所示为Lab颜色空间的图示 图1 Lab颜色空间\n"
]
},
{