openCv中的线相交轮廓

发布于 2024-12-23 02:12:08 字数 215 浏览 4 评论 0原文

我有一个物体轮廓..和一条线..
物体正在移动..但线保持不变..
我想知道轮廓与线相交的点..

例如:- 以赛车为例,其中终点线是..
我有汽车和终点线的轮廓。
我想知道轮廓上与终点线相交的点。

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

篱下浅笙歌 2024-12-30 02:12:08

将对象轮廓与线轮廓相交(使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文