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)
为了找到条码的位置,通常采用梯度差法。如果我们在条形码上采用对比度梯度,我们会在水平方向上获得高梯度,而在垂直方向上获得低梯度。因此,当它们的差异(即水平梯度-垂直梯度)最大时,我们就取条形码的位置。
请参考这些论文:读取条形码
以下链接也涉及此问题:链接 1 ,链接 2
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.
Please refer to these paper: Reading Barcodes
Following links also deals with this : Link 1, Link 2