ORB_SLAM2_Android
ORB_SLAM2_Android copied to clipboard
dataset mode list file
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
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!