Matlab to achieve statistical binary image the number of black pixels in each row
Recently doing a project is to detect the quality of printing bar code, when bearing the appear (white dots) or stain (more black block), through the statistics of the number of black pixels in a row with the standard bar code, comparing the number of black pixels in each row to judge its quality is unqualified, intermediate level can be based on projection histogram statistics