Changeset 33367 for other-projects/is-sheet-music-encore/trunk/image-identification-development/src/Main.java
- Timestamp:
- 2019-07-26T12:53:48+12:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/is-sheet-music-encore/trunk/image-identification-development/src/Main.java
r33340 r33367 746 746 Mat edgesDetectedRGB = new Mat(); 747 747 Mat clustersFoundRGB = new Mat(); 748 String directory = "/Scratch/cpb16/is-sheet-music-encore/ lowres-download-images/MU/";748 String directory = "/Scratch/cpb16/is-sheet-music-encore/download-images/MU/"; 749 749 //!!!!!!!!!!!!!!!!!!!!!!!!!!!NOT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 750 750 //mdp.39015097852365-2.png 176 lines Contents page. … … 752 752 //!!!!!!!!!!!!!!!!!!!!!!!!!!!NOTNOT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 753 753 //coo.31924062612282-9.png 8 lines 754 //String default_file = directory+"NotSheetMusic/coo.31924062612282-9.png";754 String default_file = directory+"NotSheetMusic/coo.31924062612282-9.png"; 755 755 //String default_file = directory+"NotSheetMusic/mdp.39015097852365-2.png"; 756 String default_file ="TestImages/NotNot/mdp.39015080972303-3.png";756 //String default_file ="TestImages/NotNot/mdp.39015080972303-3.png"; 757 757 758 758 … … 808 808 809 809 810 811 810 //Display Results 812 811 //HighGui.imshow("Source", original); … … 817 816 //HighGui.imshow("Detected Lines (in red) - negative", edgesDetectedRGBProb); 818 817 819 820 821 //System.out.println("LINE COUNT RESULT: " + ClassifierLineCount(horizontalLineCount) + '\t' +"LinesFound: " + horizontalLineCount); //COUNT OF LINES CLASSIFICATION 818 System.out.println("LINE COUNT RESULT: " + ClassifierLineCount(horizontalLineCount) + '\t' +"LinesFound: " + horizontalLineCount); //COUNT OF LINES CLASSIFICATION 822 819 //System.out.println("LINE CLUSTER RESULT: " + ClassifierLineClusterOLD(toBeClassifiedImg).get(0) + '\t' + "LinesFound: " + ClassifierLineClusterOLD(toBeClassifiedImg).get(1) + '\t' + "ClustersFound: " + ClassifierLineClusterOLD(toBeClassifiedImg).get(2)); 823 820 //System.out.println("NEW CLUSTER RESULTS: " + ClassifierLineClusterPt(pointArrayList,clustersFoundRGB).get(0) + '\t' + "LinesFound: " + horizontalLineCount + '\t' + "ClustersFound: " + ClassifierLineClusterPt(pointArrayList,clustersFoundRGB).get(1)); 824 821 //System.out.println(ClassifierLineClusterPt(pointArrayList, clustersFoundRGB)); 825 822 826 System.out.println("TEST: " + LineCountOrCluster(horizontalLineCount, pointArrayList, clustersFoundRGB));823 //System.out.println("TEST: " + LineCountOrCluster(horizontalLineCount, pointArrayList, clustersFoundRGB)); 827 824 828 825 // Wait and Exit
Note:
See TracChangeset
for help on using the changeset viewer.