4

I'm new in the texture recognition field, and I would like to know which are the possible ways to approach a texture problem in opencv.

I need to identify the texture within a region in the pic, and tell if it is uniform, homogeneous in the whole area, or not.

More in depth, I need to be able to tell if a possible fallen person is a person (with many different kind of textures) or something wrong like a pillow, or a blanket.

Could anyone suggest a solution, please? Is there some already made opencv code to adapt?

Thanks in advance!

user3368005
  • 41
  • 1
  • 3
  • What have you tried to far? Please include code. Please update your post and include a sample image and, if possible, another image wheter you have drawn by hand the region you are trying to detect. – kkuilla Mar 03 '14 at 11:54
  • Why would you use texture to identify a person? How would you, for example, distinguish between a person lying on the ground with a fur coat and an animal? They could have the same texture... – kkuilla Mar 03 '14 at 11:56

1 Answers1

5

Why don't use haralick features? I other words they are called texture features. The base idea is to compute coocurence matrix from given gray-scaled image on base which the haralick features are computed. You can pick between different features like contrast, correlation, entropy etc. which can describe your texture. I guess for the same texture given feature should have the same (similar) value, so that might be the way for distinguishing textures.

Here some links can be helpful:

So far as I know, there is no implementation of haralick features in opencv, but you can use python with scikit-image (of course you can use opencv with python if you don't mind using something different than c++).

marol
  • 4,034
  • 3
  • 22
  • 31
  • Thanks for your advice! It sounds good and closed to what I want, but I'm not sure for python since I'm programming a mobile robot and I would like to do everything whit the same kind of implementation. I will look for it in opencv or even how I can implement it by my self.. – user3368005 Mar 03 '14 at 10:19
  • It will be nice to implement such feature in opencv. It is not a hard work, if you do implementation for yourself, consider submit your code on opencv group so they can merge your code with library. – marol Mar 03 '14 at 10:39