Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to identify stripes of different colors

how can I identify the presence or absence of regular stripes of different colors, but ranging from very very very very light pink to black inside of a scanned image (bitmap 200x200dpi 24-bit). Carry a few examples.

Example 1

uno

Example 2 (the lines are in all the columns except 7 in the second row of the last column)

due

For now try to identify (using python language) whether or not there is at least 5-10 pixels for the presence of different color from white to each strip, however, does not always work because the scanned image is not of high quality and the strip changes color very similar to color that surrounds it.

Thanks.

like image 402
originof Avatar asked Dec 04 '11 14:12

originof


People also ask

What are the colorful stripes called?

Roman Stripe Roman stripes are B-O-L-D multicolor stripes of contrasting widths and they are usually placed vertically. This stripe is known for its use of bright/neon colors.

What is the pattern of stripes?

A stripe pattern consists of seamless, continual lines or bands in either a horizontal, vertical or diagonal direction.

How many types of strips are there?

There are two types of stripes (1) C balanced or even, and (2) unbalanced or uneven. A balanced stripe repeats the pattern as the most dominant stripe from left to right and above and below a center bar. An unbalanced stripe varies in spacing or color from left to right and/or above and below a center bar.

What is a Bengal stripe?

A bengal stripe is a particular sort of striped dress shirt fabric, most often featuring an even 1/4″ alternating stripe. It can either be a color and white or color and color stripe and sits on the bolder end of the stripe spectrum.


2 Answers

This looks to me a connected component labeling in an image to identify discrete regions of certain color range. You can have a look to cvBlobLib. Some pre-processing would be required to merge the pixels if there are holes or small variations between neighbors.

like image 186
Abhijit Avatar answered Oct 16 '22 15:10

Abhijit


Not going to happen. The human visual system is far better than any image processing system, and I don't see anything in the 2nd row of #3. #1 and #5 are also debatable.

You need to find some way to increase the optical quality of your input.

like image 44
so12311 Avatar answered Oct 16 '22 15:10

so12311