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