How to find the location of barcode in an image

a 夏天 提交于 2019-12-01 20:53:48

问题


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

Original Image


回答1:


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



来源:https://stackoverflow.com/questions/8999080/how-to-find-the-location-of-barcode-in-an-image

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!