Best of show

Adrian Cable
adrian.cable@gmail.com

Judges' comments:

To build:

make cable2

To run:

./cable2 file.bmp [color]

Try:

Extract example-images.tbz2:

make data

Here is an OCR example that shows all 94 supported ASCII characters:

./cable2 ascii.bmp

Here is an example of colored ASCII:

./cable2 multi_color.bmp color

Here is an example using different character sizes and different positions in the same file:

./cable2 mixed_sizes.bmp

How about about hand-written C code:

./cable2 hello_world.bmp | gcc -xc -o hello -
./hello

Sometimes typeset text will work, if the typeset has characters that are enough to the supported handwritten shapes. For example, Menlo, 160 pt:

./cable2 typeset.bmp

And as an added IOCCC bonus: :-)

./cable2 bonus.bmp

Selected Judges Remarks:

We can confirm that this is the first time the IOCCC has been used to peer-review a new research. We had quite a bit of fun with a sharpie and a scanner.

Author’s comments:

OCR - Obfuscated Character Recognition of Handwritten Text

This entry takes a BMP image file of hand-drawn (mouse-drawn?) text, specified as the first command-line parameter, and converts it to an ASCII text document. Magic!

BMP files created by most paint programs should work. The author recommends Paint.NET.

Features

Why is this entry obfuscated/interesting?

Other notes

Bugs/features

Compiler warnings

clang warns about unused expression results, missing type specifiers, and incompatible pointer conversions - all just a fun consequence of the obfuscations.


Creative Commons License

© Copyright 1984-2015, Leo Broukhis, Simon Cooper, Landon Curt Noll - All rights reserved
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.