ORB_SLAM2_Android icon indicating copy to clipboard operation
ORB_SLAM2_Android copied to clipboard

dataset mode list file

Open eugenelyj opened this issue 7 years ago • 1 comments

in file ORBSLAMForDatasetActivity.java:151, a line of code for (File file : dir.listFiles()) should be improved because the method listFiles makes no guarantees about the order of the files returned

eugenelyj avatar Mar 06 '18 07:03 eugenelyj

Hi , you are right, I solved it by adding the follow lines in ORBSLAMForDataSetActivity.java

import java.util.Arrays; ... ... ... ... if (!TextUtils.isEmpty(ImgPath)) { File dir = new File(ImgPath); File[] files = dir.listFiles(); Arrays.sort(files); if (dir.isDirectory()) { for (File file : files) {

... ... ...

Hope this helps!

xAffinity avatar Jun 10 '18 23:06 xAffinity