hw2 - Iowa State University

Download Report

Transcript hw2 - Iowa State University

Homework #2
• Out:
Monday January 29
• Due:
Monday February 12
HCI/ComS 575X: Computational Perception
Iowa State University, SPRING 2007
Copyright © 2007, Alexander Stoytchev
Homework #2 (Part 1)
Basic Mathematical Morphology
Homework #2 (Part 2)
Detecting and reading barcodes
• Step 1: read the following web page
– http://www.howstuffworks.com/upc.htm
• Step 2: Download the five sample barcode
images from the class web page.
Homework #2 (Part 2)
Detecting and reading barcodes
• Step 3: Write code that reads the barcode
from the image and prints its 12 digits on
the screen.
• You can do this in 2 ways:
– Read the barcode by interpreting the vertical
lines
– Read the barcode by recognizing the human
readable digits with your program.
Barcode Examples
(simple cases)
Barcode Examples
(you will get extra credit if your code
can work with any one of these)
What to Submit (for part 2)
• Post your original barcode images, your result
images, and your code on the Wiki.
• Your code must work on at least two barcodes
– (if the sample barcode images don’t’ work for you
then scan some barcodes and use them instead).
• You can use either matlab or OpenCV for part 2.
• Your grade will not depend on the method and/or
platform that you choose.
Homework #2 (Part 3)
License Plate Numbers
• A) Write a program that finds the occurrence of
the number ‘5’ in an image of car license plate.
• B) Modify your program to find the occurrences
of all numbers 0-9 in an image of a license plate.
Letters can be skipped.
• Your code will be evaluated with images of the
same type (i.e., Iowa license plates)
Sample License Plates
(posted on the class web page)
Don’t Like the Sample Images?
• Use the following web page to create your
own license plate images
– http://www.acme.com/licensemaker/licensemaker.cgi
What to Submit (for part 3)
• Post your original images, your result images,
and your code on the Wiki.
• Your code must work on at least five images
• You can use either matlab or OpenCV for part 3.
• Your grade will not depend on the method and/or
platform that you choose.
That’s it.
Good Luck!