如何辨别不同颜色的条纹

发布于 2024-12-19 11:19:18 字数 516 浏览 0 评论 0原文

如何识别扫描图像(位图 200x200dpi 24 位)内部是否存在不同颜色的规则条纹,但范围从非常非常非常浅的粉色到黑色。 举几个例子。

示例 1

 uno

示例 2(这些行位于除最后一列第二行中的 7 行之外的所有列中)

due

现在尝试识别(使用 python 语言)是否存在对于从白色到每个条带的不同颜色的存在,至少 5-10 个像素,但是,并不总是有效,因为扫描的图像质量不高,并且条带改变的颜色与其周围的颜色非常相似。

谢谢。

how can I identify the presence or absence of regular stripes of different colors, but ranging from very very very very light pink to black inside of a scanned image (bitmap 200x200dpi 24-bit).
Carry a few examples.

Example 1

uno

Example 2 (the lines are in all the columns except 7 in the second row of the last column)

due

For now try to identify (using python language) whether or not there is at least 5-10 pixels for the presence of different color from white to each strip, however, does not always work because the scanned image is not of high quality and the strip changes color very similar to color that surrounds it.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

黯淡〆 2024-12-26 11:19:18

在我看来,这看起来是图像中的连接组件标签,用于识别特定颜色范围的离散区域。您可以查看cvBlobLib。如果相邻像素之间存在空洞或微小变化,则需要进行一些预处理来合并像素。

This looks to me a connected component labeling in an image to identify discrete regions of certain color range. You can have a look to cvBlobLib. Some pre-processing would be required to merge the pixels if there are holes or small variations between neighbors.

梦晓ヶ微光ヅ倾城 2024-12-26 11:19:18

不会发生的。人类视觉系统比任何图像处理系统都要好得多,而且我在#3的第二行中看不到任何东西。 #1 和 #5 也有争议。

您需要找到某种方法来提高输入的光学质量。

Not going to happen. The human visual system is far better than any image processing system, and I don't see anything in the 2nd row of #3. #1 and #5 are also debatable.

You need to find some way to increase the optical quality of your input.

殊姿 2024-12-26 11:19:18

搜索分割算法,门槛低。
由于边缘很锋利,它应该会给您带来良好的结果。

索贝尔将是一个好的开始;)

Search for segmentation algorithm ,with a low threshold.
It should give you good results as the edges are sharp.

Sobel would be a good start ;)

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