Changeset 33221 for other-projects


Ignore:
Timestamp:
2019-06-25T12:53:21+12:00 (5 years ago)
Author:
cpb16
Message:

back up pre-houghlineP-refinement progress

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  
    145145    cd image-identification-terminal; less log-houghlinesP-refined-MU.txt
    146146
     147run-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  
    22
    33run-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
    56
    67
  • other-projects/is-sheet-music-encore/trunk/image-identification-terminal/javaImageClassifier.java

    r33170 r33221  
    2828public class javaImageClassifier{
    2929    //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;
    3232
    3333    public static void main(String[] args) {   
     
    125125        Mat linesP = new Mat(); // will hold the results of the detection
    126126        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
    128129        // Draw the lines
    129130       
     
    148149        //Calculate if its sheet music or not
    149150        isSheetMusic = classifier_HoughLinesP(toBeClassifiedImg); 
     151
    150152           
    151153    }
  • other-projects/is-sheet-music-encore/trunk/image-identification-terminal/results.txt

    r33170 r33221  
    1919OverallAccuracyRate: 67.64648%
    2020
     21
     22
     23
     24Date: Sun Jun 23 17:48:16 NZST 2019
     25Classifier: houghlinesP-refined-test
     26truePositive: 5
     27falseNegative: 5
     28falsePositve: 0
     29trueNegative: 10
     30SheetMusicAccuracyRate: 50.0%
     31NotSheetMusicAccuracyRate: 100.0%
     32OverallAccuracyRate: 75.0%
     33
     34Date: Sun Jun 23 17:50:39 NZST 2019
     35Classifier: houghlinesP-refined-test
     36truePositive: 5
     37falseNegative: 5
     38falsePositve: 0
     39trueNegative: 10
     40SheetMusicAccuracyRate: 50.0%
     41NotSheetMusicAccuracyRate: 100.0%
     42OverallAccuracyRate: 75.0%
     43
  • other-projects/is-sheet-music-encore/trunk/image-identification-terminal/runClassifer.sh

    r33170 r33221  
    3838        done
    3939        ;;
     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        ;;
    4055esac       
Note: See TracChangeset for help on using the changeset viewer.