.NET에 대한 이미지 인식 라이브러리가 있습니까?
-
02-07-2019 - |
문제
웹캠에서 찍은 이미지를 컴퓨터에 저장된 이미지와 비교할 수 있기를 원합니다.
도서관은 미션 크리티컬 (예 : 경찰 조사)에 사용되지 않기 때문에 100 % 정확할 필요는 없습니다.
나는 데모 프로젝트를 시도했다 CodeProject의 이미지 인식, 그리고 그것은 작은 이미지로 만 작동 / 동일한 이미지 120x90 픽셀을 비교할 때 전혀 작동하지 않습니다 (이것은 OK : P로 분류되지 않습니다).
이전 이미지 인식으로 성공 했습니까?
그렇다면 C# 또는 vb.net에서 사용할 수있는 라이브러리 링크를 제공 할 수 있습니까?
해결책
당신은 이것을 시도 할 수 있습니다 : http://code.google.com/p/aforge/
여기에는 점수를 줄 수있는 비교 분석이 포함되어 있습니다. 모든 유형의 다른 훌륭한 이미징 기능도 포함되어 있습니다.
// The class also can be used to get similarity level between two image of the same size, which can be useful to get information about how different/similar are images:
// Create template matching algorithm's instance
// Use zero similarity to make sure algorithm will provide anything
ExhaustiveTemplateMatching tm = new ExhaustiveTemplateMatching(0);
// Compare two images
TemplateMatch[] matchings = tm.ProcessImage( image1, image2 );
// Check similarity level
if (matchings[0].Similarity > 0.95)
{
// Do something with quite similar images
}
다른 팁
정확히 사용할 수 있습니다 emgucv .NET의 경우.
나는 간단히했다. Eyeopen 라이브러리를 다운로드하기 만하면됩니다 여기. 그런 다음 C# 클래스에서 사용하고 다음을 작성하십시오.
use eyeopen.imaging.processing
쓰다
ComparableImage cc;
ComparableImage pc;
int sim;
void compare(object sender, EventArgs e){
pc = new ComparableImage(new FileInfo(files));
cc = new ComparableImage(new FileInfo(file));
pc.CalculateSimilarity(cc);
sim = pc.CalculateSimilarity(cc);
int sim2 = sim*100
Messagebox.show(sim2 + "% similar");
}
제휴하지 않습니다 StackOverflow