-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.java
35 lines (26 loc) · 878 Bytes
/
main.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package train;
import java.io.IOException;
import app.test;
public class main {
public static void main(String[] args) {
String imageFolderPath="data/images";
String maskFolderPath="data/mask";
getFiles GetImage=new getFiles();
String[] imagepaths=GetImage.GetAllFilesInFolder(imageFolderPath);
String[] maskapaths=GetImage.GetAllFilesInFolder(maskFolderPath);
System.out.println(imagepaths.length);
for(int i=0;i<imagepaths.length;i++){
System.out.println(i+" "+imagepaths[i]+" "+maskapaths[i]);
}
process p=new process();
test t=new test();
try {
for(int i=1;i<=5;i++){
p.minedata(imagepaths,maskapaths,i);
t.run(i);
}
} catch (IOException e) {
e.printStackTrace();
}
}
}