From: Dominic L. <ma...@us...> - 2004-11-02 16:31:49
|
Update of /cvsroot/robotflow/RobotFlow/demo/SymbolRecog/n-files In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5672 Modified Files: classifyTemplates.n Log Message: Added Notes in the classifyTemplates network Index: classifyTemplates.n =================================================================== RCS file: /cvsroot/robotflow/RobotFlow/demo/SymbolRecog/n-files/classifyTemplates.n,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** classifyTemplates.n 23 Aug 2004 20:42:36 -0000 1.4 --- classifyTemplates.n 2 Nov 2004 16:31:38 -0000 1.5 *************** *** 3,7 **** <Document> <Network type="subnet" name="MAIN"> ! <Node name="node_LOOP0_1" type="LOOP0" x="484.000000" y="177.000000"> <Parameter name="DOWHILE" type="bool" value="true" description=""/> </Node> --- 3,7 ---- <Document> <Network type="subnet" name="MAIN"> ! <Node name="node_LOOP0_1" type="LOOP0" x="483.000000" y="177.000000"> <Parameter name="DOWHILE" type="bool" value="true" description=""/> </Node> *************** *** 10,14 **** <Parameter name="RETRY" type="int" value="1" description=""/> </Node> ! <Node name="node_Constant_1" type="Constant" x="-111.000000" y="61.000000"> <Parameter name="VALUE" type="string" value="../templates/Image.data" description=""/> </Node> --- 10,14 ---- <Parameter name="RETRY" type="int" value="1" description=""/> </Node> ! <Node name="node_Constant_1" type="Constant" x="-112.000000" y="63.000000"> <Parameter name="VALUE" type="string" value="../templates/Image.data" description=""/> </Node> *************** *** 31,38 **** <Node name="node_NewAccumulator_1" type="NewAccumulator" x="155.000000" y="305.000000"/> <Node name="node_NewAccumulator_2" type="NewAccumulator" x="150.000000" y="391.000000"/> ! <Node name="node_SaveAs_1" type="SaveAs" x="721.000000" y="148.000000"> <Parameter name="FILENAME" type="string" value="../templates/train_in_172_v2.data" description=""/> </Node> ! <Node name="node_SaveAs_2" type="SaveAs" x="722.000000" y="185.000000"> <Parameter name="FILENAME" type="string" value="../templates/train_out_172_v2.data" description=""/> </Node> --- 31,38 ---- <Node name="node_NewAccumulator_1" type="NewAccumulator" x="155.000000" y="305.000000"/> <Node name="node_NewAccumulator_2" type="NewAccumulator" x="150.000000" y="391.000000"/> ! <Node name="node_SaveAs_1" type="SaveAs" x="720.000000" y="148.000000"> <Parameter name="FILENAME" type="string" value="../templates/train_in_172_v2.data" description=""/> </Node> ! <Node name="node_SaveAs_2" type="SaveAs" x="720.000000" y="185.000000"> <Parameter name="FILENAME" type="string" value="../templates/train_out_172_v2.data" description=""/> </Node> *************** *** 52,55 **** --- 52,57 ---- <NetOutput name="ACCUM_IN" node="node_SaveAs_1" terminal="OUTPUT" object_type="any" description="No description available"/> <NetOutput name="ACCUM_OUT" node="node_SaveAs_2" terminal="OUTPUT" object_type="any" description="No description available"/> + <Note x="249" y="75" visible="1" text="With this network, image templates will be loaded from ../templates/Image.data and the user must categorize the image by clicking on the proper template button [A-Z,0-9]."/> + <Note x="727" y="381" visible="1" text="Once all templates are categorized, input and output vectors (sets) are written to disk (../templates/train_in_172_v2.data, ../templates/train_out_172_v2.data). They are used to train the Artificial Neural Network. "/> </Network> <Network type="iterator" name="LOOP0"> *************** *** 82,88 **** <Parameter name="PROBE_NAME" type="string" value="CLICK_FORWARD_FOR_NEXT_TEMPLATE" description=""/> </Node> ! <Node name="node_Smaller_1" type="Smaller" x="204.000000" y="-80.000000"/> ! <Node name="node_IterCount_1" type="IterCount" x="-45.000000" y="-90.000000"/> ! <Node name="node_Constant_1" type="Constant" x="57.000000" y="-45.000000"> <Parameter name="VALUE" type="int" value="1289" description=""/> </Node> --- 84,90 ---- <Parameter name="PROBE_NAME" type="string" value="CLICK_FORWARD_FOR_NEXT_TEMPLATE" description=""/> </Node> ! <Node name="node_Smaller_1" type="Smaller" x="162.000000" y="254.000000"/> ! <Node name="node_IterCount_1" type="IterCount" x="-87.000000" y="244.000000"/> ! <Node name="node_Constant_1" type="Constant" x="15.000000" y="289.000000"> <Parameter name="VALUE" type="int" value="1289" description=""/> </Node> *************** *** 102,106 **** <Parameter name="SPACING" type="int" value="10" description=""/> </Node> ! <Node name="node_Print_1" type="Print" x="49.000000" y="-89.000000"/> <Node name="node_NilObject_1" type="NilObject" x="-484.000000" y="446.000000"/> <Node name="node_NilObject_2" type="NilObject" x="-75.000000" y="468.000000"/> --- 104,108 ---- <Parameter name="SPACING" type="int" value="10" description=""/> </Node> ! <Node name="node_Print_1" type="Print" x="7.000000" y="245.000000"/> <Node name="node_NilObject_1" type="NilObject" x="-484.000000" y="446.000000"/> <Node name="node_NilObject_2" type="NilObject" x="-75.000000" y="468.000000"/> *************** *** 132,135 **** --- 134,140 ---- <NetOutput name="ACCUM_IN" node="node_Accumulate_1" terminal="OUTPUT" object_type="any" description="No description available"/> <NetOutput name="ACCUM_OUT" node="node_Accumulate_2" terminal="OUTPUT" object_type="any" description="No description available"/> + <Note x="-326" y="350" visible="1" text="Be patient, 1289 templates need to be categorized!"/> + <Note x="393" y="442" visible="1" text="Templates will be processed in the PROCESS_TEMPLATE network"/> + <Note x="-595" y="735" visible="1" text="SymbolKeypad will display a simple GUI to allow the user to select which template is displayed in the ImageProbe."/> </Network> <Network type="subnet" name="PROCESS_TEMPLATE"> *************** *** 146,150 **** <Parameter name="CHANNEL" type="int" value="1" description=""/> </Node> ! <Node name="node_Constant_1" type="Constant" x="-229.000000" y="53.000000"> <Parameter name="VALUE" type="int" value="0" description=""/> </Node> --- 151,155 ---- <Parameter name="CHANNEL" type="int" value="1" description=""/> </Node> ! <Node name="node_Constant_1" type="Constant" x="-174.000000" y="-14.000000"> <Parameter name="VALUE" type="int" value="0" description=""/> </Node> *************** *** 168,177 **** <Link from="node_Scale_1" output="OUTPUT" to="node_ScalePrint_1" input="INPUT"/> <Link from="node_ScalePrint_1" output="OUTPUT" to="node_Concat_1" input="INPUT1"/> - <Link from="node_EXTRA_INFO_1" output="OUTPUT" to="node_Concat_1" input="INPUT2"/> <Link from="node_SymbolExtractor_1" output="SYMBOL" to="node_EXTRA_INFO_1" input="INPUT"/> <Link from="node_Binarize_1" output="IMAGE_OUT" to="node_Components_1" input="IMAGE"/> <NetInput name="IMAGE" node="node_NOP_1" terminal="INPUT" object_type="any" description="No description available"/> <NetInput name="LOOKUP" node="node_Components_1" terminal="LOOKUP" object_type="any" description="No description available"/> <NetOutput name="NNET_INPUT" node="node_Concat_1" terminal="OUTPUT" object_type="any" description="No description available"/> </Network> <Network type="subnet" name="STAT_ANALYSIS"> --- 173,185 ---- <Link from="node_Scale_1" output="OUTPUT" to="node_ScalePrint_1" input="INPUT"/> <Link from="node_ScalePrint_1" output="OUTPUT" to="node_Concat_1" input="INPUT1"/> <Link from="node_SymbolExtractor_1" output="SYMBOL" to="node_EXTRA_INFO_1" input="INPUT"/> <Link from="node_Binarize_1" output="IMAGE_OUT" to="node_Components_1" input="IMAGE"/> + <Link from="node_EXTRA_INFO_1" output="OUTPUT" to="node_Concat_1" input="INPUT2"/> <NetInput name="IMAGE" node="node_NOP_1" terminal="INPUT" object_type="any" description="No description available"/> <NetInput name="LOOKUP" node="node_Components_1" terminal="LOOKUP" object_type="any" description="No description available"/> <NetOutput name="NNET_INPUT" node="node_Concat_1" terminal="OUTPUT" object_type="any" description="No description available"/> + <Note x="-693" y="125" visible="1" text="Binarization of the image with an adaptative threshold"/> + <Note x="-235" y="175" visible="1" text="Black and white color components are extracted. We consider that the biggest black color blob is our symbol (which is the case in all our templates)."/> + <Note x="218" y="174" visible="1" text="The template is then scaled (13x13) and stored in the input vector with extra ratios calculated in the EXTRA_INFO subnet."/> </Network> <Network type="subnet" name="STAT_ANALYSIS"> *************** *** 193,247 **** <Network type="subnet" name="EXTRA_INFO"> <Node name="node_Div_1" type="Div" x="-212.000000" y="133.000000"/> ! <Node name="node_INT_TO_FLOAT_1" type="INT_TO_FLOAT" x="-405.000000" y="126.000000"/> ! <Node name="node_INT_TO_FLOAT_2" type="INT_TO_FLOAT" x="-404.000000" y="141.000000"/> ! <Node name="node_Concatenate_1" type="Concatenate" x="196.000000" y="143.000000"/> ! <Node name="node_INT_TO_FLOAT_3" type="INT_TO_FLOAT" x="-410.000000" y="168.000000"/> ! <Node name="node_INT_TO_FLOAT_4" type="INT_TO_FLOAT" x="-410.000000" y="187.000000"/> ! <Node name="node_Div_2" type="Div" x="-213.000000" y="173.000000"/> ! <Node name="node_Concatenate_2" type="Concatenate" x="49.000000" y="169.000000"/> <Node name="node_Div_3" type="Div" x="-212.000000" y="214.000000"/> ! <Node name="node_Float2Vect_1" type="Float2Vect" x="-126.000000" y="134.000000"> ! <Parameter name="LOOKAHEAD" type="int" value="" description=""/> ! <Parameter name="LOOKBACK" type="int" value="" description=""/> ! </Node> ! <Node name="node_Float2Vect_2" type="Float2Vect" x="-126.000000" y="173.000000"> ! <Parameter name="LOOKAHEAD" type="int" value="" description=""/> ! <Parameter name="LOOKBACK" type="int" value="" description=""/> ! </Node> ! <Node name="node_Float2Vect_3" type="Float2Vect" x="-127.000000" y="213.000000"> ! <Parameter name="LOOKAHEAD" type="int" value="" description=""/> ! <Parameter name="LOOKBACK" type="int" value="" description=""/> ! </Node> ! <Node name="node_NOP_1" type="NOP" x="-820.000000" y="154.000000"/> <Node name="node_RectAnalyser_1" type="RectAnalyser" x="-743.000000" y="155.000000"/> ! <Link from="node_INT_TO_FLOAT_1" output="FLOAT" to="node_Div_1" input="NUM"/> ! <Link from="node_INT_TO_FLOAT_2" output="FLOAT" to="node_Div_1" input="DEN"/> ! <Link from="node_RectAnalyser_1" output="HEIGHT" to="node_INT_TO_FLOAT_1" input="INT"/> ! <Link from="node_RectAnalyser_1" output="WIDTH" to="node_INT_TO_FLOAT_2" input="INT"/> ! <Link from="node_Float2Vect_1" output="OUTPUT" to="node_Concatenate_1" input="INPUT1"/> ! <Link from="node_Concatenate_2" output="OUTPUT" to="node_Concatenate_1" input="INPUT2">86 169 97 151 113 150.5 </Link> ! <Link from="node_RectAnalyser_1" output="X_RELATIVE_CENTER_OF_GRAVITY" to="node_INT_TO_FLOAT_3" input="INT"/> ! <Link from="node_RectAnalyser_1" output="Y_RELATIVE_CENTER_OF_GRAVITY" to="node_INT_TO_FLOAT_4" input="INT"/> ! <Link from="node_INT_TO_FLOAT_3" output="FLOAT" to="node_Div_2" input="NUM"/> ! <Link from="node_INT_TO_FLOAT_2" output="FLOAT" to="node_Div_2" input="DEN">-354 141 -322 139 -302 180 -266 180.5 </Link> ! <Link from="node_Float2Vect_2" output="OUTPUT" to="node_Concatenate_2" input="INPUT1"/> ! <Link from="node_Float2Vect_3" output="OUTPUT" to="node_Concatenate_2" input="INPUT2"/> ! <Link from="node_INT_TO_FLOAT_4" output="FLOAT" to="node_Div_3" input="NUM">-360 187 -292 209 -265 206.5 </Link> ! <Link from="node_INT_TO_FLOAT_1" output="FLOAT" to="node_Div_3" input="DEN">-355 126 -295 125 -285 189 -278 221 -265 221.5 </Link> ! <Link from="node_Div_1" output="OUTPUT" to="node_Float2Vect_1" input="INPUT"/> ! <Link from="node_Div_2" output="OUTPUT" to="node_Float2Vect_2" input="INPUT"/> ! <Link from="node_Div_3" output="OUTPUT" to="node_Float2Vect_3" input="INPUT"/> <Link from="node_NOP_1" output="OUTPUT" to="node_RectAnalyser_1" input="CRECT"/> <NetInput name="INPUT" node="node_NOP_1" terminal="INPUT" object_type="any" description="No description available"/> ! <NetOutput name="OUTPUT" node="node_Concatenate_1" terminal="OUTPUT" object_type="any" description="No description available"/> ! </Network> ! <Network type="subnet" name="INT_TO_FLOAT"> ! <Node name="node_Constant_1" type="Constant" x="-393.000000" y="147.000000"> ! <Parameter name="VALUE" type="float" value="0" description=""/> ! </Node> ! <Node name="node_Add_1" type="Add" x="-155.000000" y="140.000000"/> ! <Link from="node_Constant_1" output="VALUE" to="node_Add_1" input="INPUT2"/> ! <NetInput name="INT" node="node_Add_1" terminal="INPUT1" object_type="any" description="No description available"/> ! <NetOutput name="FLOAT" node="node_Add_1" terminal="OUTPUT" object_type="any" description="No description available"/> </Network> </Document> --- 201,224 ---- <Network type="subnet" name="EXTRA_INFO"> <Node name="node_Div_1" type="Div" x="-212.000000" y="133.000000"/> ! <Node name="node_Div_2" type="Div" x="-212.000000" y="176.000000"/> <Node name="node_Div_3" type="Div" x="-212.000000" y="214.000000"/> ! <Node name="node_NOP_1" type="NOP" x="-867.000000" y="154.000000"/> <Node name="node_RectAnalyser_1" type="RectAnalyser" x="-743.000000" y="155.000000"/> ! <Node name="node_Concat_1" type="Concat" x="11.000000" y="183.000000"/> ! <Node name="node_Concat_2" type="Concat" x="164.000000" y="140.000000"/> <Link from="node_NOP_1" output="OUTPUT" to="node_RectAnalyser_1" input="CRECT"/> + <Link from="node_RectAnalyser_1" output="HEIGHT" to="node_Div_1" input="NUM"/> + <Link from="node_RectAnalyser_1" output="HEIGHT" to="node_Div_3" input="DEN">-481 125 -405 126 -406 222 -266 221.5 </Link> + <Link from="node_RectAnalyser_1" output="WIDTH" to="node_Div_1" input="DEN"/> + <Link from="node_RectAnalyser_1" output="WIDTH" to="node_Div_2" input="DEN">-483.5 140 -397 140 -396 183 -266 183.5 </Link> + <Link from="node_RectAnalyser_1" output="X_RELATIVE_CENTER_OF_GRAVITY" to="node_Div_2" input="NUM"/> + <Link from="node_RectAnalyser_1" output="Y_RELATIVE_CENTER_OF_GRAVITY" to="node_Div_3" input="NUM">-482 185 -438 185 -398 206 -266 206.5 </Link> + <Link from="node_Concat_1" output="OUTPUT" to="node_Concat_2" input="INPUT2"/> + <Link from="node_Div_1" output="OUTPUT" to="node_Concat_2" input="INPUT1"/> + <Link from="node_Div_2" output="OUTPUT" to="node_Concat_1" input="INPUT1"/> + <Link from="node_Div_3" output="OUTPUT" to="node_Concat_1" input="INPUT2"/> <NetInput name="INPUT" node="node_NOP_1" terminal="INPUT" object_type="any" description="No description available"/> ! <NetOutput name="OUTPUT" node="node_Concat_2" terminal="OUTPUT" object_type="any" description="Result of the concatenation"/> ! <Note x="-217" y="410" visible="1" text="We compute 3 more ratios : HEIGHT / WIDTH X_cog / WIDTH Y_cog / HEIGHT And we store the result into a vector"/> </Network> </Document> |