
你具体要做什么?你这么问,得不到想要的答案。
他的意思是怎么识别出这一坨色块的边界然后返回边界在相机中的坐标吧
一般来说找到所有边界的像素点意义不大,都是直接find_lines找直线。
@kidswong999 找到直线后怎么求出视野中最长的直线并获取直线的坐标呢?
那不是直线,是线段,用find_line_segments
https://docs.singtown.com/micropython/zh/latest/openmvcam/library/omv.image.html#image.Image.image.find_line_segments
写for循环遍历,判断length
https://docs.singtown.com/micropython/zh/latest/openmvcam/library/omv.image.html#image.line.line.length