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/image-identification-terminal
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • 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.