Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
任务是:在此图像上找到给定红色多边形的所有 4 个角
如果所有边界都可见,我知道如何找到所有角落(线性外推,呸,容易)。
我的问题是,如果我们看不到底边,如何寻找底角?
答案很简单。你不能。
如果您没有矩形的两个尺寸,您将找不到丢失的角。您无法知道该矩形在图像之外延伸了多远。
对于您的示例,唯一的方法是假设角 3 位于图像边框上。然后你可以计算缺失的第四个角。