openCv中的线相交轮廓
我有一个物体轮廓..和一条线..
物体正在移动..但线保持不变..
我想知道轮廓与线相交的点..
例如:- 以赛车为例,其中终点线是..
我有汽车和终点线的轮廓。
我想知道轮廓上与终点线相交的点。
I have a contour of object..and a line..
Object is moving..but line is constant..
I want to know the points at which contour intersects the line..
For example:- Take example of Car Race in which their is finish line..
I have a contour of Car and finish line.
I want to know the points on contour which intersects the finish line.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将对象轮廓与线轮廓相交(使用 numpy.logic_and( object_mask, line_mask ) ),所得图像非零的所有点都是交点。
Intersect the object contour with the line contour (use
numpy.logical_and( object_mask, line_mask )
) and all points where the resulting image is non-zero are the points of intersection.