如何查找图像中条形码的位置 [英] How to find the location of barcode in an image

查看:333
本文介绍了如何查找图像中条形码的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在图片中找到条形码的位置?

How can I find the location of barcode in an image?

原始图片

Original Image

推荐答案

为了找到条形码的位置,采取。如果我们在条形码上取对比度梯度,我们在水平方向获得高梯度,而在垂直方向获得低梯度。因此,他们的差异(即水平梯度 - 垂直梯度)是最大的,我们取条形码的位置。

To find the location of barcode, normally differences of gradient method is taken. If we take contrast gradient across a barcode, we get high gradient in horizontal direction while low gradient in vertical direction. So where their difference (ie horizontal gradient-vertical gradient) is maximum, we take position of barcode.

请参阅这些文章:阅读条形码

以下链接还涉及到:链接1 链接2

Following links also deals with this : Link 1, Link 2

这篇关于如何查找图像中条形码的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆