我如何比较面部的不同形象并认识? [英] How Can I Compare To Diffrent Image Of Face And Recongnize ?
本文介绍了我如何比较面部的不同形象并认识?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我怎么能比较两个图像并重新识别几乎相似的图像。实际上我会使用这个代码进行面部识别..eigenfaceobject recongnizer需要数组来保存图像必修...但我需要单一的识别....这里是一个我找到的代码......任何人都可以解释这个变量
how can i compare two image and recongnize the almost simmilar image.actually i would use this code for face recongnition..eigenfaceobject recongnizer needs array to save images compulsory...but i need single recongnition....here is a code i have found ...can anyone explain this variables
public const double PERCENT_MATCH = 0.9;
int noMatchCount = 0;
for (int x = 0; x < irMainX; x++)
{
for (int y = 0; y < irMainY; y++)
{
if ( !pixelsMatch( image.GetPixel(x,y), srClickedArray[x%16, y%16] )
{
noMatchCount++;
if ( noMatchCount > ( 16 * 16 * ( 1.0 - PERCENT_MATCH ))
goto matchFailed;
}
}
}
Console.WriteLine("images are >=90% identical");
return;
matchFailed:
Console.WriteLine("image are <90% identical");
推荐答案
如果只有一些关于面部识别 [ ^ ]可用。
如果你想处理人脸识别时,你必须了解主题本身,而不仅仅是从任何地方获得的代码中的一堆变量。
知识是研究和研究的女儿。
If only there were some articles on face recognition[^] available.
If you want to deal with face recognition, you have to understand the subject itself, not just a bunch of variables from a code obtained from anywhere.
And knowledge is the daughter of research and study.
这篇关于我如何比较面部的不同形象并认识?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文