How to identify stripes of different colors
Asked Answered
P

3

8

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.

Pitiable answered 4/12, 2011 at 14:55 Comment(3)
This is some high level Image processing stuff , I am not sure if this can be done in python alone.Greta
Probably better to ask on dsp.stackexchange.comSuborbital
Are you capable of getting less blurry pictures, or do you have to work with these?Suborbital
S
1

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.

Sherman answered 4/12, 2011 at 15:29 Comment(0)
R
1

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.

Rob answered 4/12, 2011 at 19:44 Comment(0)
G
0

Search for segmentation algorithm ,with a low threshold. It should give you good results as the edges are sharp.

Sobel would be a good start ;)

Gemina answered 5/12, 2011 at 22:59 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.