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.