c# 图像识别的轮廓分析 摄像头取图识别
string fileName = Path.GetDirectoryName(templateFile) + "\\" + found.template.name;
if (!AugmentedRealityImages.ContainsKey(fileName))
{
if (!File.Exists(fileName)) return;
AugmentedRealityImages[fileName] = Image.FromFile(fileName);
}
Image img = AugmentedRealityImages[fileName];
Point p = found.sample.contour.SourceBoundingRect.Center();
var state = gr.Save();
1