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

back up pre-houghlineP-refinement progress

File:
1 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    }
Note: See TracChangeset for help on using the changeset viewer.