// Carregar a imagem de entrada Mat imagem = Cv2.ImRead("imagem.jpg", ImreadModes.Grayscale); // Aplicar a detecção de bordas com Mat.Canny Mat bordas = new Mat(); Cv2.Canny(imagem, bordas, 100, 200); // Exibir a imagem com as bordas detectadas Cv2.ImShow("Bordas", bordas); Cv2.WaitKey(0);