1bpp 图像中的简单形状检测
我正在尝试了解我正在从事的项目的简单形状检测。
我有一个仅由黑白像素组成的图像,我需要检测图像中的形状,例如正方形和椭圆形。我还需要找到形状的边界框。
我一直在网上搜索并阅读文章,但我找不到任何关于从哪里开始的好的解释。
我也在寻找一些部分/完整的代码示例,最好是 Java 或 C++ 的。
谢谢!
I am trying to learn about simple shape detection for a project I'm working on.
I have an image that is made of only black and white pixels and I need to detect shapes within the image, such as squares and ellipses. I also need to find the bounding boxes of the shapes.
I have been searching online and reading articles but I can't find any good explanations of where to start.
I am also looking for some partial/complete code examples preferably in Java or C++.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
进行边缘检测有几种不同的方法,其中一种称为
Canny 边缘检测
。查看 此网站,该网站具有该算法的 Java 实现发布到公共领域。There's a few different ways of doing edge detection, one of the ways is called
Canny Edge Detection
. Check out this website which has a Java implementation of the algorithm that has been released to the public domain.我不知道有哪个库或工具包可以使这种操作变得微不足道,但如果您真的想了解这种逻辑是如何工作的,请从这里开始
I'm not aware of a library or toolkit that makes this kind of operation trivial but if you really want to understand how this kind of logic works, start here http://opencv.willowgarage.com/wiki/