Texture recognition within a specific area in the pic

*爱你&永不变心* 提交于 2019-12-01 05:18:55

问题


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!


回答1:


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:

  • Coocurence matrix tutorial
  • Haralik features summary
  • Coocurence matrix in scikit image

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++).



来源:https://stackoverflow.com/questions/22113684/texture-recognition-within-a-specific-area-in-the-pic

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!