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 个角的坐标来提取 ROI。
您会建议使用哪种 OpenCV 技术?我正在考虑使用 k 手段,但我无法先验地知道背景的颜色(对象内部的颜色也可能不同)
如果您的背景对比度非常低,为什么不尝试从图像边界进行泛光填充,然后您可以获得边界框或边界矩形。
另一种选择是应用霍夫变换并将大多数外线的交点作为角。也就是说,如果您的对象是矩形的。