How to segment characters using vertical and horizontal projection plots?

Hellow, I have to segment each characters from a license plate image. I have computed the vertical and horizontal projection plot of the license plate image using:
YProj = sum(bw2,1);
XProj = sum(bw2,2);
matlab functions.But i don't know how to segment the characters and discard unwanted noise, using these plots. please be kind to help me with the Matlab functions to use in this situation...

 Accepted Answer

Threshold it. The bright parts will be the spaces between the characters.
binaryImage = YProj < 128;

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!