Monthly Archives: June 2017

Isolating Characters in an Image in JavaScript

The JavaScript program below first draws horizontal separators between lines of text in an imported image, and then draws separators between individual characters in each line. Along with a few other recent posts, it is intended as the beginnings of … Continue reading

Posted in Uncategorized | Tagged , , , , | Leave a comment

Drawing Rules Between Lines of Text in Javascript

The JavaScript program below will automatically draw rules between lines of text in a loaded image. It is intended as an early step in an optical character recognition system. To see it in action, copy it into a .html file … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

An Image Auto-Cropper in JavaScript

The JavaScript program below allows the user to specify an input file, a background color, and a difference threshold, and will automatically crop the image to remove any pixels around its border that match the background color within the specified … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

An Image Tagger in JavaScript

The JavaScript program below, when run, prompts the user to load an image file and allows the creation and editing of one or more rectangular “tags” with arbitrary size, color, and text. It also allows the user to convert the … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

Comparing Images in JavaScript

The JavaScript code below, when run, prompts the user to specify two image files and click a button to calculate the difference in intensity of their respective pixels. It is intended only as a simple early experiment in the field … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment