[33031] | 1 | compile:
|
---|
| 2 | cd java-gen-corpus; javac *.java;
|
---|
| 3 |
|
---|
| 4 |
|
---|
[33059] | 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:
|
---|
[33044] | 13 | cd java-gen-corpus; javac *.java
|
---|
[33059] | 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
|
---|
[33031] | 17 |
|
---|
[33059] | 18 |
|
---|
| 19 | #BOOKS, Monograhpical
|
---|
| 20 | gen-500-BK:
|
---|
[33047] | 21 | cd java-gen-corpus; javac *.java
|
---|
[33059] | 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
|
---|
[33031] | 25 |
|
---|
[33044] | 26 |
|
---|
[33059] | 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
|
---|
[33047] | 33 |
|
---|
| 34 |
|
---|
[33059] | 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
|
---|
[33170] | 48 |
|
---|
[33059] | 49 | ./COMPX520-DOWNLOADER-PNG-10PAGES.sh java-gen-corpus/gen-500-MX-hathiValidIDList.txt
|
---|
| 50 |
|
---|
[33170] | 51 | #***********
|
---|
| 52 | #CLASSIFIERS
|
---|
| 53 | #***********
|
---|
[33059] | 54 |
|
---|
[33170] | 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
|
---|
[33059] | 72 |
|
---|
[33170] | 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:
|
---|
[33243] | 92 | #cd image-identification-terminal; rm log-houghlinesP-refined-test.txt
|
---|
[33170] | 93 | #Compile
|
---|
| 94 | cd image-identification-terminal; javac javaAccuracyCalculator.java
|
---|
| 95 | cd image-identification-terminal; javac -cp /Scratch/cpb16/opencv-3.4.2/build/bin/opencv-342.jar javaImageClassifier.java;
|
---|
| 96 | #Run javaImageClassifier on all images in TestImages
|
---|
| 97 | @echo starting classfier
|
---|
| 98 | @date
|
---|
| 99 | cd image-identification-terminal; ./runClassifer.sh /Scratch/cpb16/is-sheet-music-encore/download-images/MU houghlinesP-refined log-houghlinesP-refined-test.txt -test
|
---|
| 100 | @echo finished classifier
|
---|
| 101 | @date
|
---|
| 102 | #Calculate the Accuracy of the classifier
|
---|
[33243] | 103 | cd image-identification-terminal; java javaAccuracyCalculator log-houghlinesP-refined-test.txt houghlinesP-refined-test results.txt
|
---|
[33170] | 104 | #Display output of javaImageClassifier
|
---|
| 105 | cd image-identification-terminal; less log-houghlinesP-refined-test.txt
|
---|
| 106 | #Display output of javaAccuracyCalculator output
|
---|
| 107 | cd image-identification-terminal; less results.txt
|
---|
| 108 |
|
---|
| 109 | run-classifier-houghlinesP-refined-all:
|
---|
[33243] | 110 | cd image-identification-terminal; rm log-houghlinesP-refined-MU.txt
|
---|
[33170] | 111 | #Compile
|
---|
| 112 | cd image-identification-terminal; javac javaAccuracyCalculator.java
|
---|
| 113 | cd image-identification-terminal; javac -cp /Scratch/cpb16/opencv-3.4.2/build/bin/opencv-342.jar javaImageClassifier.java;
|
---|
| 114 | #Run javaImageClassifier on all images in MU
|
---|
| 115 | @echo starting classfier
|
---|
| 116 | @date
|
---|
[33243] | 117 | cd image-identification-terminal; ./runClassifer.sh /Scratch/cpb16/is-sheet-music-encore/download-images/MU houghlinesP-refined log-houghlinesP-refined-MU.txt -all
|
---|
[33170] | 118 | @echo finished classifier
|
---|
| 119 | @date
|
---|
| 120 | #Calculate the Accuracy of the classifier
|
---|
[33243] | 121 | cd image-identification-terminal; java javaAccuracyCalculator log-houghlinesP-refined-MU.txt houghlinesP-refined-all results.txt
|
---|
[33170] | 122 | #Display output of javaImageClassifier
|
---|
| 123 | cd image-identification-terminal; less log-houghlinesP-refined-MU.txt
|
---|
| 124 | #Display output of javaAccuracyCalculator
|
---|
| 125 | cd image-identification-terminal; less results.txt
|
---|
| 126 |
|
---|
[33304] | 127 | run-both-MU:
|
---|
[33170] | 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 MU
|
---|
| 132 | @echo starting houghlinesP classfier
|
---|
| 133 | @date
|
---|
| 134 | cd image-identification-terminal; ./runClassifer.sh /Scratch/cpb16/is-sheet-music-encore/download-images/MU houghlinesP log-houghlinesP-MU.txt -all
|
---|
| 135 | @echo finished houghlinesP classifier
|
---|
| 136 | @date
|
---|
| 137 | @echo starting houghlinesP-refined classfier
|
---|
| 138 | cd image-identification-terminal; ./runClassifer.sh /Scratch/cpb16/is-sheet-music-encore/download-images/MU houghlinesP-refined log-houghlinesP-refined-MU.txt -all
|
---|
| 139 | @echo finished houghlinesP-refined classifier
|
---|
| 140 | @date
|
---|
| 141 | #Calculate the Accuracy of the classifier
|
---|
| 142 | cd image-identification-terminal; java javaAccuracyCalculator log-houghlinesP-MU.txt houghlinesP results.txt
|
---|
| 143 | cd image-identification-terminal; java javaAccuracyCalculator log-houghlinesP-refined-MU.txt houghlinesP-refined results.txt
|
---|
| 144 | #Display the results
|
---|
| 145 | cd image-identification-terminal; less results.txt
|
---|
| 146 | cd image-identification-terminal; less log-houghlinesP-MU.txt
|
---|
| 147 | cd image-identification-terminal; less log-houghlinesP-refined-MU.txt
|
---|
| 148 |
|
---|
[33304] | 149 | run-houghlineP-refined-corpus:
|
---|
| 150 | cd image-identification-terminal; cd log-all; rm *.txt
|
---|
| 151 | #Compile
|
---|
| 152 | cd image-identification-terminal; javac javaAccuracyCalculator.java
|
---|
| 153 | cd image-identification-terminal; javac -cp /Scratch/cpb16/opencv-3.4.2/build/bin/opencv-342.jar javaImageClassifier.java;
|
---|
| 154 | #Run javaImageClassifier on all images in Corpus
|
---|
| 155 | 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
|
---|
| 156 | 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
|
---|
| 157 | 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
|
---|
| 158 | 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
|
---|
| 159 | #Calculate the Accuracy of the classifier
|
---|
| 160 | cd image-identification-terminal; java javaAccuracyCalculator log-all/log-houghlinesP-refined-MU.txt houghlinesP-refined-MU log-all/results.txt
|
---|
| 161 | cd image-identification-terminal; java javaAccuracyCalculator log-all/log-houghlinesP-refined-BK.txt houghlinesP-refined-BK log-all/results.txt
|
---|
| 162 | cd image-identification-terminal; java javaAccuracyCalculator log-all/log-houghlinesP-refined-MP.txt houghlinesP-refined-MP log-all/results.txt
|
---|
| 163 | cd image-identification-terminal; java javaAccuracyCalculator log-all/log-houghlinesP-refined-SE.txt houghlinesP-refined-SE log-all/results.txt
|
---|
| 164 | #Display the results
|
---|
| 165 | cd image-identification-terminal; less log-all/results.txt
|
---|
| 166 |
|
---|