Starting from:

$30

EEL5840 - Homework 7 Solved



Your programs must be written in Python. All code must be able to compile and run for full credit. Comment all code following proper coding conventions. Remember, if we can’t read it, we can’t grade it! (For more information on python coding standards, refer to: https://www.python.org/dev/peps/pep-0008/)


Question 1 - 10 points
For this assignment you will be creating data for Project01. You are to hand-write the letters ’a’,’b’,’c’,’d’,’h’,’i’,’j’, and ’k’ ten times each. You should write these letters on clean, white printer paper. It is preferred that you use a regular black Sharpie.

After writing the letters, you are to crop the images (this can either be done on your phone or computer). Try to center and focus the numbers as much as possible. (Please refer to the sample provided).

 

Figure 1: Acceptable image examples

You can then run the provided code, hw07.py, to generate binary images. Combine all data into a ndarray object (the same format as the back-up data for Project01) and name it ”data.npy”. Also provide an array of labels called ”labels.npy”. As specified in Project01, labels for ’a’,’b’,’c’,’d’,’h’,’i’,’j’, and ’k’ should correspond to 1,2,3,4,5,6,7, and 8, respectively.

 

Figure 2: Digitized image of a hand-written ”K”

To receive full credit for assignment 07 you should push your full directory of images, your binary image object and label vector. These files must be named and formatted correctly for full credit.

More products