- Timestamp:
- 2019-06-25T12:53:21+12:00 (5 years ago)
- Location:
- other-projects/is-sheet-music-encore/trunk/image-identification-terminal
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
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.