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