Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 12:44

  • Please register to post and access all features, it's quick, easy and FREE!


EmguCv Match Template Usage ?

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2014
Posts: 105
Received Thanks: 20
Question EmguCv Match Template Usage ?

Hi Guys I need a "EmguCV Match Template" usage tutorial code ?



lenclstr746 is offline  
Old 03/13/2018, 10:30   #2
SweetnessOverflow セラニエル



 
elite*gold: 1000
The Black Market: 202/1/0
Join Date: May 2010
Posts: 6,637
Received Thanks: 4,957
Arrow C/C++ -> .NET Languages

Quote:
Emgu CV is a cross platform .Net wrapper to the OpenCV image processing library.
#moved


Serraniel is offline  
Old 04/28/2018, 18:25   #3
 
elite*gold: 0
Join Date: Jul 2017
Posts: 130
Received Thanks: 247
Code:
public static Point SearchOne(Image<Bgr, byte> srcImg, Image<Bgr, byte> smpImg, double treshold, Rectangle roi, out bool success)
{
	srcImg.ROI = roi;
	Image<Gray, float> matched = srcImg.MatchTemplate(smpImg, TemplateMatchingType.CcoeffNormed);

	matched.MinMax(out double[] minValues, out double[] maxValues, out Point[] minLocations, out Point[] maxLocations);
	matched.Dispose();

	if (maxValues[0] > treshold)
	{
		success = true;
		int x = roi.X + maxLocations[0].X;
		int y = roi.Y + maxLocations[0].Y;
		return new Point(x, y);
	}
	success = false;
	return Point.Empty;
}
exane^ is offline  
Reply

Tags
c#, emgucv, imagesearch



« Animationen Erstellung (Community Version) | WPA Animated Progress Bar »

Similar Threads
[Website template] Silkroad free template
12/27/2017 - SRO Guides & Templates - 35 Replies
Silkroad free template ver.1 is a free template designed by Zneeky, feel free to edit what you want to make it fit your usage. http://www.sroinfo.com/imghost/thumbs/ilkroadfr.jpg It contains a index.html, style.css and a folder with images and...
[Template]Homepage Template by CrystalPrime (Gold-Version)
09/21/2011 - Metin2 PServer Guides & Strategies - 46 Replies
#Done
WTB Pheonix PS12+ BoT Warrior template/non template
05/15/2011 - 9Dragons Trading - 9 Replies
I will pay by paypal. No nab scammers. pm me with details of what is on the char ie weopon relics etc. thnx
WTS Phoenix account ( bot war)template & non template
05/15/2011 - 9Dragons Trading - 0 Replies
Hi all... 1st account: I wts Phoenix template male bot warrior cs12.... got some items on it + on the same account ec11 bot hybrid male non template and on the same account template male shao hybrid ec12.... with the items in the bags u can...
[Release {Template}] Metin2 Template by |R.o.x|
01/15/2011 - Metin2 PServer Guides & Strategies - 17 Replies
Hey Com, ich habe mal wieder ein Design gemacht und gecodet. Ich finde es ist eig ganz gut gelungen. Erstmal ein Screen : http://i51.tinypic.com/2zykh2x.jpg Jetzt zum eigentlichen : Um dieses Template zu benutzen loadet ihr euch erstmal...



All times are GMT +2. The time now is 12:44.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.