1bpp 图像中的简单形状检测

发布于 2024-12-14 07:25:02 字数 189 浏览 5 评论 0原文

我正在尝试了解我正在从事的项目的简单形状检测。

我有一个仅由黑白像素组成的图像,我需要检测图像中的形状,例如正方形和椭圆形。我还需要找到形状的边界框。

我一直在网上搜索并阅读文章,但我找不到任何关于从哪里开始的好的解释。

我也在寻找一些部分/完整的代码示例,最好是 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 技术交流群。

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

发布评论

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

评论(2

情深缘浅 2024-12-21 07:25:02

进行边缘检测有几种不同的方法,其中一种称为 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.

灼疼热情 2024-12-21 07:25:02

我不知道有哪个库或工具包可以使这种操作变得微不足道,但如果您真的想了解这种逻辑是如何工作的,请从这里开始

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/

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