convert -threshold 45000 %2.jpg %2.bmp
convert -negate -monochrome %2.bmp %2.bmp
convert -crop 12x25+0+0 %2.bmp %2c1.bmp
convert -crop 7x25+14+0 %2.bmp %2c2.bmp
convert -crop 8x25+21+0 %2.bmp %2c3.bmp
convert -crop 9x25+29+0 %2.bmp %2c4.bmp
convert -trim %2c1.bmp %2c1t.bmp
convert -trim %2c2.bmp %2c2t.bmp
convert -trim %2c3.bmp %2c3t.bmp
convert -trim %2c4.bmp %2c4t.bmp
convert +append blank.bmp %2c1t.bmp blank.bmp %2c2t.bmp blank.bmp %2c3t.bmp blank.bmp %2c4t.bmp blank.bmp -append %2c5t.bmp
convert %2c5t.bmp %2.pbm
This will take a Comus Thumbs submission passcode, strip it into individual characters, cut out the cross sectioned lines that run through it and then piece it back together to be fed to an OCR.
I helped write the first OCR for Dream Submitter.
What do I win?
|