[33437] | 1 | #**********
|
---|
| 2 | #Utilities/Test
|
---|
| 3 | #**********
|
---|
[33439] | 4 | hi-res-download-map-middle:
|
---|
| 5 | ./COMPX520-DOWNLOADER-MIDDLE-PNG.sh java-gen-corpus/MapListNumPages.txt MP
|
---|
[33437] | 6 |
|
---|
[33031] | 7 | compile:
|
---|
| 8 | cd java-gen-corpus; javac *.java;
|
---|
| 9 |
|
---|
[33415] | 10 | download-single:
|
---|
[33437] | 11 | ./COMPX520-RUN-PNG-hi-res.sh coo1.ark:/13960/t2t448j81 1 /..
|
---|
| 12 |
|
---|
| 13 | test-get-page-numbers-map:
|
---|
| 14 | cd java-gen-corpus; javac javaGenMapPageCountChecker.java
|
---|
| 15 | cd java-gen-corpus; java javaGenMapPageCountChecker gen-500-MP-hathiFullIDList.txt 234 MapListNumPages.txt
|
---|
[33375] | 16 |
|
---|
| 17 |
|
---|
[33437] | 18 | test-gen-new-5000-map:
|
---|
| 19 | #MAKE SURE TO RUN source SETUP.bash prior to this cmd
|
---|
| 20 | cd java-gen-corpus; javac javaGenMap5000ValidIDList.java
|
---|
| 21 | cd java-gen-corpus; java javaGenMap5000ValidIDList gen-500-MP-hathiFullIDList.txt gen-5000-MapList02.txt
|
---|
| 22 |
|
---|
| 23 | test-gen-new-5000-local-map:
|
---|
| 24 | #MAKE SURE TO RUN source SETUP.bash prior to this cmd
|
---|
| 25 | cd java-gen-corpus; javac javaGenMapLocal5000ValidIDList.java
|
---|
| 26 | cd java-gen-corpus; java javaGenMapLocal5000ValidIDList MapListNumPages.txt gen-5000-Local-MapList.txt
|
---|
| 27 |
|
---|
| 28 |
|
---|
[33447] | 29 | run-morphology-20-test:
|
---|
[33449] | 30 | cd image-identification-terminal/log-all-hires-new/test; rm log-morphology-MU-test.txt
|
---|
[33437] | 31 | cd image-identification-terminal; javac javaAccuracyCalculator.java
|
---|
| 32 | cd image-identification-terminal; javac -cp /Scratch/cpb16/opencv-3.4.2/build/bin/opencv-342.jar javaClassifierComparison.java;
|
---|
[33447] | 33 | cd image-identification-terminal; ./runClassifer.sh /Scratch/cpb16/is-sheet-music-encore/hires-download-images/MU morphology log-all-hires-new/test/log-morphology-MU-test.txt -testNew
|
---|
| 34 | cd image-identification-terminal; date >> log-all-hires-new/test/results.txt
|
---|
| 35 | cd image-identification-terminal; cat configClassifierComparison.properties >> log-all-hires-new/test/results.txt
|
---|
| 36 | cd image-identification-terminal; java javaAccuracyCalculator log-all-hires-new/test/log-morphology-MU-test.txt morphology-MU log-all-hires-new/test/results.txt
|
---|
| 37 | cd image-identification-terminal; less log-all-hires-new/test/results.txt
|
---|
| 38 | cd image-identification-terminal; less log-all-hires-new/test/log-morphology-MU-test.txt
|
---|
[33437] | 39 |
|
---|
| 40 | run-morph-single:
|
---|
| 41 | cd image-identification-terminal; make testrun-classifier-single-morph
|
---|
[33447] | 42 | run-count-single:
|
---|
| 43 | cd image-identification-terminal; make testrun-classifier-single-count
|
---|
| 44 | run-cluster-single:
|
---|
| 45 | cd image-identification-terminal; make testrun-classifier-single-cluster
|
---|
| 46 | run-combo-single:
|
---|
| 47 | cd image-identification-terminal; make testrun-classifier-single-combo
|
---|
[33340] | 48 | #**********
|
---|
| 49 | #HI-RES
|
---|
| 50 | #**********
|
---|
[33415] | 51 |
|
---|
[33340] | 52 | hi-res-download-all:
|
---|
[33384] | 53 | ./COMPX520-DOWNLOADER-PNG-10PAGES-hi-res.sh java-gen-corpus/MU-500-reconstructed.txt MU
|
---|
| 54 | ./COMPX520-DOWNLOADER-PNG-10PAGES-hi-res.sh java-gen-corpus/BK-500-reconstructed.txt BK
|
---|
| 55 | ./COMPX520-DOWNLOADER-PNG-10PAGES-hi-res.sh java-gen-corpus/SE-500-reconstructed.txt SE
|
---|
[33437] | 56 | make hi-res-download-map
|
---|
| 57 | hi-res-download-map:
|
---|
| 58 | ./FirstAndLastTest-DOWNLOADER-PNG.sh java-gen-corpus/gen-5000-Local-MapList.txt MP
|
---|
[33375] | 59 |
|
---|
[33059] | 60 | ######################################
|
---|
| 61 | #CAUTION: run must: source SETUP.bash
|
---|
[33437] | 62 | #Prior to running the gen-* scripts
|
---|
[33059] | 63 | ######################################
|
---|
[33437] | 64 | gen-10000-MU:
|
---|
[33044] | 65 | cd java-gen-corpus; javac *.java
|
---|
[33437] | 66 | cd java-gen-corpus; java javaGenFullIDList hathiFull.txt gen-10000-MU-hathiFullIDList.txt MU
|
---|
| 67 | cd java-gen-corpus; java javaGenFirstAndLastTenIDList gen-10000-MU-hathiFullIDList.txt 10000 gen-10000-MU-hathiValidIDList.txt
|
---|
| 68 | #./FirstAndLastTest-DOWNLOADER-PNG.sh java-gen-corpus/gen-10000-MU-hathiValidIDList.txt MU
|
---|
[33031] | 69 |
|
---|
[33059] | 70 |
|
---|
[33170] | 71 | #***********
|
---|
| 72 | #CLASSIFIERS
|
---|
[33437] | 73 | #***********
|
---|
[33415] | 74 | run-cluster-single-test:
|
---|
| 75 | cd image-identification-terminal; make testrun-classifier-single-cluster
|
---|
[33437] | 76 |
|
---|
[33415] | 77 | run-count-single-test:
|
---|
| 78 | cd image-identification-terminal; make testrun-classifier-single-count
|
---|
[33437] | 79 |
|
---|
[33415] | 80 | run-cluster-corpus-hires:
|
---|
| 81 | #Compile
|
---|
[33170] | 82 | cd image-identification-terminal; javac javaAccuracyCalculator.java
|
---|
[33437] | 83 | cd image-identification-terminal; javac -cp /Scratch/cpb16/opencv-3.4.2/build/bin/opencv-342.jar javaClassifierComparison.java;
|
---|
[33415] | 84 | #Run classifier
|
---|
[33437] | 85 | cd image-identification-terminal; ./runClassifer.sh /Scratch/cpb16/is-sheet-music-encore/hires-download-images/MU cluster log-all-hires-new/log-cluster-MU.txt -allNew
|
---|
| 86 | cd image-identification-terminal; ./runClassifer.sh /Scratch/cpb16/is-sheet-music-encore/hires-download-images/BK cluster log-all-hires-new/log-cluster-BK.txt -allNew
|
---|
| 87 | cd image-identification-terminal; ./runClassifer.sh /Scratch/cpb16/is-sheet-music-encore/hires-download-images/MP cluster log-all-hires-new/log-cluster-MP.txt -allNew
|
---|
| 88 | cd image-identification-terminal; ./runClassifer.sh /Scratch/cpb16/is-sheet-music-encore/hires-download-images/SE cluster log-all-hires-new/log-cluster-SE.txt -allNew
|
---|
[33415] | 89 | #Calculate accuracy
|
---|
[33439] | 90 | cd image-identification-terminal; echo configClassifierComparison.properties >> log-all-hires-new/results.txt
|
---|
[33415] | 91 | cd image-identification-terminal; java javaAccuracyCalculator log-all-hires-new/log-cluster-MU.txt cluster-MU log-all-hires-new/results.txt
|
---|
| 92 | cd image-identification-terminal; java javaAccuracyCalculator log-all-hires-new/log-cluster-BK.txt cluster-BK log-all-hires-new/results.txt
|
---|
| 93 | cd image-identification-terminal; java javaAccuracyCalculator log-all-hires-new/log-cluster-MP.txt cluster-MP log-all-hires-new/results.txt
|
---|
| 94 | cd image-identification-terminal; java javaAccuracyCalculator log-all-hires-new/log-cluster-SE.txt cluster-SE log-all-hires-new/results.txt
|
---|
| 95 | #Display the results
|
---|
| 96 | cd image-identification-terminal; less log-all-hires-new/results.txt
|
---|
[33437] | 97 |
|
---|
[33415] | 98 | run-count-corpus-hires:
|
---|
| 99 | #Compile
|
---|
[33170] | 100 | cd image-identification-terminal; javac javaAccuracyCalculator.java
|
---|
[33437] | 101 | cd image-identification-terminal; javac -cp /Scratch/cpb16/opencv-3.4.2/build/bin/opencv-342.jar javaClassifierComparison.java;
|
---|
[33415] | 102 | #Run classifier
|
---|
[33437] | 103 | cd image-identification-terminal; ./runClassifer.sh /Scratch/cpb16/is-sheet-music-encore/hires-download-images/MU count log-all-hires-new/log-count-MU.txt -allNew
|
---|
| 104 | cd image-identification-terminal; ./runClassifer.sh /Scratch/cpb16/is-sheet-music-encore/hires-download-images/BK count log-all-hires-new/log-count-BK.txt -allNew
|
---|
| 105 | cd image-identification-terminal; ./runClassifer.sh /Scratch/cpb16/is-sheet-music-encore/hires-download-images/MP count log-all-hires-new/log-count-MP.txt -allNew
|
---|
| 106 | cd image-identification-terminal; ./runClassifer.sh /Scratch/cpb16/is-sheet-music-encore/hires-download-images/SE count log-all-hires-new/log-count-SE.txt -allNew
|
---|
[33415] | 107 | #Calculate accuracy
|
---|
| 108 | cd image-identification-terminal; java javaAccuracyCalculator log-all-hires-new/log-count-MU.txt count-MU log-all-hires-new/results.txt
|
---|
| 109 | cd image-identification-terminal; java javaAccuracyCalculator log-all-hires-new/log-count-BK.txt count-BK log-all-hires-new/results.txt
|
---|
| 110 | cd image-identification-terminal; java javaAccuracyCalculator log-all-hires-new/log-count-MP.txt count-MP log-all-hires-new/results.txt
|
---|
| 111 | cd image-identification-terminal; java javaAccuracyCalculator log-all-hires-new/log-count-SE.txt count-SE log-all-hires-new/results.txt
|
---|
| 112 | #Display the results
|
---|
| 113 | cd image-identification-terminal; less log-all-hires-new/results.txt
|
---|
[33170] | 114 |
|
---|
[33437] | 115 | #Cluster and Count
|
---|
| 116 | run-combo-corpus-hires:
|
---|
| 117 | #Compile
|
---|
| 118 | cd image-identification-terminal; javac javaAccuracyCalculator.java
|
---|
| 119 | cd image-identification-terminal; javac -cp /Scratch/cpb16/opencv-3.4.2/build/bin/opencv-342.jar javaClassifierComparison.java;
|
---|
| 120 | #Run classifier
|
---|
| 121 | cd image-identification-terminal; ./runClassifer.sh /Scratch/cpb16/is-sheet-music-encore/hires-download-images/MU combo log-all-hires-new/log-combo-MU.txt -allNew
|
---|
| 122 | cd image-identification-terminal; ./runClassifer.sh /Scratch/cpb16/is-sheet-music-encore/hires-download-images/BK combo log-all-hires-new/log-combo-BK.txt -allNew
|
---|
| 123 | #cd image-identification-terminal; ./runClassifer.sh /Scratch/cpb16/is-sheet-music-encore/hires-download-images/MP combo log-all-hires-new/log-combo-MP.txt -allNew
|
---|
| 124 | cd image-identification-terminal; ./runClassifer.sh /Scratch/cpb16/is-sheet-music-encore/hires-download-images/SE combo log-all-hires-new/log-combo-SE.txt -allNew
|
---|
| 125 | #Calculate accuracy
|
---|
| 126 | cd image-identification-terminal; java javaAccuracyCalculator log-all-hires-new/log-combo-MU.txt combo-MU log-all-hires-new/results.txt
|
---|
| 127 | cd image-identification-terminal; java javaAccuracyCalculator log-all-hires-new/log-combo-BK.txt combo-BK log-all-hires-new/results.txt
|
---|
| 128 | #cd image-identification-terminal; java javaAccuracyCalculator log-all-hires-new/log-combo-MP.txt combo-MP log-all-hires-new/results.txt
|
---|
| 129 | cd image-identification-terminal; java javaAccuracyCalculator log-all-hires-new/log-combo-SE.txt combo-SE log-all-hires-new/results.txt
|
---|
| 130 | #Display the results
|
---|
| 131 | cd image-identification-terminal; less log-all-hires-new/results.txt
|
---|
[33170] | 132 |
|
---|
| 133 |
|
---|
| 134 |
|
---|
[33415] | 135 |
|
---|
| 136 |
|
---|
| 137 |
|
---|
| 138 |
|
---|
| 139 |
|
---|
| 140 |
|
---|
| 141 |
|
---|
| 142 |
|
---|
| 143 |
|
---|
| 144 |
|
---|
| 145 |
|
---|
[33437] | 146 | #**************
|
---|
| 147 | #OLD SCRIPTS
|
---|
| 148 | #**************
|
---|
[33415] | 149 | #OLDCLASSIFIERS
|
---|
[33437] | 150 | #**************
|
---|
[33340] | 151 | run-houghlinesP-refined-corpus:
|
---|
| 152 | #cd image-identification-terminal; cd log-all; rm *.txt
|
---|
[33304] | 153 | #Compile
|
---|
| 154 | cd image-identification-terminal; javac javaAccuracyCalculator.java
|
---|
| 155 | cd image-identification-terminal; javac -cp /Scratch/cpb16/opencv-3.4.2/build/bin/opencv-342.jar javaImageClassifier.java;
|
---|
| 156 | #Run javaImageClassifier on all images in Corpus
|
---|
| 157 | 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
|
---|
| 158 | 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
|
---|
| 159 | 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
|
---|
| 160 | 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
|
---|
| 161 | #Calculate the Accuracy of the classifier
|
---|
| 162 | cd image-identification-terminal; java javaAccuracyCalculator log-all/log-houghlinesP-refined-MU.txt houghlinesP-refined-MU log-all/results.txt
|
---|
| 163 | cd image-identification-terminal; java javaAccuracyCalculator log-all/log-houghlinesP-refined-BK.txt houghlinesP-refined-BK log-all/results.txt
|
---|
| 164 | cd image-identification-terminal; java javaAccuracyCalculator log-all/log-houghlinesP-refined-MP.txt houghlinesP-refined-MP log-all/results.txt
|
---|
| 165 | cd image-identification-terminal; java javaAccuracyCalculator log-all/log-houghlinesP-refined-SE.txt houghlinesP-refined-SE log-all/results.txt
|
---|
| 166 | #Display the results
|
---|
| 167 | cd image-identification-terminal; less log-all/results.txt
|
---|
| 168 |
|
---|
[33367] | 169 | run-houghlinesP-refined-corpus-hi-res:
|
---|
[33375] | 170 | cd image-identification-terminal; cd log-all-hires; rm *.txt
|
---|
[33415] | 171 | #Compile
|
---|
[33367] | 172 | cd image-identification-terminal; javac javaAccuracyCalculator.java
|
---|
| 173 | cd image-identification-terminal; javac -cp /Scratch/cpb16/opencv-3.4.2/build/bin/opencv-342.jar javaImageClassifier.java;
|
---|
| 174 | #Run javaImageClassifier on all images in Corpus
|
---|
[33375] | 175 | 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
|
---|
[33367] | 176 | 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
|
---|
| 177 | 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
|
---|
| 178 | 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
|
---|
| 179 | #Calculate the Accuracy of the classifier
|
---|
[33375] | 180 | cd image-identification-terminal; java javaAccuracyCalculator log-all-hires/log-houghlinesP-refined-MU.txt houghlinesP-refined-MU log-all-hires/results.txt
|
---|
[33367] | 181 | cd image-identification-terminal; java javaAccuracyCalculator log-all-hires/log-houghlinesP-refined-BK.txt houghlinesP-refined-BK log-all-hires/results.txt
|
---|
| 182 | cd image-identification-terminal; java javaAccuracyCalculator log-all-hires/log-houghlinesP-refined-MP.txt houghlinesP-refined-MP log-all-hires/results.txt
|
---|
| 183 | cd image-identification-terminal; java javaAccuracyCalculator log-all-hires/log-houghlinesP-refined-SE.txt houghlinesP-refined-SE log-all-hires/results.txt
|
---|
| 184 | #Display the results
|
---|
[33415] | 185 | cd image-identification-terminal; less log-all-hires/results.txt
|
---|
[33437] | 186 |
|
---|
| 187 | #***********
|
---|
| 188 | #OLDGEN
|
---|
| 189 | #***********
|
---|
| 190 | #MUSIC, Including Sheet music
|
---|
| 191 | gen-500-MU:
|
---|
| 192 | cd java-gen-corpus; javac *.java
|
---|
| 193 | cd java-gen-corpus; java javaGenFullIDList hathiFull.txt gen-500-MU-hathiFullIDList.txt MU
|
---|
| 194 | cd java-gen-corpus; java javaGenValidIDList gen-500-MU-hathiFullIDList.txt 500 gen-500-MU-hathiValidIDList.txt
|
---|
| 195 | ./COMPX520-DOWNLOADER-PNG-10PAGES.sh java-gen-corpus/gen-500-MU-hathiValidIDList.txt
|
---|
| 196 |
|
---|
| 197 |
|
---|
| 198 | #BOOKS, Monograhpical
|
---|
| 199 | gen-500-BK:
|
---|
| 200 | cd java-gen-corpus; javac *.java
|
---|
| 201 | cd java-gen-corpus; java javaGenFullIDList hathiFull.txt gen-500-BK-hathiFullIDList.txt BK
|
---|
| 202 | cd java-gen-corpus; java javaGenValidIDList gen-500-BK-hathiFullIDList.txt 500 gen-500-BK-hathiValidIDList.txt
|
---|
| 203 | ./COMPX520-DOWNLOADER-PNG-10PAGES.sh java-gen-corpus/gen-500-BK-hathiValidIDList.txt
|
---|
| 204 |
|
---|
| 205 |
|
---|
| 206 | #SERIAL (journals, newspapers,etc)
|
---|
| 207 | gen-500-SE:
|
---|
| 208 | cd java-gen-corpus; javac *.java
|
---|
| 209 | cd java-gen-corpus; java javaGenFullIDList hathiFull.txt gen-500-SE-hathiFullIDList.txt SE
|
---|
| 210 | cd java-gen-corpus; java javaGenValidIDList gen-500-SE-hathiFullIDList.txt 500 gen-500-SE-hathiValidIDList.txt
|
---|
| 211 | ./COMPX520-DOWNLOADER-PNG-10PAGES.sh java-gen-corpus/gen-500-SE-hathiValidIDList.txt
|
---|
| 212 |
|
---|
| 213 |
|
---|
| 214 | #MAPS, Including atlas and sheet maps
|
---|
| 215 | gen-500-MP:
|
---|
| 216 | cd java-gen-corpus; javac *.java
|
---|
| 217 | cd java-gen-corpus; java javaGenFullIDList hathiFull.txt gen-500-MP-hathiFullIDList.txt MP
|
---|
| 218 | cd java-gen-corpus; java javaGenValidIDList gen-500-MP-hathiFullIDList.txt 500 gen-500-MP-hathiValidIDList.txt
|
---|
| 219 | ./COMPX520-DOWNLOADER-PNG-10PAGES.sh java-gen-corpus/gen-500-MP-hathiValidIDList.txt
|
---|
| 220 |
|
---|
| 221 |
|
---|
| 222 | #MIXED MATERIAL (This may not be required)
|
---|
| 223 | gen-500-MX:
|
---|
| 224 | cd java-gen-corpus; javac *.java
|
---|
| 225 | cd java-gen-corpus; java javaGenFullIDList hathiFull.txt gen-500-MX-hathiFullIDList.txt MX
|
---|
| 226 | cd java-gen-corpus; java javaGenValidIDList gen-500-MX-hathiFullIDList.txt 500 gen-500-MX-hathiValidIDList.txt
|
---|
| 227 | ./COMPX520-DOWNLOADER-PNG-10PAGES.sh java-gen-corpus/gen-500-MX-hathiValidIDList.txt
|
---|
| 228 |
|
---|