Ask Your Question

Revision history [back]

Load images from assets folder on android, Java?

I have a Java program with an ArrayList that consists of a bunch of filenames (e.g. "1.jpg", "2.jpg", etc). How can I loop through the ArrayList and load the image files with these names into an ArrayList of Mat objects? All of the image files are located in the /assets folder.