1 | compile:
|
---|
2 | cd java-gen-corpus; javac *.java;
|
---|
3 |
|
---|
4 |
|
---|
5 | ######################################
|
---|
6 | #CAUTION: run must: source SETUP.bash
|
---|
7 | #Prior to running the scripts below
|
---|
8 | ######################################
|
---|
9 |
|
---|
10 |
|
---|
11 | #MUSIC, Including Sheet music
|
---|
12 | gen-500-MU:
|
---|
13 | cd java-gen-corpus; javac *.java
|
---|
14 | cd java-gen-corpus; java javaGenFullIDList hathiFull.txt gen-500-MU-hathiFullIDList.txt MU
|
---|
15 | cd java-gen-corpus; java javaGenValidIDList gen-500-MU-hathiFullIDList.txt 500 gen-500-MU-hathiValidIDList.txt
|
---|
16 | ./COMPX520-DOWNLOADER-PNG-10PAGES.sh java-gen-corpus/gen-500-MU-hathiValidIDList.txt
|
---|
17 |
|
---|
18 |
|
---|
19 | #BOOKS, Monograhpical
|
---|
20 | gen-500-BK:
|
---|
21 | cd java-gen-corpus; javac *.java
|
---|
22 | cd java-gen-corpus; java javaGenFullIDList hathiFull.txt gen-500-BK-hathiFullIDList.txt BK
|
---|
23 | cd java-gen-corpus; java javaGenValidIDList gen-500-BK-hathiFullIDList.txt 500 gen-500-BK-hathiValidIDList.txt
|
---|
24 | ./COMPX520-DOWNLOADER-PNG-10PAGES.sh java-gen-corpus/gen-500-BK-hathiValidIDList.txt
|
---|
25 |
|
---|
26 |
|
---|
27 | #SERIAL (journals, newspapers,etc)
|
---|
28 | gen-500-SE:
|
---|
29 | cd java-gen-corpus; javac *.java
|
---|
30 | cd java-gen-corpus; java javaGenFullIDList hathiFull.txt gen-500-SE-hathiFullIDList.txt SE
|
---|
31 | cd java-gen-corpus; java javaGenValidIDList gen-500-SE-hathiFullIDList.txt 500 gen-500-SE-hathiValidIDList.txt
|
---|
32 | ./COMPX520-DOWNLOADER-PNG-10PAGES.sh java-gen-corpus/gen-500-SE-hathiValidIDList.txt
|
---|
33 |
|
---|
34 |
|
---|
35 | #MAPS, Including atlas and sheet maps
|
---|
36 | gen-500-MP:
|
---|
37 | cd java-gen-corpus; javac *.java
|
---|
38 | cd java-gen-corpus; java javaGenFullIDList hathiFull.txt gen-500-MP-hathiFullIDList.txt MP
|
---|
39 | cd java-gen-corpus; java javaGenValidIDList gen-500-MP-hathiFullIDList.txt 500 gen-500-MP-hathiValidIDList.txt
|
---|
40 | ./COMPX520-DOWNLOADER-PNG-10PAGES.sh java-gen-corpus/gen-500-MP-hathiValidIDList.txt
|
---|
41 |
|
---|
42 |
|
---|
43 | #MIXED MATERIAL (This may not be required)
|
---|
44 | gen-500-MX:
|
---|
45 | cd java-gen-corpus; javac *.java
|
---|
46 | cd java-gen-corpus; java javaGenFullIDList hathiFull.txt gen-500-MX-hathiFullIDList.txt MX
|
---|
47 | cd java-gen-corpus; java javaGenValidIDList gen-500-MX-hathiFullIDList.txt 500 gen-500-MX-hathiValidIDList.txt
|
---|
48 |
|
---|
49 | ./COMPX520-DOWNLOADER-PNG-10PAGES.sh java-gen-corpus/gen-500-MX-hathiValidIDList.txt
|
---|
50 |
|
---|
51 | #***********
|
---|
52 | #CLASSIFIERS
|
---|
53 | #***********
|
---|
54 |
|
---|
55 | #HoughLinesP
|
---|
56 | run-classifier-houghlinesP-test:
|
---|
57 | #Compile
|
---|
58 | cd image-identification-terminal; javac javaAccuracyCalculator.java
|
---|
59 | cd image-identification-terminal; javac -cp /Scratch/cpb16/opencv-3.4.2/build/bin/opencv-342.jar javaImageClassifier.java;
|
---|
60 | #Run javaImageClassifier on all images in TestImages
|
---|
61 | @echo starting classfier
|
---|
62 | @date
|
---|
63 | cd image-identification-terminal; ./runClassifer.sh /Scratch/cpb16/is-sheet-music-encore/download-images/MU houghlinesP log-houghlinesP-test.txt -test
|
---|
64 | @echo finished classifier
|
---|
65 | @date
|
---|
66 | #Calculate the Accuracy of the classifier
|
---|
67 | cd image-identification-terminal; java javaAccuracyCalculator log-houghlinesP-test.txt houghlinesP results.txt
|
---|
68 | #Display output of javaImageClassifier
|
---|
69 | cd image-identification-terminal; less log-houghlinesP-test.txt
|
---|
70 | #Display output of javaAccuracyCalculator
|
---|
71 | cd image-identification-terminal; less results.txt
|
---|
72 |
|
---|
73 | run-classifier-houghlinesP-all:
|
---|
74 | #Compile
|
---|
75 | cd image-identification-terminal; javac javaAccuracyCalculator.java
|
---|
76 | cd image-identification-terminal; javac -cp /Scratch/cpb16/opencv-3.4.2/build/bin/opencv-342.jar javaImageClassifier.java;
|
---|
77 | #Run javaImageClassifier on all images in MU
|
---|
78 | @echo starting classfier
|
---|
79 | @date
|
---|
80 | cd image-identification-terminal; ./runClassifer.sh /Scratch/cpb16/is-sheet-music-encore/download-images/MU houghlinesP log-houghlinesP-MU.txt -all
|
---|
81 | @echo finished classifier
|
---|
82 | @date
|
---|
83 | #Calculate the Accuracy of the classifier
|
---|
84 | cd image-identification-terminal; java javaAccuracyCalculator log-houghlinesP-MU.txt houghlinesP results.txt
|
---|
85 | #Display output of javaImageClassifier
|
---|
86 | cd image-identification-terminal; less log-houghlinesP-MU.txt
|
---|
87 | #Display output of javaAccuracyCalculator
|
---|
88 | cd image-identification-terminal; less results.txt
|
---|
89 |
|
---|
90 | #HoughLinesP_refined
|
---|
91 | run-classifier-houghlinesP-refined-test:
|
---|
92 | #Compile
|
---|
93 | cd image-identification-terminal; javac javaAccuracyCalculator.java
|
---|
94 | cd image-identification-terminal; javac -cp /Scratch/cpb16/opencv-3.4.2/build/bin/opencv-342.jar javaImageClassifier.java;
|
---|
95 | #Run javaImageClassifier on all images in TestImages
|
---|
96 | @echo starting classfier
|
---|
97 | @date
|
---|
98 | cd image-identification-terminal; ./runClassifer.sh /Scratch/cpb16/is-sheet-music-encore/download-images/MU houghlinesP-refined log-houghlinesP-refined-test.txt -test
|
---|
99 | @echo finished classifier
|
---|
100 | @date
|
---|
101 | #Calculate the Accuracy of the classifier
|
---|
102 | cd image-identification-terminal; java javaAccuracyCalculator log-houghlinesP-refined-test.txt houghlinesP-refined results.txt
|
---|
103 | #Display output of javaImageClassifier
|
---|
104 | cd image-identification-terminal; less log-houghlinesP-refined-test.txt
|
---|
105 | #Display output of javaAccuracyCalculator output
|
---|
106 | cd image-identification-terminal; less results.txt
|
---|
107 |
|
---|
108 | run-classifier-houghlinesP-refined-all:
|
---|
109 | #Compile
|
---|
110 | cd image-identification-terminal; javac javaAccuracyCalculator.java
|
---|
111 | cd image-identification-terminal; javac -cp /Scratch/cpb16/opencv-3.4.2/build/bin/opencv-342.jar javaImageClassifier.java;
|
---|
112 | #Run javaImageClassifier on all images in MU
|
---|
113 | @echo starting classfier
|
---|
114 | @date
|
---|
115 | cd image-identification-terminal; ./runClassifer.sh /Scratch/cpb16/is-sheet-music-encore/download-images/MU houghlinesP log-houghlinesP-refined-MU.txt -all
|
---|
116 | @echo finished classifier
|
---|
117 | @date
|
---|
118 | #Calculate the Accuracy of the classifier
|
---|
119 | cd image-identification-terminal; java javaAccuracyCalculator log-houghlinesP-refined-MU.txt houghlinesP results.txt
|
---|
120 | #Display output of javaImageClassifier
|
---|
121 | cd image-identification-terminal; less log-houghlinesP-refined-MU.txt
|
---|
122 | #Display output of javaAccuracyCalculator
|
---|
123 | cd image-identification-terminal; less results.txt
|
---|
124 |
|
---|
125 | run-all:
|
---|
126 | #Compile
|
---|
127 | cd image-identification-terminal; javac javaAccuracyCalculator.java
|
---|
128 | cd image-identification-terminal; javac -cp /Scratch/cpb16/opencv-3.4.2/build/bin/opencv-342.jar javaImageClassifier.java;
|
---|
129 | #Run javaImageClassifier on all images in MU
|
---|
130 | @echo starting houghlinesP classfier
|
---|
131 | @date
|
---|
132 | cd image-identification-terminal; ./runClassifer.sh /Scratch/cpb16/is-sheet-music-encore/download-images/MU houghlinesP log-houghlinesP-MU.txt -all
|
---|
133 | @echo finished houghlinesP classifier
|
---|
134 | @date
|
---|
135 | @echo starting houghlinesP-refined classfier
|
---|
136 | cd image-identification-terminal; ./runClassifer.sh /Scratch/cpb16/is-sheet-music-encore/download-images/MU houghlinesP-refined log-houghlinesP-refined-MU.txt -all
|
---|
137 | @echo finished houghlinesP-refined classifier
|
---|
138 | @date
|
---|
139 | #Calculate the Accuracy of the classifier
|
---|
140 | cd image-identification-terminal; java javaAccuracyCalculator log-houghlinesP-MU.txt houghlinesP results.txt
|
---|
141 | cd image-identification-terminal; java javaAccuracyCalculator log-houghlinesP-refined-MU.txt houghlinesP-refined results.txt
|
---|
142 | #Display the results
|
---|
143 | cd image-identification-terminal; less results.txt
|
---|
144 | cd image-identification-terminal; less log-houghlinesP-MU.txt
|
---|
145 | cd image-identification-terminal; less log-houghlinesP-refined-MU.txt
|
---|
146 |
|
---|
147 | run-classifier-houghlinesP-refined-test-remote:
|
---|
148 | #Compile
|
---|
149 | cd image-identification-terminal; javac javaAccuracyCalculator.java
|
---|
150 | cd image-identification-terminal; javac -cp /Scratch/cpb16/opencv-3.4.2/build/bin/opencv-342.jar javaImageClassifier.java;
|
---|
151 | #Run javaImageClassifier on all images in TestImages
|
---|
152 | @echo starting classfier
|
---|
153 | @date
|
---|
154 | cd image-identification-terminal; ./runClassifer.sh /Scratch/cpb16/is-sheet-music-encore/download-images/TestImages houghlinesP-refined log-TestImages.txt -all
|
---|
155 | @echo finished classifier
|
---|
156 | @date
|
---|
157 | #Calculate the Accuracy of the classifier
|
---|
158 | cd image-identification-terminal; java javaAccuracyCalculator log-TestImages.txt houghlinesP-refined-test results.txt
|
---|
159 | #Display output of javaImageClassifier
|
---|
160 | cd image-identification-terminal; less log-TestImages.txt
|
---|
161 | #Display output of javaAccuracyCalculator output
|
---|
162 | cd image-identification-terminal; less results.txt
|
---|
163 | cd image-identification-terminal; rm log-TestImages.txt
|
---|
164 |
|
---|