From: Dominic L. <ma...@us...> - 2004-11-03 18:33:36
|
Update of /cvsroot/robotflow/RobotFlow/demo/SymbolRecog/n-files In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8597 Modified Files: SymbolTracking.n trainNeuralNet.n Added Files: testTraining.n Removed Files: trainTemplates.n Log Message: added notes --- NEW FILE: testTraining.n --- #!/usr/bin/env batchflow <?xml version="1.0"?> <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> <Node name="node_InputStream_1" type="InputStream" x="-10.000000" y="126.000000"> <Parameter name="TYPE" type="string" value="stream" description=""/> <Parameter name="RETRY" type="int" value="1" description=""/> </Node> <Node name="node_Constant_1" type="Constant" x="-119.000000" y="125.000000"> <Parameter name="VALUE" type="string" value="../templates/Image.data" description=""/> </Node> <Node name="node_VarStore_1" type="VarStore" x="-4.000000" y="170.000000"> <Parameter name="VARIABLE" type="string" value="VAL" description=""/> </Node> <Node name="node_Constant_2" type="Constant" x="-111.000000" y="169.000000"> <Parameter name="VALUE" type="int" value="0" description=""/> </Node> <Node name="node_Action_2" type="Action" x="190.000000" y="170.000000"/> <Node name="node_NOP_1" type="NOP" x="284.000000" y="170.000000"/> <Node name="node_Constant_3" type="Constant" x="-128.000000" y="243.000000"> <Parameter name="VALUE" type="string" value="../color_lookup/black_white.data" description=""/> </Node> <Node name="node_InputStream_2" type="InputStream" x="-11.000000" y="243.000000"> <Parameter name="TYPE" type="string" value="stream" description=""/> <Parameter name="RETRY" type="int" value="1" description=""/> </Node> <Node name="node_Load_1" type="Load" x="117.000000" y="243.000000"/> <Node name="node_Constant_4" type="Constant" x="-121.000000" y="296.000000"> <Parameter name="VALUE" type="string" value="../neural_networks/net_172_7_36.nnet" description=""/> </Node> <Node name="node_InputStream_3" type="InputStream" x="-4.000000" y="296.000000"> <Parameter name="TYPE" type="string" value="stream" description=""/> <Parameter name="RETRY" type="int" value="1" description=""/> </Node> <Node name="node_Load_2" type="Load" x="124.000000" y="296.000000"/> <Link from="node_Constant_1" output="VALUE" to="node_InputStream_1" input="INPUT"/> <Link from="node_Constant_2" output="VALUE" to="node_VarStore_1" input="INPUT"/> <Link from="node_VarStore_1" output="OUTPUT" to="node_Action_2" input="BEFORE"/> <Link from="node_InputStream_1" output="OUTPUT" to="node_Action_2" input="INPUT"/> <Link from="node_NOP_1" output="OUTPUT" to="node_LOOP0_1" input="STREAM"/> <Link from="node_Action_2" output="OUTPUT" to="node_NOP_1" input="INPUT"/> <Link from="node_Constant_3" output="VALUE" to="node_InputStream_2" input="INPUT"/> <Link from="node_InputStream_2" output="OUTPUT" to="node_Load_1" input="STREAM"/> <Link from="node_Load_1" output="OUTPUT" to="node_LOOP0_1" input="LOOKUP"/> <Link from="node_Constant_4" output="VALUE" to="node_InputStream_3" input="INPUT"/> <Link from="node_InputStream_3" output="OUTPUT" to="node_Load_2" input="STREAM"/> <Link from="node_Load_2" output="OUTPUT" to="node_LOOP0_1" input="NNET"/> <NetOutput name="NNET_OUTPUT" node="node_LOOP0_1" terminal="NNET_OUTPUT" object_type="any" description="Pass through"/> <Note x="332" y="462" visible="1" text="This network will test every template and display the neural network output. It is useful to verify the if the ANN is trained properly. Please see classifyTemplates.n for more information on each subnet."/> </Network> <Network type="iterator" name="LOOP0"> <Node name="node_Load_1" type="Load" x="-631.000000" y="272.000000"/> <Node name="node_ImageProbe_1" type="ImageProbe" x="-294.000000" y="278.000000"> <Parameter name="HEIGHT" type="int" value="240" description=""/> <Parameter name="WIDTH" type="int" value="320" description=""/> <Parameter name="BREAK_AT" type="int" value="" description=""/> <Parameter name="SHOW" type="bool" value="true" description=""/> <Parameter name="SKIP" type="int" value="" description=""/> </Node> <Node name="node_Probe_1" type="Probe" x="-185.000000" y="278.000000"> <Parameter name="BREAK_AT" type="int" value="" description=""/> <Parameter name="SHOW" type="bool" value="true" description=""/> <Parameter name="SKIP" type="int" value="" description=""/> <Parameter name="PROBE_NAME" type="string" value="CLICK CONTINUE TO TEST ALL THE TEMPLATES" description=""/> </Node> <Node name="node_Smaller_1" type="Smaller" x="156.000000" y="-64.000000"/> <Node name="node_IterCount_1" type="IterCount" x="-93.000000" y="-74.000000"/> <Node name="node_Constant_1" type="Constant" x="9.000000" y="-29.000000"> <Parameter name="VALUE" type="int" value="1289" description=""/> </Node> <Node name="node_PROCESS_TEMPLATE_1" type="PROCESS_TEMPLATE" x="39.000000" y="285.000000"/> <Node name="node_Surround_1" type="Surround" x="-539.000000" y="272.000000"> <Parameter name="SPACING" type="int" value="10" description=""/> </Node> <Node name="node_Print_1" type="Print" x="1.000000" y="-73.000000"/> <Node name="node_NilObject_1" type="NilObject" x="-539.000000" y="316.000000"/> <Node name="node_NOP_1" type="NOP" x="92.000000" y="338.000000"/> <Node name="node_NNetExec_1" type="NNetExec" x="288.000000" y="294.000000"> <Parameter name="OUTPUTLENGTH" type="int" value="36" description="No description available"/> </Node> <Node name="node_TextProbe_1" type="TextProbe" x="463.000000" y="295.000000"> <Parameter name="BREAK_AT" type="int" value="-1" description="If set, the probe runs until (count = BREAK_AT)"/> <Parameter name="SHOW" type="bool" value="true" description="Whether or not to show the the data by default"/> <Parameter name="SKIP" type="int" value="" description="Count increment for each "Next""/> <Parameter name="PROBE_NAME" type="string" value="NNET_OUTPUT" description="Name (title) of the probe"/> </Node> <Link from="node_ImageProbe_1" output="OUTPUT" to="node_Probe_1" input="INPUT"/> <Link from="node_Constant_1" output="VALUE" to="node_Smaller_1" input="INPUT2"/> <Link from="node_Surround_1" output="IMAGE_OUT" to="node_ImageProbe_1" input="INPUT"/> <Link from="node_Load_1" output="OUTPUT" to="node_Surround_1" input="IMAGE_IN"/> <Link from="node_Print_1" output="OUTPUT" to="node_Smaller_1" input="INPUT1"/> <Link from="node_IterCount_1" output="OUTPUT" to="node_Print_1" input="INPUT"/> <Link from="node_NilObject_1" output="VALUE" to="node_ImageProbe_1" input="SAVE_FILENAME"/> <Link from="node_Probe_1" output="OUTPUT" to="node_PROCESS_TEMPLATE_1" input="IMAGE"/> <Link from="node_NOP_1" output="OUTPUT" to="node_NNetExec_1" input="NNET"/> <Link from="node_PROCESS_TEMPLATE_1" output="NNET_INPUT" to="node_NNetExec_1" input="INPUT"/> <Link from="node_NNetExec_1" output="OUTPUT" to="node_TextProbe_1" input="INPUT"/> <NetInput name="STREAM" node="node_Load_1" terminal="STREAM" object_type="any" description="No description available"/> <NetCondition name="CONDITION" node="node_Smaller_1" terminal="OUTPUT"/> <NetInput name="LOOKUP" node="node_PROCESS_TEMPLATE_1" terminal="LOOKUP" object_type="any" description="No description available"/> <NetInput name="NNET" node="node_NOP_1" terminal="INPUT" object_type="any" description="The input"/> <NetOutput name="NNET_OUTPUT" node="node_TextProbe_1" terminal="OUTPUT" object_type="any" description="Pass through"/> </Network> <Network type="subnet" name="PROCESS_TEMPLATE"> <Node name="node_Binarize_1" type="Binarize" x="-519.000000" y="-80.000000"/> <Node name="node_STAT_ANALYSIS_1" type="STAT_ANALYSIS" x="-736.000000" y="-112.000000"/> <Node name="node_NOP_1" type="NOP" x="-851.000000" y="-73.000000"/> <Node name="node_Components_1" type="Components" x="-258.000000" y="-70.000000"> <Parameter name="XGAP" type="int" value="1" description=""/> <Parameter name="YGAP" type="int" value="1" description=""/> <Parameter name="NUM_COLOR" type="int" value="2" description=""/> <Parameter name="MIN_AREA" type="int" value="16" description=""/> </Node> <Node name="node_SymbolExtractor_1" type="SymbolExtractor" x="-28.000000" y="-64.000000"> <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> <Node name="node_Scale_1" type="Scale" x="86.000000" y="-63.000000"> <Parameter name="WIDTH" type="int" value="13" description=""/> <Parameter name="HEIGHT" type="int" value="13" description=""/> <Parameter name="DEBUG" type="int" value="1" description=""/> </Node> <Node name="node_ScalePrint_1" type="ScalePrint" x="186.000000" y="-62.000000"> <Parameter name="WIDTH" type="int" value="13" description=""/> <Parameter name="HEIGHT" type="int" value="13" description=""/> </Node> <Node name="node_Concat_1" type="Concat" x="335.000000" y="-55.000000"/> <Node name="node_EXTRA_INFO_1" type="EXTRA_INFO" x="193.000000" y="-7.000000"/> <Link from="node_STAT_ANALYSIS_1" output="THRESHOLD" to="node_Binarize_1" input="THRESHOLD"/> <Link from="node_NOP_1" output="OUTPUT" to="node_STAT_ANALYSIS_1" input="IMAGE_IN"/> <Link from="node_NOP_1" output="OUTPUT" to="node_Binarize_1" input="IMAGE_IN"/> <Link from="node_Components_1" output="BLOBS" to="node_SymbolExtractor_1" input="DATA"/> <Link from="node_Constant_1" output="VALUE" to="node_SymbolExtractor_1" input="INDEX"/> <Link from="node_SymbolExtractor_1" output="SYMBOL" to="node_Scale_1" input="CRECT"/> <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"/> </Network> <Network type="subnet" name="STAT_ANALYSIS"> <Node name="node_StatIntensityAnalyser_1" type="StatIntensityAnalyser" x="-210.000000" y="-280.000000"> <Parameter name="FRACTION_ANALYSED" type="float" value="0.1" description=""/> </Node> <Node name="node_Add_1" type="Add" x="81.000000" y="-280.000000"/> <Node name="node_Div_1" type="Div" x="178.000000" y="-262.000000"/> <Node name="node_Constant_1" type="Constant" x="65.000000" y="-240.000000"> <Parameter name="VALUE" type="float" value="2.5" description=""/> </Node> <Link from="node_StatIntensityAnalyser_1" output="MAX_INTENSITY" to="node_Add_1" input="INPUT1"/> <Link from="node_StatIntensityAnalyser_1" output="MIN_INTENSITY" to="node_Add_1" input="INPUT2"/> <Link from="node_Add_1" output="OUTPUT" to="node_Div_1" input="NUM"/> <Link from="node_Constant_1" output="VALUE" to="node_Div_1" input="DEN"/> <NetInput name="IMAGE_IN" node="node_StatIntensityAnalyser_1" terminal="IMAGE_IN" object_type="any" description="No description available"/> <NetOutput name="THRESHOLD" node="node_Div_1" terminal="OUTPUT" object_type="any" description="No description available"/> </Network> <Network type="subnet" name="EXTRA_INFO"> <Node name="node_NOP_1" type="NOP" x="-741.000000" y="185.000000"/> <Node name="node_Div_4" type="Div" x="-90.000000" y="163.000000"/> <Node name="node_Div_5" type="Div" x="-90.000000" y="206.000000"/> <Node name="node_Div_6" type="Div" x="-90.000000" y="244.000000"/> <Node name="node_RectAnalyser_2" type="RectAnalyser" x="-621.000000" y="185.000000"/> <Node name="node_Concat_1" type="Concat" x="133.000000" y="213.000000"/> <Node name="node_Concat_2" type="Concat" x="286.000000" y="170.000000"/> <Link from="node_RectAnalyser_2" output="HEIGHT" to="node_Div_4" input="NUM"/> <Link from="node_RectAnalyser_2" output="WIDTH" to="node_Div_4" input="DEN"/> <Link from="node_RectAnalyser_2" output="X_RELATIVE_CENTER_OF_GRAVITY" to="node_Div_5" input="NUM"/> <Link from="node_RectAnalyser_2" output="WIDTH" to="node_Div_5" input="DEN">-361.5 170 -275 170 -274 213 -144 213.5 </Link> <Link from="node_RectAnalyser_2" output="Y_RELATIVE_CENTER_OF_GRAVITY" to="node_Div_6" input="NUM">-361.5 215 -316 215 -276 236 -144 236.5 </Link> <Link from="node_RectAnalyser_2" output="HEIGHT" to="node_Div_6" input="DEN">-361.5 155 -283 156 -284 252 -144 251.5 </Link> <Link from="node_Div_5" output="OUTPUT" to="node_Concat_1" input="INPUT1"/> <Link from="node_Div_6" output="OUTPUT" to="node_Concat_1" input="INPUT2"/> <Link from="node_Div_4" output="OUTPUT" to="node_Concat_2" input="INPUT1"/> <Link from="node_Concat_1" output="OUTPUT" to="node_Concat_2" input="INPUT2"/> <Link from="node_NOP_1" output="OUTPUT" to="node_RectAnalyser_2" input="CRECT"/> <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"/> </Network> </Document> Index: SymbolTracking.n =================================================================== RCS file: /cvsroot/robotflow/RobotFlow/demo/SymbolRecog/n-files/SymbolTracking.n,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** SymbolTracking.n 2 Nov 2004 15:47:48 -0000 1.7 --- SymbolTracking.n 3 Nov 2004 18:33:25 -0000 1.8 *************** *** 33,43 **** <NetOutput name="READING_FLAG" node="node_MAIN_LOOP_1" terminal="READING_FLAG" object_type="any" description="No description available"/> <Note x="0" y="0" visible="0" text="Created with FlowDesigner 0.8.1"/> </Network> <Network type="iterator" name="MAIN_LOOP"> ! <Node name="node_READ_1" type="READ" x="-218.000000" y="165.000000"/> <Node name="node_Constant_1" type="Constant" x="-218.000000" y="287.000000"> <Parameter name="VALUE" type="bool" value="true" description="The value"/> </Node> ! <Node name="node_SNCRZ30_1" type="SNCRZ30" x="-847.000000" y="183.000000"> <Parameter name="PAN_SPEED" type="int" value="24" description="Pan speed 0-24"/> <Parameter name="TILT_SPEED" type="int" value="20" description="Tilt speed 0-20"/> --- 33,44 ---- <NetOutput name="READING_FLAG" node="node_MAIN_LOOP_1" terminal="READING_FLAG" object_type="any" description="No description available"/> <Note x="0" y="0" visible="0" text="Created with FlowDesigner 0.8.1"/> + <Note x="-592" y="-183" visible="1" text="Load configuration files and LOOP forever. The colors and neural network must be properly trained before this network can work."/> </Network> <Network type="iterator" name="MAIN_LOOP"> ! <Node name="node_READ_1" type="READ" x="-221.000000" y="177.000000"/> <Node name="node_Constant_1" type="Constant" x="-218.000000" y="287.000000"> <Parameter name="VALUE" type="bool" value="true" description="The value"/> </Node> ! <Node name="node_SNCRZ30_1" type="SNCRZ30" x="-898.000000" y="185.000000"> <Parameter name="PAN_SPEED" type="int" value="24" description="Pan speed 0-24"/> <Parameter name="TILT_SPEED" type="int" value="20" description="Tilt speed 0-20"/> *************** *** 47,52 **** <Parameter name="INQUIRY_POSITION" type="bool" value="false" description="Inquiry position of the pan,tilt,zoom from the device"/> </Node> ! <Node name="node_RGB242RGB15_1" type="RGB242RGB15" x="-525.000000" y="245.000000"/> ! <Node name="node_NilObject_1" type="NilObject" x="-1203.000000" y="137.000000"/> <Node name="node_Feedback_1" type="Feedback" x="260.000000" y="246.000000"> <Parameter name="DELAY" type="int" value="1" description="Number of iteration for the delay"/> --- 48,53 ---- <Parameter name="INQUIRY_POSITION" type="bool" value="false" description="Inquiry position of the pan,tilt,zoom from the device"/> </Node> ! <Node name="node_RGB242RGB15_1" type="RGB242RGB15" x="-553.000000" y="293.000000"/> ! <Node name="node_NilObject_1" type="NilObject" x="-1193.000000" y="146.000000"/> <Node name="node_Feedback_1" type="Feedback" x="260.000000" y="246.000000"> <Parameter name="DELAY" type="int" value="1" description="Number of iteration for the delay"/> *************** *** 61,65 **** <Parameter name="BEFORE_LIMIT" type="int" value="0" description="When count - DELAY is smaller or equal to BEFORE_LIMIT, the input is pulled from BEFORE at (DELAY - count + BEFORE_LIMIT)"/> </Node> ! <Node name="node_NilObject_2" type="NilObject" x="-37.000000" y="310.000000"/> <Node name="node_TextProbe_1" type="TextProbe" x="100.000000" y="70.000000"> <Parameter name="BREAK_AT" type="int" value="-1" description="If set, the probe runs until (count = BREAK_AT)"/> --- 62,66 ---- <Parameter name="BEFORE_LIMIT" type="int" value="0" description="When count - DELAY is smaller or equal to BEFORE_LIMIT, the input is pulled from BEFORE at (DELAY - count + BEFORE_LIMIT)"/> </Node> ! <Node name="node_NilObject_2" type="NilObject" x="-112.000000" y="312.000000"/> <Node name="node_TextProbe_1" type="TextProbe" x="100.000000" y="70.000000"> <Parameter name="BREAK_AT" type="int" value="-1" description="If set, the probe runs until (count = BREAK_AT)"/> *************** *** 77,95 **** <Node name="node_NOP_2" type="NOP" x="102.000000" y="239.000000"/> <Node name="node_NOP_3" type="NOP" x="101.000000" y="295.000000"/> ! <Node name="node_ImageProbeSDL_1" type="ImageProbeSDL" x="-637.000000" y="314.000000"> <Parameter name="HEIGHT" type="int" value="240" description="The height of the image"/> <Parameter name="WIDTH" type="int" value="320" description="The width of the image"/> </Node> ! <Node name="node_SKIP_N_1" type="SKIP_N" x="7.000000" y="158.000000"> <Parameter name="SKIP_N" type="int" value="15" description="The value"/> </Node> ! <Node name="node_SKIP_N_2" type="SKIP_N" x="8.000000" y="199.000000"> <Parameter name="SKIP_N" type="int" value="15" description="The value"/> </Node> ! <Node name="node_SKIP_N_3" type="SKIP_N" x="8.000000" y="240.000000"> <Parameter name="SKIP_N" type="int" value="15" description="The value"/> </Node> ! <Node name="node_ComponentsViewer_1" type="ComponentsViewer" x="-79.000000" y="388.000000"/> ! <Node name="node_NOP_4" type="NOP" x="-558.000000" y="372.000000"/> <Node name="node_Components_1" type="Components" x="-351.000000" y="396.000000"> <Parameter name="XGAP" type="int" value="3" description="max X distance between two pixels of the same color blob."/> --- 78,96 ---- <Node name="node_NOP_2" type="NOP" x="102.000000" y="239.000000"/> <Node name="node_NOP_3" type="NOP" x="101.000000" y="295.000000"/> ! <Node name="node_ImageProbeSDL_1" type="ImageProbeSDL" x="-664.000000" y="208.000000"> <Parameter name="HEIGHT" type="int" value="240" description="The height of the image"/> <Parameter name="WIDTH" type="int" value="320" description="The width of the image"/> </Node> ! <Node name="node_SKIP_N_1" type="SKIP_N" x="7.000000" y="170.000000"> <Parameter name="SKIP_N" type="int" value="15" description="The value"/> </Node> ! <Node name="node_SKIP_N_2" type="SKIP_N" x="10.000000" y="238.000000"> <Parameter name="SKIP_N" type="int" value="15" description="The value"/> </Node> ! <Node name="node_SKIP_N_3" type="SKIP_N" x="9.000000" y="295.000000"> <Parameter name="SKIP_N" type="int" value="15" description="The value"/> </Node> ! <Node name="node_ComponentsViewer_1" type="ComponentsViewer" x="-75.000000" y="381.000000"/> ! <Node name="node_NOP_4" type="NOP" x="-572.000000" y="372.000000"/> <Node name="node_Components_1" type="Components" x="-351.000000" y="396.000000"> <Parameter name="XGAP" type="int" value="3" description="max X distance between two pixels of the same color blob."/> *************** *** 98,102 **** <Parameter name="MIN_AREA" type="int" value="16" description="minimum area of color blocs"/> </Node> ! <Node name="node_ImageProbe_1" type="ImageProbe" x="222.000000" y="398.000000"> <Parameter name="HEIGHT" type="int" value="240" description="The height of the image"/> <Parameter name="WIDTH" type="int" value="320" description="The width of the image"/> --- 99,103 ---- <Parameter name="MIN_AREA" type="int" value="16" description="minimum area of color blocs"/> </Node> ! <Node name="node_ImageProbe_1" type="ImageProbe" x="257.000000" y="387.000000"> <Parameter name="HEIGHT" type="int" value="240" description="The height of the image"/> <Parameter name="WIDTH" type="int" value="320" description="The width of the image"/> *************** *** 105,109 **** <Parameter name="SKIP" type="int" value="" description="No description available"/> </Node> ! <Node name="node_NilObject_3" type="NilObject" x="-22.000000" y="414.000000"/> <Link from="node_SNCRZ30_1" output="ZOOM_POSITION" to="node_READ_1" input="CURRENT_ABS_ZOOM"/> <Link from="node_NilObject_1" output="VALUE" to="node_SNCRZ30_1" input="TILT_ABS_POS"/> --- 106,110 ---- <Parameter name="SKIP" type="int" value="" description="No description available"/> </Node> ! <Node name="node_NilObject_3" type="NilObject" x="41.000000" y="413.000000"/> <Link from="node_SNCRZ30_1" output="ZOOM_POSITION" to="node_READ_1" input="CURRENT_ABS_ZOOM"/> <Link from="node_NilObject_1" output="VALUE" to="node_SNCRZ30_1" input="TILT_ABS_POS"/> *************** *** 113,123 **** <Link from="node_READ_1" output="SENTENCE" to="node_TextProbe_1" input="INPUT"/> <Link from="node_READ_1" output="ORIGINAL_TEXT" to="node_TextProbe_2" input="INPUT"/> ! <Link from="node_Feedback_1" output="DELAY" to="node_SNCRZ30_1" input="TILT_REL_POS">354 253.5 447 254 447 503 -1106 504 -1106 191 -991 190.5 </Link> <Link from="node_RGB242RGB15_1" output="RGB15_IMAGE" to="node_READ_1" input="RGB15_IMAGE"/> <Link from="node_ImageProbeSDL_1" output="OUTPUT" to="node_RGB242RGB15_1" input="RGB24_IMAGE"/> <Link from="node_SNCRZ30_1" output="IMAGE" to="node_ImageProbeSDL_1" input="INPUT"/> ! <Link from="node_Feedback_3" output="DELAY" to="node_SNCRZ30_1" input="ZOOM_ABS_POS">354 311.5 396 311 396 431 -1067 431 -1068 209 -991 205.5 </Link> <Link from="node_NilObject_1" output="VALUE" to="node_SNCRZ30_1" input="ZOOM_REL_POS"/> ! <Link from="node_Feedback_2" output="DELAY" to="node_SNCRZ30_1" input="PAN_REL_POS">351 182.5 531 182 531 576 -1176 577 -1175 175 -991 175.5 </Link> <Link from="node_NOP_1" output="OUTPUT" to="node_Feedback_2" input="INPUT"/> <Link from="node_SKIP_N_1" output="OUTPUT" to="node_NOP_1" input="INPUT"/> --- 114,124 ---- <Link from="node_READ_1" output="SENTENCE" to="node_TextProbe_1" input="INPUT"/> <Link from="node_READ_1" output="ORIGINAL_TEXT" to="node_TextProbe_2" input="INPUT"/> ! <Link from="node_Feedback_1" output="DELAY" to="node_SNCRZ30_1" input="TILT_REL_POS">355.5 253.5 447 254 447 503 -1106 504 -1106 191 -1044.5 192.5 </Link> <Link from="node_RGB242RGB15_1" output="RGB15_IMAGE" to="node_READ_1" input="RGB15_IMAGE"/> <Link from="node_ImageProbeSDL_1" output="OUTPUT" to="node_RGB242RGB15_1" input="RGB24_IMAGE"/> <Link from="node_SNCRZ30_1" output="IMAGE" to="node_ImageProbeSDL_1" input="INPUT"/> ! <Link from="node_Feedback_3" output="DELAY" to="node_SNCRZ30_1" input="ZOOM_ABS_POS">355.5 311.5 396 311 396 431 -1067 431 -1068 209 -1044.5 207.5 </Link> <Link from="node_NilObject_1" output="VALUE" to="node_SNCRZ30_1" input="ZOOM_REL_POS"/> ! <Link from="node_Feedback_2" output="DELAY" to="node_SNCRZ30_1" input="PAN_REL_POS">352.5 182.5 531 182 531 576 -1176 577 -1175 175 -1044.5 177.5 </Link> <Link from="node_NOP_1" output="OUTPUT" to="node_Feedback_2" input="INPUT"/> <Link from="node_SKIP_N_1" output="OUTPUT" to="node_NOP_1" input="INPUT"/> *************** *** 151,154 **** --- 152,159 ---- <NetOutput name="COMPONENTS" node="node_ImageProbe_1" terminal="OUTPUT" object_type="any" description="No description available"/> <Note x="0" y="0" visible="0" text="Created with FlowDesigner 0.8.1"/> + <Note x="-877" y="393" visible="1" text="You must have a Sony SNC-RZ30 Network Camera for this network to work. You can replace this by having a V4L2 capture board and a PTZ camera."/> + <Note x="-223" y="97" visible="1" text="The READ network will do all the processing to extract text from images at each iteration."/> + <Note x="-325" y="593" visible="1" text="The Components, ComponentsViewer and ImageProbe are useful only to display color components for the user. They can be removed without changing the outcome of the algorithm."/> + <Note x="439" y="136" visible="1" text="SKIP_N blocks are useful because the SNCRZ30 camera is too slow and we have to limit the number of PTZ commands else it will overflow. We give a commande every 15 iterations."/> </Network> <Network type="subnet" name="SKIP_N"> Index: trainNeuralNet.n =================================================================== RCS file: /cvsroot/robotflow/RobotFlow/demo/SymbolRecog/n-files/trainNeuralNet.n,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** trainNeuralNet.n 23 Aug 2004 19:02:39 -0000 1.2 --- trainNeuralNet.n 3 Nov 2004 18:33:25 -0000 1.3 *************** *** 3,13 **** <Document> <Network type="subnet" name="MAIN"> ! <Node name="node_LoadFile_1" type="LoadFile" x="-2313.000000" y="-109.000000"> <Parameter name="FILENAME" type="string" value="../templates/train_in_172_v2.data" description="No description available"/> </Node> ! <Node name="node_LoadFile_2" type="LoadFile" x="-2316.000000" y="-36.000000"> <Parameter name="FILENAME" type="string" value="../templates/train_out_172_v2.data" description="No description available"/> </Node> ! <Node name="node_NNetInit_1" type="NNetInit" x="-1983.000000" y="14.000000"> <Parameter name="TOPO" type="string" value="<Vector 172 7 36>" description="Number of units on each layer (including input and output layers)"/> <Parameter name="FUNCTIONS" type="string" value="<Vector tansig tansig tansig>" description="Activation functions for each layer (except the input layer)"/> --- 3,13 ---- <Document> <Network type="subnet" name="MAIN"> ! <Node name="node_LoadFile_1" type="LoadFile" x="-2327.000000" y="-40.000000"> <Parameter name="FILENAME" type="string" value="../templates/train_in_172_v2.data" description="No description available"/> </Node> ! <Node name="node_LoadFile_2" type="LoadFile" x="-2324.000000" y="-2.000000"> <Parameter name="FILENAME" type="string" value="../templates/train_out_172_v2.data" description="No description available"/> </Node> ! <Node name="node_NNetInit_1" type="NNetInit" x="-2003.000000" y="31.000000"> <Parameter name="TOPO" type="string" value="<Vector 172 7 36>" description="Number of units on each layer (including input and output layers)"/> <Parameter name="FUNCTIONS" type="string" value="<Vector tansig tansig tansig>" description="Activation functions for each layer (except the input layer)"/> *************** *** 18,23 **** <Parameter name="DOWHILE" type="bool" value="" description="No description available"/> </Node> ! <Node name="node_Length_1" type="Length" x="-2094.000000" y="-179.000000"/> ! <Node name="node_Length_2" type="Length" x="-2098.000000" y="123.000000"/> <Node name="node_SaveAs_1" type="SaveAs" x="-1628.000000" y="0.000000"> <Parameter name="FILENAME" type="string" value="../neural_networks/net_172_7_36.nnet" description="No description available"/> --- 18,23 ---- <Parameter name="DOWHILE" type="bool" value="" description="No description available"/> </Node> ! <Node name="node_Length_1" type="Length" x="-2082.000000" y="-79.000000"/> ! <Node name="node_Length_2" type="Length" x="-2085.000000" y="100.000000"/> <Node name="node_SaveAs_1" type="SaveAs" x="-1628.000000" y="0.000000"> <Parameter name="FILENAME" type="string" value="../neural_networks/net_172_7_36.nnet" description="No description available"/> --- trainTemplates.n DELETED --- |