I need to be able read the waveform produced by any arbitrary shape created in magnetic ink. How would it possible to simulate this programmatically?
I'm not interested in OCR. As per Magnetic ink character recognition, and assuming you have the E13B font and the characters rendered onto a JPG/PNG:
The ink in the plane of the paper is first magnetized. Then the characters are passed over a MICR read head, a device similar to the playback head of a tape recorder. As each character passes over the head it produces a unique waveform that can be easily identified by the system.
Any guidance towards a solution in any programming language would be appreciated.