Changeset 33221 for other-projects/is-sheet-music-encore/trunk/image-identification-terminal/javaImageClassifier.java
- Timestamp:
- 2019-06-25T12:53:21+12:00 (5 years ago)
- File:
-
- 1 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 }
Note:
See TracChangeset
for help on using the changeset viewer.