View Single Post
Old 01-20-2007, 05:28 AM  
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
Quote:
Originally Posted by Agent White View Post
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?
very nice work
__________________

For coding work - hit me up on andy // borkedcoder // com
(consider figuring out the email as test #1)



All models are wrong, but some are useful. George E.P. Box. p202
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote