Changeset 33221 for other-projects/is-sheet-music-encore
- Timestamp:
- 2019-06-25T12:53:21+12:00 (5 years ago)
- Location:
- other-projects/is-sheet-music-encore/trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/is-sheet-music-encore/trunk/Makefile
r33170 r33221 145 145 cd image-identification-terminal; less log-houghlinesP-refined-MU.txt 146 146 147 run-classifier-houghlinesP-refined-test-remote: 148 #Compile 149 cd image-identification-terminal; javac javaAccuracyCalculator.java 150 cd image-identification-terminal; javac -cp /Scratch/cpb16/opencv-3.4.2/build/bin/opencv-342.jar javaImageClassifier.java; 151 #Run javaImageClassifier on all images in TestImages 152 @echo starting classfier 153 @date 154 cd image-identification-terminal; ./runClassifer.sh /Scratch/cpb16/is-sheet-music-encore/download-images/TestImages houghlinesP-refined log-TestImages.txt -all 155 @echo finished classifier 156 @date 157 #Calculate the Accuracy of the classifier 158 cd image-identification-terminal; java javaAccuracyCalculator log-TestImages.txt houghlinesP-refined-test results.txt 159 #Display output of javaImageClassifier 160 cd image-identification-terminal; less log-TestImages.txt 161 #Display output of javaAccuracyCalculator output 162 cd image-identification-terminal; less results.txt 163 cd image-identification-terminal; rm log-TestImages.txt 164 -
other-projects/is-sheet-music-encore/trunk/image-identification-development/Makefile
r33097 r33221 2 2 3 3 run-Classifier01: 4 java -cp /Scratch/cpb16/opencv-3.4.2/build/bin/opencv-342.jar -Djava.library.path=/Scratch/cpb16/opencv-3.4.2/build/lib/ terminalImageId 4 javac terminalImageClassifer.java 5 java -cp /Scratch/cpb16/opencv-3.4.2/build/bin/opencv-342.jar -Djava.library.path=/Scratch/cpb16/opencv-3.4.2/build/lib/ terminalImageClassifier 5 6 6 7 -
other-projects/is-sheet-music-encore/trunk/image-identification-terminal/javaImageClassifier.java
r33170 r33221 28 28 public class javaImageClassifier{ 29 29 //Constants 30 static int CLASSIFIER_HOUGHLINESP_MIN = 10;31 static int CLASSIFIER_HOUGHLINESP_MAX = 50;30 static int CLASSIFIER_HOUGHLINESP_MIN = 5; 31 static int CLASSIFIER_HOUGHLINESP_MAX = 40; 32 32 33 33 public static void main(String[] args) { … … 125 125 Mat linesP = new Mat(); // will hold the results of the detection 126 126 double minLineLength = edgesDetectedRGB.size().width/4; 127 Imgproc.HoughLinesP(edgesDetected, linesP, 1, Math.PI / 180, 50, minLineLength, 10);// runs the actual detection 127 //Imgproc.HoughLinesP(edgesDetected, linesP, 1, Math.PI / 180, 50, minLineLength, 10);// runs the actual detection 128 Imgproc.HoughLinesP(edgesDetected, linesP, 1, Math.PI / 180, 10, minLineLength, 5);// remote testing 128 129 // Draw the lines 129 130 … … 148 149 //Calculate if its sheet music or not 149 150 isSheetMusic = classifier_HoughLinesP(toBeClassifiedImg); 151 150 152 151 153 } -
other-projects/is-sheet-music-encore/trunk/image-identification-terminal/results.txt
r33170 r33221 19 19 OverallAccuracyRate: 67.64648% 20 20 21 22 23 24 Date: Sun Jun 23 17:48:16 NZST 2019 25 Classifier: houghlinesP-refined-test 26 truePositive: 5 27 falseNegative: 5 28 falsePositve: 0 29 trueNegative: 10 30 SheetMusicAccuracyRate: 50.0% 31 NotSheetMusicAccuracyRate: 100.0% 32 OverallAccuracyRate: 75.0% 33 34 Date: Sun Jun 23 17:50:39 NZST 2019 35 Classifier: houghlinesP-refined-test 36 truePositive: 5 37 falseNegative: 5 38 falsePositve: 0 39 trueNegative: 10 40 SheetMusicAccuracyRate: 50.0% 41 NotSheetMusicAccuracyRate: 100.0% 42 OverallAccuracyRate: 75.0% 43 -
other-projects/is-sheet-music-encore/trunk/image-identification-terminal/runClassifer.sh
r33170 r33221 38 38 done 39 39 ;; 40 -small) 41 #Runs javaImageClassifier on 100 images 42 for file_name in $folder_name/*/*.png; do 43 if [ $i -lt 50 ] ; then 44 echo $file_name 45 echo $output_filename 46 echo $i 47 echo "" 48 java -cp /Scratch/cpb16/opencv-3.4.2/build/bin/opencv-342.jar:. -Djava.library.path=/Scratch/cpb16/opencv-3.4.2/build/lib/ javaImageClassifier $file_name $classifier_type $output_filename 49 i=$[$i+1] 50 else 51 exit 0 52 fi 53 done 54 ;; 40 55 esac
Note:
See TracChangeset
for help on using the changeset viewer.