IOCCC image by Matt Zucker

The International Obfuscated C Code Contest

2013/cable2 - Best of Show

OCR in quick brown fox ASCII art

Author:

To build:

    make

Bugs and (Mis)features:

The current status of this entry is:

STATUS: INABIAF - please DO NOT fix

For more detailed information see 2013/cable2 in bugs.html.

To use:

    ./cable2 file.bmp [color]

Try:

For different OCR examples:

    ./try.sh

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 remarks:

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.

Inventory for 2013/cable2

Primary files

Secondary files


Jump to: top