source: other-projects/is-sheet-music-encore/trunk/Makefile@ 33243

Last change on this file since 33243 was 33243, checked in by cpb16, 5 years ago

Had break through with the refined houghlinesP algorithm overall accurarcy rate of 93%

File size: 7.1 KB
Line 
1compile:
2 cd java-gen-corpus; javac *.java;
3
4
5######################################
6#CAUTION: run must: source SETUP.bash
7#Prior to running the scripts below
8######################################
9
10
11#MUSIC, Including Sheet music
12gen-500-MU:
13 cd java-gen-corpus; javac *.java
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
17
18
19#BOOKS, Monograhpical
20gen-500-BK:
21 cd java-gen-corpus; javac *.java
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
25
26
27#SERIAL (journals, newspapers,etc)
28gen-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
33
34
35#MAPS, Including atlas and sheet maps
36gen-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)
44gen-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
48
49 ./COMPX520-DOWNLOADER-PNG-10PAGES.sh java-gen-corpus/gen-500-MX-hathiValidIDList.txt
50
51#***********
52#CLASSIFIERS
53#***********
54
55#HoughLinesP
56run-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
72
73run-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
91run-classifier-houghlinesP-refined-test:
92 #cd image-identification-terminal; rm log-houghlinesP-refined-test.txt
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
103 cd image-identification-terminal; java javaAccuracyCalculator log-houghlinesP-refined-test.txt houghlinesP-refined-test results.txt
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
109run-classifier-houghlinesP-refined-all:
110 cd image-identification-terminal; rm log-houghlinesP-refined-MU.txt
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
117 cd image-identification-terminal; ./runClassifer.sh /Scratch/cpb16/is-sheet-music-encore/download-images/MU houghlinesP-refined log-houghlinesP-refined-MU.txt -all
118 @echo finished classifier
119 @date
120 #Calculate the Accuracy of the classifier
121 cd image-identification-terminal; java javaAccuracyCalculator log-houghlinesP-refined-MU.txt houghlinesP-refined-all results.txt
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
127run-all:
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
Note: See TracBrowser for help on using the repository browser.