Why is Opencv Findcontour behaving differently in Emgu c#?
Hi in opencv c+ method Findcontours return the array hierarchy and to get the boundaries of the hole I can get the hierarchy . how can i get these boundaries in emgu cv please any help? how can i find holes in emgu cv? You can get the Contour hierarchy in Emgucv by using this following code. Image<Bgr, byte> Img_Result_Bgr = Img_Source_Bgr.Copy(); Image<Gray, byte> Img_Org_Gray = Img_Source_Bgr.Convert<Gray, byte>(); Image<Gray, byte> Img_CannyEdge_Gray = new Image<Gray, byte>(Img_Source_Bgr.Width,Img_Source_Bgr.Height); Img_CannyEdge_Gray = Img_Org_Gray.Canny(10, 50); Img_Org_Gray.Dispose();