checkscan - work with a scanned check image
checkscan -q /path/to/check.png
-i increment pixels per iteration, default is 5 -x how many iterations, default is 12 if you set the pixel increment yourself -o crop sides when iterating, value is percent in the form 0.15 where 1 is 100% -b path to micr database, dafaults to /usr/share/micrdb/ -D dust size, default is 20 -S spacing, default is 80
-p prep -v version -h help -d debug messages, default is off
checkscan -q ./t/checks_hard/hard1.png
For a hard to read check you may want to try changing iterations:
checkscan -q -x 15 -i 2 ./t/checks_hard/hard1.png
The program crops from the bottom up to look for a valid micr line in the image by default the steps are something like:
70 75 80 85 90 95 100 105 110 115 120 130 140 150 160 170 180 190 200 210 220 230 240 250 300
If a valid line is found, it stops.
If you want to change the increment value and the number of steps:
checkscan -q -i 2 -x 20 ./UxxxxxxU_TxxxxxxT_xxxxxxU.png
Would make 20 steps of 2 pix diff- also stops if valid found. To see debug ..
checkscan -d -q -i 2 -x 20 ./UxxxxxxU_TxxxxxxT_xxxxxxU.png
Finance::MICR::GOCR::Check Finance::MICR::LineParser
Leo Charre leocharre at cpan dot org
To install Finance::MICR::GOCR::Check, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Finance::MICR::GOCR::Check
CPAN shell
perl -MCPAN -e shell install Finance::MICR::GOCR::Check
For more information on module installation, please visit the detailed CPAN module installation guide.