问题
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