Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
想识别到马路的两个边缘,然后得到马路上某个色块距离左边缘和右边缘的距离,应该怎么弄啊
不好弄,你最好发一下图片
比如说,我想知道黑色块离左边距离和离右边的距离,怎么弄呢
线段识别获得两个边缘的坐标,颜色识别获取色块的坐标。根据坐标计算出像素点的距离。
像素点与实际距离的换算,可以参考测距教程http://book.openmv.cc/image/ranging.html
色块坐标会获取,那个线段的坐标不怎么懂
线段识别返回的是线段两个顶点的坐标