compile: cd java-gen-corpus; javac *.java; #******* single: ./COMPX520-RUN-PNG.sh coo1.ark:/13960/t2t448j81 1 #********** #HI-RES #********** hi-res-download-all: ./COMPX520-DOWNLOADER-PNG-10PAGES-hi-res.sh java-gen-corpus/gen-50-MU-hathiValidIDList.txt MU ./COMPX520-DOWNLOADER-PNG-10PAGES-hi-res.sh java-gen-corpus/gen-50-BK-hathiValidIDList.txt BK ./COMPX520-DOWNLOADER-PNG-10PAGES-hi-res.sh java-gen-corpus/gen-50-SE-hathiValidIDList.txt SE ./COMPX520-DOWNLOADER-PNG-10PAGES-hi-res.sh java-gen-corpus/gen-50-MP-hathiValidIDList.txt MP hi-res-download-reconstructed: ./COMPX520-DOWNLOADER-PNG-10PAGES-hi-res.sh java-gen-corpus/MU-500-reconstructed.txt MU ./COMPX520-DOWNLOADER-PNG-10PAGES-hi-res.sh java-gen-corpus/BK-500-reconstructed.txt BK ./COMPX520-DOWNLOADER-PNG-10PAGES-hi-res.sh java-gen-corpus/SE-500-reconstructed.txt SE ./COMPX520-DOWNLOADER-PNG-10PAGES-hi-res.sh java-gen-corpus/MP-500-reconstructed.txt MP ###################################### #CAUTION: run must: source SETUP.bash #Prior to running the scripts below ###################################### #Run all DOWNLOAD #NNEEDDD TOO FIIX gen-500-all: make gen-500-MU make gen-500-BK make gen-500-SE make gen-500-MP make gen-500-MX #MUSIC, Including Sheet music gen-500-MU: cd java-gen-corpus; javac *.java cd java-gen-corpus; java javaGenFullIDList hathiFull.txt gen-500-MU-hathiFullIDList.txt MU cd java-gen-corpus; java javaGenValidIDList gen-500-MU-hathiFullIDList.txt 500 gen-500-MU-hathiValidIDList.txt ./COMPX520-DOWNLOADER-PNG-10PAGES.sh java-gen-corpus/gen-500-MU-hathiValidIDList.txt #BOOKS, Monograhpical gen-500-BK: cd java-gen-corpus; javac *.java cd java-gen-corpus; java javaGenFullIDList hathiFull.txt gen-500-BK-hathiFullIDList.txt BK cd java-gen-corpus; java javaGenValidIDList gen-500-BK-hathiFullIDList.txt 500 gen-500-BK-hathiValidIDList.txt ./COMPX520-DOWNLOADER-PNG-10PAGES.sh java-gen-corpus/gen-500-BK-hathiValidIDList.txt #SERIAL (journals, newspapers,etc) gen-500-SE: cd java-gen-corpus; javac *.java cd java-gen-corpus; java javaGenFullIDList hathiFull.txt gen-500-SE-hathiFullIDList.txt SE cd java-gen-corpus; java javaGenValidIDList gen-500-SE-hathiFullIDList.txt 500 gen-500-SE-hathiValidIDList.txt ./COMPX520-DOWNLOADER-PNG-10PAGES.sh java-gen-corpus/gen-500-SE-hathiValidIDList.txt #MAPS, Including atlas and sheet maps gen-500-MP: cd java-gen-corpus; javac *.java cd java-gen-corpus; java javaGenFullIDList hathiFull.txt gen-500-MP-hathiFullIDList.txt MP cd java-gen-corpus; java javaGenValidIDList gen-500-MP-hathiFullIDList.txt 500 gen-500-MP-hathiValidIDList.txt ./COMPX520-DOWNLOADER-PNG-10PAGES.sh java-gen-corpus/gen-500-MP-hathiValidIDList.txt #MIXED MATERIAL (This may not be required) gen-500-MX: cd java-gen-corpus; javac *.java cd java-gen-corpus; java javaGenFullIDList hathiFull.txt gen-500-MX-hathiFullIDList.txt MX cd java-gen-corpus; java javaGenValidIDList gen-500-MX-hathiFullIDList.txt 500 gen-500-MX-hathiValidIDList.txt ./COMPX520-DOWNLOADER-PNG-10PAGES.sh java-gen-corpus/gen-500-MX-hathiValidIDList.txt #*********** #CLASSIFIERS #*********** #HoughLinesP run-classifier-houghlinesP-test: #Compile cd image-identification-terminal; javac javaAccuracyCalculator.java cd image-identification-terminal; javac -cp /Scratch/cpb16/opencv-3.4.2/build/bin/opencv-342.jar javaImageClassifier.java; #Run javaImageClassifier on all images in TestImages @echo starting classfier @date cd image-identification-terminal; ./runClassifer.sh /Scratch/cpb16/is-sheet-music-encore/download-images/MU houghlinesP log-houghlinesP-test.txt -test @echo finished classifier @date #Calculate the Accuracy of the classifier cd image-identification-terminal; java javaAccuracyCalculator log-houghlinesP-test.txt houghlinesP results.txt #Display output of javaImageClassifier cd image-identification-terminal; less log-houghlinesP-test.txt #Display output of javaAccuracyCalculator cd image-identification-terminal; less results.txt run-classifier-houghlinesP-all: #Compile cd image-identification-terminal; javac javaAccuracyCalculator.java cd image-identification-terminal; javac -cp /Scratch/cpb16/opencv-3.4.2/build/bin/opencv-342.jar javaImageClassifier.java; #Run javaImageClassifier on all images in MU @echo starting classfier @date cd image-identification-terminal; ./runClassifer.sh /Scratch/cpb16/is-sheet-music-encore/download-images/MU houghlinesP log-houghlinesP-MU.txt -all @echo finished classifier @date #Calculate the Accuracy of the classifier cd image-identification-terminal; java javaAccuracyCalculator log-houghlinesP-MU.txt houghlinesP results.txt #Display output of javaImageClassifier cd image-identification-terminal; less log-houghlinesP-MU.txt #Display output of javaAccuracyCalculator cd image-identification-terminal; less results.txt #HoughLinesP_refined run-classifier-houghlinesP-refined-test: #cd image-identification-terminal; rm log-houghlinesP-refined-test.txt #Compile cd image-identification-terminal; javac javaAccuracyCalculator.java cd image-identification-terminal; javac -cp /Scratch/cpb16/opencv-3.4.2/build/bin/opencv-342.jar javaImageClassifier.java; #Run javaImageClassifier on all images in TestImages @echo starting classfier @date cd image-identification-terminal; ./runClassifer.sh /Scratch/cpb16/is-sheet-music-encore/download-images/MU houghlinesP-refined log-houghlinesP-refined-test.txt -test @echo finished classifier @date #Calculate the Accuracy of the classifier cd image-identification-terminal; java javaAccuracyCalculator log-houghlinesP-refined-test.txt houghlinesP-refined-test results.txt #Display output of javaImageClassifier cd image-identification-terminal; less log-houghlinesP-refined-test.txt #Display output of javaAccuracyCalculator output cd image-identification-terminal; less results.txt run-classifier-houghlinesP-refined-all: cd image-identification-terminal; rm log-houghlinesP-refined-MU.txt #Compile cd image-identification-terminal; javac javaAccuracyCalculator.java cd image-identification-terminal; javac -cp /Scratch/cpb16/opencv-3.4.2/build/bin/opencv-342.jar javaImageClassifier.java; #Run javaImageClassifier on all images in MU @echo starting classfier @date cd image-identification-terminal; ./runClassifer.sh /Scratch/cpb16/is-sheet-music-encore/download-images/MU houghlinesP-refined log-houghlinesP-refined-MU.txt -all @echo finished classifier @date #Calculate the Accuracy of the classifier cd image-identification-terminal; java javaAccuracyCalculator log-houghlinesP-refined-MU.txt houghlinesP-refined-all results.txt #Display output of javaImageClassifier cd image-identification-terminal; less log-houghlinesP-refined-MU.txt #Display output of javaAccuracyCalculator cd image-identification-terminal; less results.txt run-both-MU: #Compile cd image-identification-terminal; javac javaAccuracyCalculator.java cd image-identification-terminal; javac -cp /Scratch/cpb16/opencv-3.4.2/build/bin/opencv-342.jar javaImageClassifier.java; #Run javaImageClassifier on all images in MU @echo starting houghlinesP classfier @date cd image-identification-terminal; ./runClassifer.sh /Scratch/cpb16/is-sheet-music-encore/download-images/MU houghlinesP log-houghlinesP-MU.txt -all @echo finished houghlinesP classifier @date @echo starting houghlinesP-refined classfier cd image-identification-terminal; ./runClassifer.sh /Scratch/cpb16/is-sheet-music-encore/download-images/MU houghlinesP-refined log-houghlinesP-refined-MU.txt -all @echo finished houghlinesP-refined classifier @date #Calculate the Accuracy of the classifier cd image-identification-terminal; java javaAccuracyCalculator log-houghlinesP-MU.txt houghlinesP results.txt cd image-identification-terminal; java javaAccuracyCalculator log-houghlinesP-refined-MU.txt houghlinesP-refined results.txt #Display the results cd image-identification-terminal; less results.txt cd image-identification-terminal; less log-houghlinesP-MU.txt cd image-identification-terminal; less log-houghlinesP-refined-MU.txt run-houghlinesP-refined-corpus: #cd image-identification-terminal; cd log-all; rm *.txt #Compile cd image-identification-terminal; javac javaAccuracyCalculator.java cd image-identification-terminal; javac -cp /Scratch/cpb16/opencv-3.4.2/build/bin/opencv-342.jar javaImageClassifier.java; #Run javaImageClassifier on all images in Corpus 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 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 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 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 #Calculate the Accuracy of the classifier cd image-identification-terminal; java javaAccuracyCalculator log-all/log-houghlinesP-refined-MU.txt houghlinesP-refined-MU log-all/results.txt cd image-identification-terminal; java javaAccuracyCalculator log-all/log-houghlinesP-refined-BK.txt houghlinesP-refined-BK log-all/results.txt cd image-identification-terminal; java javaAccuracyCalculator log-all/log-houghlinesP-refined-MP.txt houghlinesP-refined-MP log-all/results.txt cd image-identification-terminal; java javaAccuracyCalculator log-all/log-houghlinesP-refined-SE.txt houghlinesP-refined-SE log-all/results.txt #Display the results cd image-identification-terminal; less log-all/results.txt run-houghlinesP-refined-corpus-hi-res: cd image-identification-terminal; cd log-all-hires; rm *.txt #Compile cd image-identification-terminal; javac javaAccuracyCalculator.java cd image-identification-terminal; javac -cp /Scratch/cpb16/opencv-3.4.2/build/bin/opencv-342.jar javaImageClassifier.java; #Run javaImageClassifier on all images in Corpus 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 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 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 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 #Calculate the Accuracy of the classifier cd image-identification-terminal; java javaAccuracyCalculator log-all-hires/log-houghlinesP-refined-MU.txt houghlinesP-refined-MU log-all-hires/results.txt cd image-identification-terminal; java javaAccuracyCalculator log-all-hires/log-houghlinesP-refined-BK.txt houghlinesP-refined-BK log-all-hires/results.txt cd image-identification-terminal; java javaAccuracyCalculator log-all-hires/log-houghlinesP-refined-MP.txt houghlinesP-refined-MP log-all-hires/results.txt cd image-identification-terminal; java javaAccuracyCalculator log-all-hires/log-houghlinesP-refined-SE.txt houghlinesP-refined-SE log-all-hires/results.txt #Display the results cd image-identification-terminal; less log-all-hires/results.txt