Changeset 33367

Show
Ignore:
Timestamp:
26.07.2019 12:53:48 (4 weeks ago)
Author:
cpb16
Message:

Pre-hires classification w/o MU

Location:
other-projects/is-sheet-music-encore/trunk
Files:
6 modified

Legend:

Unmodified
Added
Removed
  • other-projects/is-sheet-music-encore/trunk/COMPX520-DOWNLOADER-PNG-10PAGES.sh

    r33066 r33367  
    1313   do 
    1414        echo "id: $id  page_num: $page_num"      
    15         ./COMPX520-RUN-PNG.sh $id $page_num 
     15        ./COMPX520-RUN-PNG.sh $id $page_num  
    1616        page_num=$((page_num+1)) 
    1717        count=$((count+1)) 
  • other-projects/is-sheet-music-encore/trunk/Makefile

    r33340 r33367  
    180180    cd image-identification-terminal; less log-all/results.txt 
    181181 
     182run-houghlinesP-refined-corpus-hi-res: 
     183    #cd image-identification-terminal; cd log-all-hires; rm *.txt 
     184        #Compile 
     185    cd image-identification-terminal; javac javaAccuracyCalculator.java 
     186    cd image-identification-terminal; javac -cp /Scratch/cpb16/opencv-3.4.2/build/bin/opencv-342.jar javaImageClassifier.java; 
     187        #Run javaImageClassifier on all images in Corpus 
     188    #cd image-identification-terminal; ./runClassifer.sh /Scratch/cpb16/is-sheet-music-encore/hires-download-images/MU houghlinesP-refined log-all-hires/log-houghlinesP-refined-MU.txt -all 
     189    cd image-identification-terminal; ./runClassifer.sh /Scratch/cpb16/is-sheet-music-encore/hires-download-images/BK houghlinesP-refined log-all-hires/log-houghlinesP-refined-BK.txt -all 
     190    cd image-identification-terminal; ./runClassifer.sh /Scratch/cpb16/is-sheet-music-encore/hires-download-images/MP houghlinesP-refined log-all-hires/log-houghlinesP-refined-MP.txt -all 
     191    cd image-identification-terminal; ./runClassifer.sh /Scratch/cpb16/is-sheet-music-encore/hires-download-images/SE houghlinesP-refined log-all-hires/log-houghlinesP-refined-SE.txt -all 
     192        #Calculate the Accuracy of the classifier 
     193    #cd image-identification-terminal; java javaAccuracyCalculator log-all-hires/log-houghlinesP-refined-MU.txt houghlinesP-refined-MU log-all-hires/results.txt 
     194    cd image-identification-terminal; java javaAccuracyCalculator log-all-hires/log-houghlinesP-refined-BK.txt houghlinesP-refined-BK log-all-hires/results.txt 
     195    cd image-identification-terminal; java javaAccuracyCalculator log-all-hires/log-houghlinesP-refined-MP.txt houghlinesP-refined-MP log-all-hires/results.txt 
     196    cd image-identification-terminal; java javaAccuracyCalculator log-all-hires/log-houghlinesP-refined-SE.txt houghlinesP-refined-SE log-all-hires/results.txt 
     197        #Display the results 
     198    cd image-identification-terminal; less log-all-hires/results.txt 
     199 
  • other-projects/is-sheet-music-encore/trunk/image-identification-development/.idea/workspace.xml

    r33340 r33367  
    44    <list default="true" readonly="true" id="9bad4f92-4a7d-46a2-b6f0-94214c9f55cc" name="Default" comment=""> 
    55      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> 
    6       <change beforePath="$PROJECT_DIR$/out/production/image-identification/Main.class" beforeDir="false" afterPath="$PROJECT_DIR$/out/production/image-identification/Main.class" afterDir="false" /> 
    76      <change beforePath="$PROJECT_DIR$/src/Main.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Main.java" afterDir="false" /> 
    87    </list> 
     
    2019  <component name="FileEditorManager"> 
    2120    <leaf SIDE_TABS_SIZE_LIMIT_KEY="300"> 
    22       <file leaf-file-name="Main.java" pinned="false" current-in-tab="false"> 
     21      <file leaf-file-name="Main.java" pinned="false" current-in-tab="true"> 
    2322        <entry file="file://$PROJECT_DIR$/src/Main.java"> 
    2423          <provider selected="true" editor-type-id="text-editor"> 
    25             <state relative-caret-position="1520"> 
    26               <caret line="719" selection-start-line="719" selection-end-line="732" selection-end-column="21" /> 
     24            <state relative-caret-position="399"> 
     25              <caret line="812" column="12" lean-forward="true" selection-start-line="812" selection-start-column="12" selection-end-line="812" selection-end-column="12" /> 
    2726              <folding> 
    2827                <element signature="imports" expanded="true" /> 
     
    4140                <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    4241                <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
    43               </folding> 
    44             </state> 
    45           </provider> 
    46         </entry> 
    47       </file> 
    48       <file leaf-file-name="javaImageClassifier.java" pinned="false" current-in-tab="true"> 
    49         <entry file="file://$PROJECT_DIR$/../image-identification-terminal/javaImageClassifier.java"> 
    50           <provider selected="true" editor-type-id="text-editor"> 
    51             <state relative-caret-position="570"> 
    52               <caret line="96" column="26" selection-start-line="96" selection-start-column="26" selection-end-line="96" selection-end-column="26" /> 
    53               <folding> 
    54                 <element signature="imports" expanded="true" /> 
    55                 <element signature="n#!!doc;n#javaImageClassifier#0" /> 
    56                 <element signature="class#StartAndEndPoint#0;class#javaImageClassifier#0" /> 
    57                 <element signature="e#3854#3863#0" /> 
    58                 <element signature="method#setup_HoughLinesP#0;class#javaImageClassifier#0" /> 
    59                 <element signature="method#classifier_HoughLinesP#0;class#javaImageClassifier#0" /> 
    60                 <element signature="method#setup_HoughLinesP_refined#0;class#javaImageClassifier#0" /> 
    61                 <element signature="method#classifier_HoughLinesP_refined#0;class#javaImageClassifier#0" /> 
    62                 <element signature="method#toBufferedImage#0;class#javaImageClassifier#0" /> 
    63                 <element signature="method#ClusterCheck#0;class#javaImageClassifier#0" /> 
    64                 <element signature="method#VarianceCalc#0;class#javaImageClassifier#0" /> 
    65                 <element signature="method#lineComparison#0;class#javaImageClassifier#0" /> 
    66                 <element signature="method#removeDuplicates#0;class#javaImageClassifier#0" /> 
     42                <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    6743              </folding> 
    6844            </state> 
     
    8157    <option name="CHANGED_PATHS"> 
    8258      <list> 
     59        <option value="$PROJECT_DIR$/../image-identification-terminal/javaImageClassifier.java" /> 
    8360        <option value="$PROJECT_DIR$/src/Main.java" /> 
    84         <option value="$PROJECT_DIR$/../image-identification-terminal/javaImageClassifier.java" /> 
    8561      </list> 
    8662    </option> 
    8763  </component> 
    8864  <component name="ProjectFrameBounds" extendedState="6"> 
    89     <option name="x" value="603" /> 
     65    <option name="x" value="562" /> 
    9066    <option name="y" value="24" /> 
    91     <option name="width" value="918" /> 
    92     <option name="height" value="1026" /> 
     67    <option name="width" value="908" /> 
     68    <option name="height" value="996" /> 
    9369  </component> 
    9470  <component name="ProjectView"> 
     
    211187      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="7" weight="0.25" /> 
    212188      <window_info anchor="right" id="Capture Analysis" order="0" /> 
    213       <window_info anchor="bottom" id="Run" order="6" visible="true" weight="0.34662578" /> 
     189      <window_info anchor="bottom" id="Version Control" order="2" /> 
    214190      <window_info anchor="right" id="Theme Preview" order="2" /> 
    215191      <window_info content_ui="combo" id="Project" order="5" visible="true" weight="0.18382749" /> 
     
    218194      <window_info anchor="right" id="Ant Build" order="6" weight="0.25" /> 
    219195      <window_info anchor="bottom" id="TODO" order="10" /> 
    220       <window_info anchor="bottom" id="Version Control" order="2" /> 
     196      <window_info anchor="bottom" id="Run" order="6" visible="true" weight="0.34662578" /> 
    221197      <window_info id="Image Layers" order="4" /> 
    222198      <window_info id="Designer" order="0" /> 
     
    244220        <breakpoints-dialog /> 
    245221      </breakpoints-dialog> 
    246       <option name="time" value="27" /> 
     222      <option name="time" value="30" /> 
    247223    </breakpoint-manager> 
    248224  </component> 
     
    268244            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    269245            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     246            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
     247          </folding> 
     248        </state> 
     249      </provider> 
     250    </entry> 
     251    <entry file="file://$PROJECT_DIR$/../image-identification-terminal/javaImageClassifier.java"> 
     252      <provider selected="true" editor-type-id="text-editor"> 
     253        <state relative-caret-position="1824"> 
     254          <caret line="96" column="26" selection-start-line="96" selection-start-column="26" selection-end-line="96" selection-end-column="26" /> 
     255          <folding> 
     256            <element signature="imports" expanded="true" /> 
     257            <element signature="n#!!doc;n#javaImageClassifier#0" /> 
     258            <element signature="e#1743#2305#0" /> 
     259            <element signature="e#4073#5568#0" /> 
     260            <element signature="e#5573#6811#0" /> 
     261            <element signature="e#6817#9109#0" /> 
     262            <element signature="e#9114#9310#0" /> 
     263            <element signature="e#10174#11093#0" /> 
     264            <element signature="e#18880#21583#0" /> 
     265            <element signature="e#21588#22252#0" /> 
     266            <element signature="e#22257#22629#0" /> 
     267            <element signature="e#22634#23395#0" /> 
     268          </folding> 
     269        </state> 
     270      </provider> 
     271    </entry> 
     272    <entry file="file://$PROJECT_DIR$/src/Main.java"> 
     273      <provider selected="true" editor-type-id="text-editor"> 
     274        <state relative-caret-position="13661"> 
     275          <caret line="719" selection-start-line="719" selection-end-line="732" selection-end-column="21" /> 
     276          <folding> 
     277            <element signature="imports" expanded="true" /> 
     278            <element signature="class#StartAndEndPoint#0;class#Main#0" /> 
     279            <element signature="e#5318#5319#0" expanded="true" /> 
     280            <element signature="e#5352#5353#0" expanded="true" /> 
     281            <element signature="method#removeDuplicates#0;class#Main#0" /> 
     282            <element signature="method#StandardDeviation#0;class#Main#0" /> 
     283            <element signature="method#VarianceCalc#0;class#Main#0" /> 
     284            <element signature="method#lineComparison#0;class#Main#0" /> 
     285            <element signature="method#ClusterCheck#0;class#Main#0" /> 
     286            <element signature="method#toBufferedImage#0;class#Main#0" /> 
     287            <element signature="method#ClassifierPixelCount#0;class#Main#0" /> 
     288            <element signature="method#ClassifierLineCount#0;class#Main#0" /> 
     289            <element signature="method#ClassifierLineClusterOLD#0;class#Main#0" /> 
     290            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
     291            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     292            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    270293          </folding> 
    271294        </state> 
     
    279302            <element signature="imports" expanded="true" /> 
    280303            <element signature="n#!!doc;n#javaImageClassifier#0" /> 
    281             <element signature="class#StartAndEndPoint#0;class#javaImageClassifier#0" /> 
    282             <element signature="e#3854#3863#0" /> 
    283             <element signature="method#setup_HoughLinesP#0;class#javaImageClassifier#0" /> 
    284             <element signature="method#classifier_HoughLinesP#0;class#javaImageClassifier#0" /> 
    285             <element signature="method#setup_HoughLinesP_refined#0;class#javaImageClassifier#0" /> 
    286             <element signature="method#classifier_HoughLinesP_refined#0;class#javaImageClassifier#0" /> 
    287             <element signature="method#toBufferedImage#0;class#javaImageClassifier#0" /> 
    288             <element signature="method#ClusterCheck#0;class#javaImageClassifier#0" /> 
    289             <element signature="method#VarianceCalc#0;class#javaImageClassifier#0" /> 
    290             <element signature="method#lineComparison#0;class#javaImageClassifier#0" /> 
    291             <element signature="method#removeDuplicates#0;class#javaImageClassifier#0" /> 
     304            <element signature="e#1743#2305#0" /> 
     305            <element signature="e#4073#5568#0" /> 
     306            <element signature="e#5573#6811#0" /> 
     307            <element signature="e#6817#9109#0" /> 
     308            <element signature="e#9114#9310#0" /> 
     309            <element signature="e#10174#11093#0" /> 
     310            <element signature="e#18880#21583#0" /> 
     311            <element signature="e#21588#22252#0" /> 
     312            <element signature="e#22257#22629#0" /> 
     313            <element signature="e#22634#23395#0" /> 
    292314          </folding> 
    293315        </state> 
     
    314336            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    315337            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     338            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    316339          </folding> 
    317340        </state> 
     
    338361            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    339362            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     363            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    340364          </folding> 
    341365        </state> 
     
    362386            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    363387            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     388            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    364389          </folding> 
    365390        </state> 
     
    386411            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    387412            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     413            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    388414          </folding> 
    389415        </state> 
     
    410436            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    411437            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     438            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    412439          </folding> 
    413440        </state> 
     
    434461            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    435462            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     463            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    436464          </folding> 
    437465        </state> 
     
    458486            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    459487            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     488            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    460489          </folding> 
    461490        </state> 
     
    482511            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    483512            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     513            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    484514          </folding> 
    485515        </state> 
     
    506536            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    507537            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     538            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    508539          </folding> 
    509540        </state> 
     
    530561            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    531562            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     563            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    532564          </folding> 
    533565        </state> 
     
    554586            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    555587            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     588            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    556589          </folding> 
    557590        </state> 
     
    578611            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    579612            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     613            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    580614          </folding> 
    581615        </state> 
     
    602636            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    603637            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     638            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    604639          </folding> 
    605640        </state> 
     
    626661            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    627662            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     663            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    628664          </folding> 
    629665        </state> 
     
    650686            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    651687            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     688            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    652689          </folding> 
    653690        </state> 
     
    674711            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    675712            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     713            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    676714          </folding> 
    677715        </state> 
     
    698736            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    699737            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     738            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    700739          </folding> 
    701740        </state> 
     
    722761            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    723762            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     763            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    724764          </folding> 
    725765        </state> 
     
    746786            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    747787            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     788            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    748789          </folding> 
    749790        </state> 
     
    770811            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    771812            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     813            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    772814          </folding> 
    773815        </state> 
     
    794836            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    795837            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     838            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    796839          </folding> 
    797840        </state> 
     
    818861            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    819862            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     863            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    820864          </folding> 
    821865        </state> 
     
    842886            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    843887            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     888            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    844889          </folding> 
    845890        </state> 
     
    866911            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    867912            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     913            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    868914          </folding> 
    869915        </state> 
     
    890936            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    891937            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     938            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    892939          </folding> 
    893940        </state> 
     
    914961            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    915962            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     963            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    916964          </folding> 
    917965        </state> 
     
    938986            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    939987            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     988            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    940989          </folding> 
    941990        </state> 
     
    9621011            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    9631012            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     1013            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    9641014          </folding> 
    9651015        </state> 
     
    9861036            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    9871037            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     1038            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    9881039          </folding> 
    9891040        </state> 
     
    10101061            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    10111062            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     1063            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    10121064          </folding> 
    10131065        </state> 
     
    10341086            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    10351087            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     1088            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    10361089          </folding> 
    10371090        </state> 
     
    10581111            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    10591112            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     1113            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    10601114          </folding> 
    10611115        </state> 
     
    10821136            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    10831137            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     1138            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    10841139          </folding> 
    10851140        </state> 
     
    11061161            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    11071162            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     1163            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    11081164          </folding> 
    11091165        </state> 
     
    11301186            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    11311187            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     1188            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    11321189          </folding> 
    11331190        </state> 
     
    11541211            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    11551212            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     1213            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    11561214          </folding> 
    11571215        </state> 
     
    11781236            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    11791237            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     1238            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    11801239          </folding> 
    11811240        </state> 
     
    12021261            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    12031262            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     1263            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    12041264          </folding> 
    12051265        </state> 
     
    12261286            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    12271287            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     1288            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    12281289          </folding> 
    12291290        </state> 
     
    12721333      </provider> 
    12731334    </entry> 
    1274     <entry file="file://$PROJECT_DIR$/src/Main.java"> 
    1275       <provider selected="true" editor-type-id="text-editor"> 
    1276         <state relative-caret-position="1520"> 
    1277           <caret line="719" selection-start-line="719" selection-end-line="732" selection-end-column="21" /> 
    1278           <folding> 
    1279             <element signature="imports" expanded="true" /> 
    1280             <element signature="class#StartAndEndPoint#0;class#Main#0" /> 
    1281             <element signature="e#5318#5319#0" expanded="true" /> 
    1282             <element signature="e#5352#5353#0" expanded="true" /> 
    1283             <element signature="method#removeDuplicates#0;class#Main#0" /> 
    1284             <element signature="method#StandardDeviation#0;class#Main#0" /> 
    1285             <element signature="method#VarianceCalc#0;class#Main#0" /> 
    1286             <element signature="method#lineComparison#0;class#Main#0" /> 
    1287             <element signature="method#ClusterCheck#0;class#Main#0" /> 
    1288             <element signature="method#toBufferedImage#0;class#Main#0" /> 
    1289             <element signature="method#ClassifierPixelCount#0;class#Main#0" /> 
    1290             <element signature="method#ClassifierLineCount#0;class#Main#0" /> 
    1291             <element signature="method#ClassifierLineClusterOLD#0;class#Main#0" /> 
    1292             <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
    1293             <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
    1294           </folding> 
    1295         </state> 
    1296       </provider> 
    1297     </entry> 
    12981335    <entry file="file://$PROJECT_DIR$/../image-identification-terminal/javaImageClassifier.java"> 
    12991336      <provider selected="true" editor-type-id="text-editor"> 
    1300         <state relative-caret-position="570"> 
    1301           <caret line="96" column="26" selection-start-line="96" selection-start-column="26" selection-end-line="96" selection-end-column="26" /> 
     1337        <state relative-caret-position="-2668"> 
     1338          <caret line="116" column="61" selection-start-line="116" selection-start-column="61" selection-end-line="116" selection-end-column="61" /> 
    13021339          <folding> 
    13031340            <element signature="imports" expanded="true" /> 
    13041341            <element signature="n#!!doc;n#javaImageClassifier#0" /> 
    1305             <element signature="class#StartAndEndPoint#0;class#javaImageClassifier#0" /> 
    1306             <element signature="e#3854#3863#0" /> 
    1307             <element signature="method#setup_HoughLinesP#0;class#javaImageClassifier#0" /> 
    1308             <element signature="method#classifier_HoughLinesP#0;class#javaImageClassifier#0" /> 
    1309             <element signature="method#setup_HoughLinesP_refined#0;class#javaImageClassifier#0" /> 
    1310             <element signature="method#classifier_HoughLinesP_refined#0;class#javaImageClassifier#0" /> 
    1311             <element signature="method#toBufferedImage#0;class#javaImageClassifier#0" /> 
    1312             <element signature="method#ClusterCheck#0;class#javaImageClassifier#0" /> 
    1313             <element signature="method#VarianceCalc#0;class#javaImageClassifier#0" /> 
    1314             <element signature="method#lineComparison#0;class#javaImageClassifier#0" /> 
    1315             <element signature="method#removeDuplicates#0;class#javaImageClassifier#0" /> 
     1342            <element signature="e#1743#2305#0" /> 
     1343            <element signature="e#4073#5568#0" /> 
     1344            <element signature="e#5573#6811#0" /> 
     1345            <element signature="e#6817#9109#0" /> 
     1346            <element signature="e#9114#9310#0" /> 
     1347            <element signature="e#10174#11093#0" /> 
     1348            <element signature="e#18880#21583#0" /> 
     1349            <element signature="e#21588#22252#0" /> 
     1350            <element signature="e#22257#22629#0" /> 
     1351            <element signature="e#22634#23395#0" /> 
     1352          </folding> 
     1353        </state> 
     1354      </provider> 
     1355    </entry> 
     1356    <entry file="file://$PROJECT_DIR$/src/Main.java"> 
     1357      <provider selected="true" editor-type-id="text-editor"> 
     1358        <state relative-caret-position="399"> 
     1359          <caret line="812" column="12" lean-forward="true" selection-start-line="812" selection-start-column="12" selection-end-line="812" selection-end-column="12" /> 
     1360          <folding> 
     1361            <element signature="imports" expanded="true" /> 
     1362            <element signature="class#StartAndEndPoint#0;class#Main#0" /> 
     1363            <element signature="e#5318#5319#0" expanded="true" /> 
     1364            <element signature="e#5352#5353#0" expanded="true" /> 
     1365            <element signature="method#removeDuplicates#0;class#Main#0" /> 
     1366            <element signature="method#StandardDeviation#0;class#Main#0" /> 
     1367            <element signature="method#VarianceCalc#0;class#Main#0" /> 
     1368            <element signature="method#lineComparison#0;class#Main#0" /> 
     1369            <element signature="method#ClusterCheck#0;class#Main#0" /> 
     1370            <element signature="method#toBufferedImage#0;class#Main#0" /> 
     1371            <element signature="method#ClassifierPixelCount#0;class#Main#0" /> 
     1372            <element signature="method#ClassifierLineCount#0;class#Main#0" /> 
     1373            <element signature="method#ClassifierLineClusterOLD#0;class#Main#0" /> 
     1374            <element signature="method#ClassifierLineCluster#0;class#Main#0" /> 
     1375            <element signature="method#ClassifierLineClusterPt#0;class#Main#0" /> 
     1376            <element signature="method#LineCountOrCluster#0;class#Main#0" /> 
    13161377          </folding> 
    13171378        </state> 
  • other-projects/is-sheet-music-encore/trunk/image-identification-development/src/Main.java

    r33340 r33367  
    746746            Mat edgesDetectedRGB = new Mat(); 
    747747            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/"; 
    749749            //!!!!!!!!!!!!!!!!!!!!!!!!!!!NOT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 
    750750            //mdp.39015097852365-2.png 176 lines    Contents page. 
     
    752752            //!!!!!!!!!!!!!!!!!!!!!!!!!!!NOTNOT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 
    753753            //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"; 
    755755            //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"; 
    757757 
    758758 
     
    808808 
    809809 
    810  
    811810            //Display Results 
    812811            //HighGui.imshow("Source", original); 
     
    817816            //HighGui.imshow("Detected Lines (in red) - negative", edgesDetectedRGBProb); 
    818817 
    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 
    822819            //System.out.println("LINE CLUSTER RESULT: " +  ClassifierLineClusterOLD(toBeClassifiedImg).get(0) + '\t' + "LinesFound: " + ClassifierLineClusterOLD(toBeClassifiedImg).get(1) + '\t' + "ClustersFound: " + ClassifierLineClusterOLD(toBeClassifiedImg).get(2)); 
    823820            //System.out.println("NEW CLUSTER RESULTS: " +  ClassifierLineClusterPt(pointArrayList,clustersFoundRGB).get(0) + '\t' + "LinesFound: " + horizontalLineCount + '\t' + "ClustersFound: " + ClassifierLineClusterPt(pointArrayList,clustersFoundRGB).get(1)); 
    824821            //System.out.println(ClassifierLineClusterPt(pointArrayList, clustersFoundRGB)); 
    825822 
    826             System.out.println("TEST: " + LineCountOrCluster(horizontalLineCount, pointArrayList, clustersFoundRGB)); 
     823            //System.out.println("TEST: " + LineCountOrCluster(horizontalLineCount, pointArrayList, clustersFoundRGB)); 
    827824 
    828825            // Wait and Exit