View Single Post
Old 01-18-2007, 09:20 PM  
Agent White
Confirmed User
 
Join Date: Feb 2003
Posts: 141
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?
Agent White is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote