Supplementary images files for this homework are also posted on the class website.
Please replace the original input image if you choose to use an image of your own.
Part 1
Use basic morphological operations to produce two images: one containing only the disk and one containing only the handle. Solve this problem using both MATLAB and OpenCV.
Matlab
|
|
|
% Insert your code here
OpenCV
|
|
|
// Insert your code here
Part 2
Write a program that can read the barcode from the image and print its 12 digits on the screen. If you can do any of last 3 images you’ll get some extra credit. Solve this and all subsequent problems using either MATLAB or OpenCV.
|
|
|
|
|
|
|
|
|
|
// Insert your code here
Part 3a
Write a program that finds all occurrences of the digit '5' in an image of a license plate.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Insert your code here
Part 3b
Modify your program to find all digits 0-9.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Insert your code here
Part 4a Extra Credit
Repeat Part 3a on real license plates (find only the digit 5).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Insert your code here
Part 4b Extra Credit
Repeat Part 3b on real license plates (find all digits).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Insert your code here