I've been experimenting with some image enhancement to allow my OCR software to read barcodes better.
I first receive a "poor" scan of a dotmatrix report. This report has a barcode in the corner. My first step was to crop out this barcode from the main image.
Code: Select all
convert document.tif -crop 975x275+0+0 bcode.pnm
Code: Select all
/composite -compose multiply -geomtry -0-1 bcode.pnm bcode.pnm boldcode.pnm
Code: Select all
convert -median 1 boldcode.pnm
Thanks in advance for your tips & advice!
Wand-config --version = 6.2.9, RHEL4 2.6.9-42.0.2.ELsmp