Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

OpenCV & Xamarin.Android. Load resources image into a MAT

MarcoSalvatoriMarcoSalvatori USMember ✭✭✭

I am testing feature matching routines. I can't load an image contained in Android resources (for example Resources / drawable / icon.png). This is the instruction I normally use for local images.

Mat img_object = Imgcodecs.Imread("/storage/emulated/0/Download/Z_image_to_find8.png", Imgcodecs.ImreadGrayscale);

What kind of path should I use to access icon.png? Thanks

Sign In or Register to comment.