1 | compile:
|
---|
2 | cd java-gen-corpus; javac *.java;
|
---|
3 | #*******
|
---|
4 |
|
---|
5 |
|
---|
6 | download-single:
|
---|
7 | ./COMPX520-RUN-PNG.sh coo1.ark:/13960/t2t448j81 1
|
---|
8 |
|
---|
9 |
|
---|
10 | #**********
|
---|
11 | #HI-RES
|
---|
12 | #**********
|
---|
13 |
|
---|
14 | hi-res-download-all:
|
---|
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
|
---|
19 |
|
---|
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:
|
---|
26 | cd java-gen-corpus; javac *.java
|
---|
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
|
---|
30 |
|
---|
31 |
|
---|
32 | #BOOKS, Monograhpical
|
---|
33 | gen-500-BK:
|
---|
34 | cd java-gen-corpus; javac *.java
|
---|
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
|
---|
38 |
|
---|
39 |
|
---|
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
|
---|
46 |
|
---|
47 |
|
---|
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 |
|
---|
63 | #***********
|
---|
64 | #CLASSIFIERS
|
---|
65 | #***********
|
---|
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
|
---|
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;
|
---|
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
|
---|
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;
|
---|
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 |
|
---|
107 |
|
---|
108 |
|
---|
109 |
|
---|
110 |
|
---|
111 |
|
---|
112 |
|
---|
113 |
|
---|
114 |
|
---|
115 |
|
---|
116 |
|
---|
117 |
|
---|
118 |
|
---|
119 |
|
---|
120 |
|
---|
121 |
|
---|
122 |
|
---|
123 | #***********
|
---|
124 | #OLDCLASSIFIERS
|
---|
125 | #***********
|
---|
126 | run-houghlinesP-refined-corpus:
|
---|
127 | #cd image-identification-terminal; cd log-all; rm *.txt
|
---|
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 |
|
---|
144 | run-houghlinesP-refined-corpus-hi-res:
|
---|
145 | cd image-identification-terminal; cd log-all-hires; rm *.txt
|
---|
146 | #Compile
|
---|
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
|
---|
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
|
---|
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
|
---|
155 | cd image-identification-terminal; java javaAccuracyCalculator log-all-hires/log-houghlinesP-refined-MU.txt houghlinesP-refined-MU log-all-hires/results.txt
|
---|
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
|
---|
160 | cd image-identification-terminal; less log-all-hires/results.txt
|
---|