Supplementary files for this homework are posted on the class web page.
Part 1
Write a program that uses basic morphological operations to identify and mark horizontal and vertical lines between the letters in the input image. Your resulting image should contain 7 vertical lines and 9 horizontal lines overlayed over the input image. Edit the web template to display your result images and the code that was used to generate it for this and all subsequent parts.
You must solve part 1 using Matlab and OpenCV.
Matlab
|
|
OpenCV
|
|
Part 2
Write a program that will draw boxes around all letters in the provided images. Additionally, recolor the blue selection to green while preserving the letters inside. Both of your image modifications should be overlayed in the final output. Solve this and all subsequent problems using either MATLAB or OpenCV.
|
|
Part 3
Write a program that crops the input image down to the only the letter grid. Your output should be similar to the input images given in previous parts.
|
|
Part 4
Find all 'E' letters within the grid and color them red.
All letter cutouts can be found inside the 'letter_cutouts' folder
|
|
Part 5
Find and color all vowels within the grid (A, E, I, O, U, Y). Color each vowel in a different color.
All letter cutouts can be found inside the 'letter_cutouts' folder
|
|
Part 6
Find all vowels within the grid and replace each with the same letter but in a different font.
You will have to make your own templates for the new versions of the six vowels, or figure out some other way to print text to an image at the right pixel coordinates.
All letter cutouts can be found inside the 'letter_cutouts' folder
|
|
Part 7
Recolor each letter in the grid with a different random color. Identical letters must be colored the same.
All letter cutouts can be found inside the 'letter_cutouts' folder
|
|
Part 8
Write a program that will detect all characters in the grid and then print out all grid letters to the console, e.g.
A B C D E F
G H I J K L
M N O P Q R
S T U V W X
Y Z A B C D
E F G H I J
K L M N O P
Q R S T U V
All letter cutouts can be found inside the 'letter_cutouts' folder
|
|
Part 9
Write a program that will print the letters of the highlighted word to the console. The letters don't have to be in order for this part.
All letter cutouts can be found inside the 'letter_cutouts' folder
|
|
Part 10
Print all letters of all highlighted words to the console. The letters do not necessarily have to be in order but must be grouped by the word they belong to.
For instance, if the highlighted words in blue are 'test' and 'example' an acceptable output could be:
Word 1: stet
Word 2: lpemxae
All letter cutouts can be found inside the 'letter_cutouts' folder
|
|
Extra Credit 1
Write a program that will print on the screen all highlighted words (in blue) and the spangram (in yellow). The letters of each word must be printed in the correct order so that they form valid words or phrases. The words can be printed in any order. Print a new line after each word.
You may use any method to accomplish this task as long as it is done with a program (and as long as it is not trying to search the web to find any posted solutions to this puzzle). Your program can import a dictionary if needed.
All letter cutouts can be found inside the 'letter_cutouts' folder
|
|
Extra Credit 2
Write a program in any language that solves a given puzzle using a picture and the hint for that day as text. Your program should print all words to the console as guesses. Any libraries and tools are allowed to be used except any solution databases that may exist.
All letter cutouts can be found inside the 'letter_cutouts' folder
"Hunt and peck"
|
|