From: Dominic L. <ma...@us...> - 2004-08-16 20:53:47
|
Update of /cvsroot/robotflow/RobotFlow/demo/SymbolRecog/n-files In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31257/SymbolRecog/n-files Added Files: SymbolTracking.n trainTemplates.n Log Message: first version of the demo --- NEW FILE: SymbolTracking.n --- #!/usr/bin/env batchflow <?xml version="1.0"?> <Document> <Network type="subnet" name="MAIN"> <Node name="node_LOOP0_1" type="MAIN_LOOP" x="-3314.000000" y="-512.000000"> <Parameter name="DOWHILE" type="bool" value="" description="No description available"/> </Node> <Node name="node_LoadFile_1" type="LoadFile" x="-3709.000000" y="-481.000000"> <Parameter name="FILENAME" type="string" value="../dict/english.dict" description="No description available"/> </Node> <Node name="node_LoadFile_2" type="LoadFile" x="-3708.000000" y="-510.000000"> <Parameter name="FILENAME" type="string" value="../neural_networks/net_172_7_36.nnet" description="No description available"/> </Node> <Node name="node_LoadFile_3" type="LoadFile" x="-3709.000000" y="-538.000000"> <Parameter name="FILENAME" type="string" value="../color_lookup/black_white.data" description="No description available"/> </Node> <Link from="node_LoadFile_1" output="OUTPUT" to="node_LOOP0_1" input="DICT"/> <Link from="node_LoadFile_2" output="OUTPUT" to="node_LOOP0_1" input="NNET"/> <Link from="node_LoadFile_3" output="OUTPUT" to="node_LOOP0_1" input="BLACK_WHITE_LOOKUP"/> <NetOutput name="TILT_POSITION" node="node_LOOP0_1" terminal="TILT_POSITION" object_type="" description="Returns the current tilt position of the Camera"/> <NetOutput name="PAN_POSITION" node="node_LOOP0_1" terminal="PAN_POSITION" object_type="" description="Returns the current pan position of the Camera"/> <NetOutput name="SAVE_FLAG" node="node_LOOP0_1" terminal="SAVE_FLAG" object_type="any" description="No description available"/> <NetOutput name="OUTPUT_1_1" node="node_LOOP0_1" terminal="OUTPUT_1" object_type="any" description="No description available"/> <NetOutput name="OUTPUT4" node="node_LOOP0_1" terminal="OUTPUT4" object_type="any" description="The output object = input object"/> <NetOutput name="ZOOM" node="node_LOOP0_1" terminal="ZOOM" object_type="any" description="No description available"/> <NetOutput name="COMPONENTS_IMAGE" node="node_LOOP0_1" terminal="COMPONENTS_IMAGE" object_type="any" description="No description available"/> </Network> <Network type="subnet" name="COLOR_TRAIN"> <Node name="node_Components_1" type="Components" x="221.000000" y="48.000000"> <Parameter name="XGAP" type="int" value="2" description=""/> <Parameter name="YGAP" type="int" value="2" description=""/> <Parameter name="NUM_COLOR" type="int" value="4" description=""/> <Parameter name="MIN_AREA" type="int" value="16" description=""/> </Node> <Node name="node_ComponentsViewer_1" type="ComponentsViewer" x="432.000000" y="40.000000"/> <Node name="node_ColorTrain_1" type="ColorTrain" x="-155.000000" y="62.000000"> <Parameter name="LOAD_LOOKUP" type="subnet_param" value="COLOR_SAVE_FILENAME" description=""/> <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=""/> <Parameter name="H_DELTA" type="float" value="10.0" description=""/> <Parameter name="S_DELTA" type="float" value="0.30" description=""/> <Parameter name="V_DELTA" type="float" value="0.30" description=""/> <Parameter name="HSV_TRAINING" type="bool" value="true" description=""/> </Node> <Node name="node_Save_1" type="Save" x="321.000000" y="229.000000"> <Parameter name="PRETTY_PRINT" type="bool" value="false" description=""/> </Node> <Node name="node_OutputStream_1" type="OutputStream" x="143.000000" y="236.000000"> <Parameter name="TYPE" type="String" value="" description=""/> </Node> <Node name="node_Constant_1" type="Constant" x="28.000000" y="236.000000"> <Parameter name="VALUE" type="subnet_param" value="COLOR_SAVE_FILENAME" description=""/> </Node> <Node name="node_IF_1" type="IF" x="706.000000" y="177.000000"> <Parameter name="PULL_ANYWAY" type="bool" value="" description=""/> </Node> <Node name="node_NoCommand_1" type="NoCommand" x="514.000000" y="237.000000"/> <Node name="node_ImageProbeSDL_1" type="ImageProbeSDL" x="601.000000" y="40.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_NOP_1" type="NOP" x="699.000000" y="113.000000"/> <Node name="node_NOP_2" type="NOP" x="705.000000" y="40.000000"/> <Node name="node_NOP_3" type="NOP" x="597.000000" y="-30.000000"/> <Link from="node_ColorTrain_1" output="OUTPUT" to="node_Components_1" input="IMAGE"/> <Link from="node_ColorTrain_1" output="LOOKUP" to="node_Components_1" input="LOOKUP"/> <Link from="node_Components_1" output="BLOBS" to="node_ComponentsViewer_1" input="DATA"/> <Link from="node_ColorTrain_1" output="LOOKUP" to="node_Save_1" input="OBJECT">-61.5 54.5 115 72 163 221 255.5 221.5 </Link> <Link from="node_OutputStream_1" output="OUTPUT" to="node_Save_1" input="STREAM"/> <Link from="node_Constant_1" output="VALUE" to="node_OutputStream_1" input="INPUT"/> <Link from="node_ColorTrain_1" output="SAVE_FLAG" to="node_IF_1" input="COND">-61.5 69.5 -52 160 658.5 162 </Link> <Link from="node_Save_1" output="OUTPUT" to="node_IF_1" input="THEN"/> <Link from="node_NoCommand_1" output="OUTPUT" to="node_IF_1" input="ELSE"/> <Link from="node_ComponentsViewer_1" output="IMAGE" to="node_ImageProbeSDL_1" input="INPUT"/> <Link from="node_ColorTrain_1" output="LOOKUP" to="node_ComponentsViewer_1" input="LOOKUP">-60 52 33 9 237 9 331 32.5 </Link> <Link from="node_Components_1" output="BLOBS" to="node_NOP_1" input="INPUT">257.5 48 334 113 682.5 113 </Link> <Link from="node_ImageProbeSDL_1" output="OUTPUT" to="node_NOP_2" input="INPUT"/> <Link from="node_ColorTrain_1" output="LOOKUP" to="node_NOP_3" input="INPUT">-62 53 42 -29 580.5 -30 </Link> <NetOutput name="SAVE_FLAG" node="node_IF_1" terminal="OUTPUT" object_type="any" description="The object from THEN or ELSE depending on COND"/> <NetInput name="IMAGE_IN" node="node_ColorTrain_1" terminal="INPUT" object_type="any" description="No description available"/> <NetOutput name="COLOR_ID_SELECTED" node="node_ColorTrain_1" terminal="COLOR_ID" object_type="int" description="The color id selected"/> <NetOutput name="COMPONENTS" node="node_NOP_1" terminal="OUTPUT" object_type="any" description="The output = The input"/> <NetOutput name="COMPONENTS_IMAGE" node="node_NOP_2" terminal="OUTPUT" object_type="any" description="The output = The input"/> <NetOutput name="LOOKUP" node="node_NOP_3" terminal="OUTPUT" object_type="any" description="The output = The input"/> </Network> <Network type="iterator" name="MAIN_LOOP"> <Node name="node_SNCRZ30_1" type="SNCRZ30" x="-561.000000" y="196.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"/> <Parameter name="HOST" type="string" value="192.168.1.149" description="No Description Available"/> <Parameter name="CONTINUOUS" type="bool" value="true" description="Continuously grab images "/> <Parameter name="WAIT_REPLY" type="bool" value="false" description="Wait for camera reply on commands"/> </Node> <Node name="node_PTZControl_1" type="PTZControl" x="-1002.000000" y="188.000000"> <Parameter name="MIN_ZOOM_SLIDER_VAL" type="int" value="0" description="The command to send when in "WIDE" mode"/> <Parameter name="MAX_ZOOM_SLIDER_VAL" type="int" value="16384" description="The command to send when in "TELE" mode"/> </Node> <Node name="node_SUBNET0_1" type="COLOR_TRAIN" x="-343.000000" y="253.000000"> <Parameter name="COLOR_SAVE_FILENAME" type="string" value="../color_lookup/colors.data" description=""/> </Node> <Node name="node_PAN_TILT_CTRL_1" type="PAN_TILT_CTRL" x="202.000000" y="122.000000"/> <Node name="node_Subsumption_1" type="Subsumption" x="32.000000" y="22.000000"/> <Node name="node_Subsumption_2" type="Subsumption" x="-262.000000" y="541.000000"/> <Node name="node_NOP_1" type="NOP" x="354.000000" y="105.000000"/> <Node name="node_NOP_2" type="NOP" x="402.000000" y="137.000000"/> <Node name="node_Feedback_1" type="Feedback" x="532.000000" y="114.000000"> <Parameter name="DELAY" type="int" value="1" description="Number of iteration for the delay"/> <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="365.000000" y="182.000000"/> <Node name="node_Feedback_2" type="Feedback" x="564.000000" y="174.000000"> <Parameter name="DELAY" type="int" value="1" description="Number of iteration for the delay"/> <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_SKIP_N_1" type="SKIP_N" x="-454.000000" y="549.000000"> <Parameter name="SKIP_N" type="int" value="10" description="The value"/> </Node> <Node name="node_SKIP_N_2" type="SKIP_N" x="-153.000000" y="-27.000000"> <Parameter name="SKIP_N" type="int" value="10" description="The value"/> </Node> <Node name="node_Constant_1" type="Constant" x="-936.000000" y="-33.000000"> <Parameter name="VALUE" type="bool" value="true" description="The value"/> </Node> <Node name="node_Feedback_3" type="Feedback" x="573.000000" y="398.000000"> <Parameter name="DELAY" type="int" value="1" description="Number of iteration for the delay"/> <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_3" type="NilObject" x="393.000000" y="407.000000"/> <Node name="node_Subsumption_3" type="Subsumption" x="-774.000000" y="456.000000"/> <Node name="node_SKIP_N_3" type="SKIP_N" x="-1055.000000" y="463.000000"> <Parameter name="SKIP_N" type="int" value="10" description="The value"/> </Node> <Node name="node_MULTI_SIGN_TRACKING_1" type="MULTI_SIGN_TRACKING" x="-117.000000" y="115.000000"/> <Node name="node_ZOOM_FACTOR_1" type="ZOOM_FACTOR" x="-102.000000" y="205.000000"/> <Node name="node_RGB242RGB15_1" type="RGB242RGB15" x="-472.000000" y="304.000000"/> <Node name="node_PROCESS_SEGMENTS_1" type="PROCESS_SEGMENTS" x="262.000000" y="321.000000"/> <Link from="node_PTZControl_1" output="ABS_PAN" to="node_SNCRZ30_1" input="PAN_ABS_POS"/> <Link from="node_PTZControl_1" output="ABS_TILT" to="node_SNCRZ30_1" input="TILT_ABS_POS"/> <Link from="node_PTZControl_1" output="REL_PAN" to="node_Subsumption_1" input="HIGH_PRIORITY"/> <Link from="node_Subsumption_1" output="OUTPUT" to="node_SNCRZ30_1" input="PAN_REL_POS"/> <Link from="node_PTZControl_1" output="REL_TILT" to="node_Subsumption_2" input="HIGH_PRIORITY"/> <Link from="node_PAN_TILT_CTRL_1" output="REL_TILT" to="node_NOP_2" input="INPUT"/> <Link from="node_PAN_TILT_CTRL_1" output="REL_PAN" to="node_NOP_1" input="INPUT"/> <Link from="node_NOP_1" output="OUTPUT" to="node_Feedback_1" input="INPUT"/> <Link from="node_NilObject_2" output="VALUE" to="node_Feedback_1" input="BEFORE"/> <Link from="node_NOP_2" output="OUTPUT" to="node_Feedback_2" input="INPUT"/> <Link from="node_NilObject_2" output="VALUE" to="node_Feedback_2" input="BEFORE"/> <Link from="node_SKIP_N_1" output="OUTPUT" to="node_Subsumption_2" input="LOW_PRIORITY"/> <Link from="node_Subsumption_2" output="OUTPUT" to="node_SNCRZ30_1" input="TILT_REL_POS"/> <Link from="node_Feedback_2" output="DELAY" to="node_SKIP_N_1" input="INPUT">639 181.5 664 770 -485 764 -481 551 </Link> <Link from="node_SKIP_N_2" output="OUTPUT" to="node_Subsumption_1" input="LOW_PRIORITY"/> <Link from="node_Feedback_1" output="DELAY" to="node_SKIP_N_2" input="INPUT"/> <Link from="node_SNCRZ30_1" output="ZOOM_POSITION" to="node_PAN_TILT_CTRL_1" input="CURRENT_ZOOM">-445 203.5 -187 205 -187 151 72.5 152 </Link> <Link from="node_NilObject_3" output="VALUE" to="node_Feedback_3" input="BEFORE"/> <Link from="node_PTZControl_1" output="ABS_ZOOM" to="node_Subsumption_3" input="HIGH_PRIORITY"/> <Link from="node_SKIP_N_3" output="OUTPUT" to="node_Subsumption_3" input="LOW_PRIORITY"/> <Link from="node_Subsumption_3" output="OUTPUT" to="node_SNCRZ30_1" input="ZOOM"/> <Link from="node_Feedback_3" output="DELAY" to="node_SKIP_N_3" input="INPUT">667.5 405.5 801 405 801 633 -1165 631 -1165 463 -1082.5 463 </Link> <Link from="node_PAN_TILT_CTRL_1" output="ABS_ZOOM" to="node_Feedback_3" input="INPUT"/> <Link from="node_SUBNET0_1" output="COMPONENTS" to="node_MULTI_SIGN_TRACKING_1" input="COMPONENTS"/> <Link from="node_MULTI_SIGN_TRACKING_1" output="BOUNDARY" to="node_PAN_TILT_CTRL_1" input="BOUNDARY"/> <Link from="node_MULTI_SIGN_TRACKING_1" output="DELTA_Y" to="node_PAN_TILT_CTRL_1" input="DELTA_Y"/> <Link from="node_MULTI_SIGN_TRACKING_1" output="DELTA_X" to="node_PAN_TILT_CTRL_1" input="DELTA_X"/> <Link from="node_ZOOM_FACTOR_1" output="ZOOM_FACTOR" to="node_PAN_TILT_CTRL_1" input="ZOOM_FACTOR"/> <Link from="node_SNCRZ30_1" output="ZOOM_POSITION" to="node_ZOOM_FACTOR_1" input="ABS_ZOOM_VALUE"/> <Link from="node_RGB242RGB15_1" output="RGB15_IMAGE" to="node_SUBNET0_1" input="IMAGE_IN"/> <Link from="node_SNCRZ30_1" output="IMAGE" to="node_RGB242RGB15_1" input="RGB24_IMAGE"/> <Link from="node_RGB242RGB15_1" output="RGB15_IMAGE" to="node_PROCESS_SEGMENTS_1" input="IMAGE"/> <Link from="node_MULTI_SIGN_TRACKING_1" output="COMPONENTS" to="node_PROCESS_SEGMENTS_1" input="SYMBOLS_COMPONENTS"/> <NetOutput name="TILT_POSITION" node="node_SNCRZ30_1" terminal="TILT_POSITION" object_type="int" description="Returns the current tilt position of the Camera"/> <NetOutput name="PAN_POSITION" node="node_SNCRZ30_1" terminal="PAN_POSITION" object_type="int" description="Returns the current pan position of the Camera"/> <NetOutput name="SAVE_FLAG" node="node_SUBNET0_1" terminal="SAVE_FLAG" object_type="" description="The object from THEN or ELSE depending on COND"/> <NetOutput name="OUTPUT4" node="node_Feedback_2" terminal="OUTPUT" object_type="any" description="The output object = input object"/> <NetOutput name="OUTPUT_1" node="node_Feedback_1" terminal="OUTPUT" object_type="any" description="The output object = input object"/> <NetCondition name="CONDITION" node="node_Constant_1" terminal="VALUE"/> <NetOutput name="ZOOM" node="node_Feedback_3" terminal="OUTPUT" object_type="any" description="The output object = input object"/> <NetOutput name="COMPONENTS_IMAGE" node="node_SUBNET0_1" terminal="COMPONENTS_IMAGE" object_type="any" description="No description available"/> <NetOutput name="SENTENCE" node="node_PROCESS_SEGMENTS_1" terminal="SENTENCE" object_type="" description="The object from THEN or ELSE depending on COND"/> <NetOutput name="ORIGINAL_TEXT" node="node_PROCESS_SEGMENTS_1" terminal="ORIGINAL_TEXT" object_type="" description="The object from THEN or ELSE depending on COND"/> <NetInput name="BLACK_WHITE_LOOKUP" node="node_PROCESS_SEGMENTS_1" terminal="LOOKUP" object_type="" description="No description available"/> <NetInput name="NNET" node="node_PROCESS_SEGMENTS_1" terminal="NNET" object_type="" description="No description available"/> <NetInput name="DICT" node="node_PROCESS_SEGMENTS_1" terminal="DICT" object_type="" description="No description available"/> </Network> <Network type="subnet" name="PAN_TILT_CTRL"> <Node name="node_GenericPID_1" type="GenericPID" x="-605.000000" y="-237.000000"> <Parameter name="P_GAIN" type="float" value="0.5" description="Proportionnal gain."/> <Parameter name="I_GAIN" type="float" value="0.0" description="Integral gain."/> <Parameter name="D_GAIN" type="float" value="0.0" description="Derivative gain."/> <Parameter name="I_MAX" type="float" value="100" description="The maximum Integral value."/> </Node> <Node name="node_Constant_1" type="Constant" x="-800.000000" y="-229.000000"> <Parameter name="VALUE" type="bool" value="false" description="The value"/> </Node> <Node name="node_GenericPID_2" type="GenericPID" x="-608.000000" y="-154.000000"> <Parameter name="P_GAIN" type="float" value="0.5" description="Proportionnal gain."/> <Parameter name="I_GAIN" type="float" value="0.0" description="Integral gain."/> <Parameter name="D_GAIN" type="float" value="0.0" description="Derivative gain."/> <Parameter name="I_MAX" type="float" value="100" description="The maximum Integral value."/> </Node> <Node name="node_Constant_2" type="Constant" x="-796.000000" y="-146.000000"> <Parameter name="VALUE" type="bool" value="false" description="The value"/> </Node> <Node name="node_NOP_1" type="NOP" x="-1393.000000" y="-271.000000"/> <Node name="node_NOP_2" type="NOP" x="-1393.000000" y="-183.000000"/> <Node name="node_NOP_3" type="NOP" x="-1393.000000" y="-153.000000"/> <Node name="node_IF_1" type="IF" x="-294.000000" y="-253.000000"> <Parameter name="PULL_ANYWAY" type="bool" value="" description="If true, the IF statement pulls also on the branch not taken"/> </Node> <Node name="node_isNil_1" type="isNil" x="-401.000000" y="-270.000000"/> <Node name="node_NilObject_1" type="NilObject" x="-507.000000" y="-254.000000"/> <Node name="node_IF_2" type="IF" x="-296.000000" y="-168.000000"> <Parameter name="PULL_ANYWAY" type="bool" value="" description="If true, the IF statement pulls also on the branch not taken"/> </Node> <Node name="node_isNil_2" type="isNil" x="-406.000000" y="-184.000000"/> <Node name="node_NilObject_2" type="NilObject" x="-485.000000" y="-168.000000"/> <Node name="node_TEST_SCALING_1" type="AUTO_SCALE" x="-921.000000" y="-245.000000"/> <Node name="node_TEST_SCALING_2" type="AUTO_SCALE" x="-916.000000" y="-161.000000"/> <Node name="node_NOP_4" type="NOP" x="-1392.000000" y="-85.000000"/> <Node name="node_NOP_5" type="NOP" x="-1395.000000" y="39.000000"/> <Node name="node_TEST_ZOOMING_1" type="AUTO_ZOOM" x="-936.000000" y="-61.000000"/> <Node name="node_Add_1" type="Add" x="-609.000000" y="-54.000000"/> <Node name="node_IF_3" type="IF" x="-294.000000" y="-70.000000"> <Parameter name="PULL_ANYWAY" type="bool" value="" description="If true, the IF statement pulls also on the branch not taken"/> </Node> <Node name="node_isNil_3" type="isNil" x="-418.000000" y="-84.000000"/> <Node name="node_NilObject_3" type="NilObject" x="-504.000000" y="-70.000000"/> <Link from="node_Constant_1" output="VALUE" to="node_GenericPID_1" input="RESET"/> <Link from="node_Constant_2" output="VALUE" to="node_GenericPID_2" input="RESET"/> <Link from="node_isNil_1" output="OUTPUT" to="node_IF_1" input="COND"/> <Link from="node_NOP_1" output="OUTPUT" to="node_isNil_1" input="INPUT"/> <Link from="node_NilObject_1" output="VALUE" to="node_IF_1" input="THEN"/> <Link from="node_isNil_2" output="OUTPUT" to="node_IF_2" input="COND"/> <Link from="node_NilObject_2" output="VALUE" to="node_IF_2" input="THEN"/> <Link from="node_NOP_2" output="OUTPUT" to="node_isNil_2" input="INPUT"/> <Link from="node_NOP_1" output="OUTPUT" to="node_TEST_SCALING_1" input="DELTA"/> <Link from="node_NOP_3" output="OUTPUT" to="node_TEST_SCALING_1" input="ZOOM_FACTOR"/> <Link from="node_NOP_2" output="OUTPUT" to="node_TEST_SCALING_2" input="DELTA"/> <Link from="node_NOP_3" output="OUTPUT" to="node_TEST_SCALING_2" input="ZOOM_FACTOR"/> <Link from="node_TEST_SCALING_2" output="SCALE" to="node_GenericPID_2" input="EPSILON"/> <Link from="node_TEST_SCALING_1" output="SCALE" to="node_GenericPID_1" input="EPSILON"/> <Link from="node_GenericPID_2" output="OUTPUT" to="node_IF_2" input="ELSE"/> <Link from="node_GenericPID_1" output="OUTPUT" to="node_IF_1" input="ELSE"/> <Link from="node_NOP_1" output="OUTPUT" to="node_TEST_ZOOMING_1" input="DELTA_X"/> <Link from="node_NOP_2" output="OUTPUT" to="node_TEST_ZOOMING_1" input="DELTA_Y"/> <Link from="node_NOP_4" output="OUTPUT" to="node_TEST_ZOOMING_1" input="BOUNDARY"/> <Link from="node_TEST_ZOOMING_1" output="REL_ZOOM" to="node_Add_1" input="INPUT1"/> <Link from="node_NOP_5" output="OUTPUT" to="node_Add_1" input="INPUT2"/> <Link from="node_isNil_3" output="OUTPUT" to="node_IF_3" input="COND"/> <Link from="node_NOP_4" output="OUTPUT" to="node_isNil_3" input="INPUT"/> <Link from="node_NilObject_3" output="VALUE" to="node_IF_3" input="THEN"/> <Link from="node_Add_1" output="OUTPUT" to="node_IF_3" input="ELSE"/> <NetInput name="DELTA_X" node="node_NOP_1" terminal="INPUT" object_type="any" description="The input"/> <NetInput name="DELTA_Y" node="node_NOP_2" terminal="INPUT" object_type="any" description="The input"/> <NetInput name="ZOOM_FACTOR" node="node_NOP_3" terminal="INPUT" object_type="any" description="The input"/> <NetOutput name="REL_PAN" node="node_IF_1" terminal="OUTPUT" object_type="any" description="The object from THEN or ELSE depending on COND"/> <NetOutput name="REL_TILT" node="node_IF_2" terminal="OUTPUT" object_type="any" description="The object from THEN or ELSE depending on COND"/> <NetInput name="BOUNDARY" node="node_NOP_4" terminal="INPUT" object_type="any" description="The input"/> <NetInput name="CURRENT_ZOOM" node="node_NOP_5" terminal="INPUT" object_type="any" description="The input"/> <NetOutput name="ABS_ZOOM" node="node_IF_3" terminal="OUTPUT" object_type="any" description="The object from THEN or ELSE depending on COND"/> <Note x="0" y="0" visible="0" text="Created with FlowDesigner 0.8.1"/> </Network> <Network type="subnet" name="SKIP_N"> <Node name="node_IF_1" type="IF" x="890.000000" y="-24.000000"> <Parameter name="PULL_ANYWAY" type="bool" value="false" description="If true, the IF statement pulls also on the branch not taken"/> </Node> <Node name="node_Equal_1" type="Equal" x="768.000000" y="-53.000000"/> <Node name="node_Constant_1" type="Constant" x="600.000000" y="-36.000000"> <Parameter name="VALUE" type="int" value="0" description="The value"/> </Node> <Node name="node_IterCount_1" type="IterCount" x="292.000000" y="-77.000000"/> <Node name="node_Modulo_1" type="Modulo" x="609.000000" y="-69.000000"/> <Node name="node_Constant_2" type="Constant" x="397.000000" y="-62.000000"> <Parameter name="VALUE" type="subnet_param" value="SKIP_N" description="The value"/> </Node> <Node name="node_NilObject_1" type="NilObject" x="732.000000" y="55.000000"/> <Link from="node_Equal_1" output="OUTPUT" to="node_IF_1" input="COND"/> <Link from="node_NilObject_1" output="VALUE" to="node_IF_1" input="ELSE"/> <Link from="node_Modulo_1" output="REMAINDER" to="node_Equal_1" input="INPUT1"/> <Link from="node_Constant_1" output="VALUE" to="node_Equal_1" input="INPUT2"/> <Link from="node_IterCount_1" output="OUTPUT" to="node_Modulo_1" input="DIVIDEND"/> <Link from="node_Constant_2" output="VALUE" to="node_Modulo_1" input="DIVISOR"/> <NetInput name="INPUT" node="node_IF_1" terminal="THEN" object_type="any" description="What to do if the condition is true"/> <NetOutput name="OUTPUT" node="node_IF_1" terminal="OUTPUT" object_type="any" description="The object from THEN or ELSE depending on COND"/> <Note x="0" y="0" visible="0" text="Created with FlowDesigner 0.8.1"/> </Network> <Network type="subnet" name="AUTO_SCALE"> <Node name="node_NOP_1" type="NOP" x="-257.000000" y="-156.000000"/> <Node name="node_NOP_2" type="NOP" x="-746.000000" y="-100.000000"/> <Node name="node_Power_1" type="Power" x="-283.000000" y="-95.000000"/> <Node name="node_Mul_1" type="Mul" x="-432.000000" y="-86.000000"/> <Node name="node_Constant_2" type="Constant" x="-597.000000" y="16.000000"> <Parameter name="VALUE" type="float" value="-1" description="The value"/> </Node> <Node name="node_NOP_3" type="NOP" x="115.000000" y="-152.000000"/> <Node name="node_Constant_3" type="Constant" x="-446.000000" y="-136.000000"> <Parameter name="VALUE" type="float" value="1.1" description="The value"/> </Node> <Node name="node_Mul_2" type="Mul" x="-66.000000" y="-150.000000"/> <Node name="node_Sub_1" type="Sub" x="-571.000000" y="-92.000000"/> <Node name="node_Constant_1" type="Constant" x="-730.000000" y="-60.000000"> <Parameter name="VALUE" type="float" value="1" description="The value"/> </Node> <Link from="node_Mul_1" output="OUTPUT" to="node_Power_1" input="EXP"/> <Link from="node_Constant_2" output="VALUE" to="node_Mul_1" input="INPUT2"/> <Link from="node_Constant_3" output="VALUE" to="node_Power_1" input="BASE"/> <Link from="node_NOP_1" output="OUTPUT" to="node_Mul_2" input="INPUT1"/> <Link from="node_Power_1" output="OUTPUT" to="node_Mul_2" input="INPUT2"/> <Link from="node_Sub_1" output="OUTPUT" to="node_Mul_1" input="INPUT1"/> <Link from="node_NOP_2" output="OUTPUT" to="node_Sub_1" input="INPUT1"/> <Link from="node_Constant_1" output="VALUE" to="node_Sub_1" input="INPUT2"/> <Link from="node_Mul_2" output="OUTPUT" to="node_NOP_3" input="INPUT"/> <NetInput name="DELTA" node="node_NOP_1" terminal="INPUT" object_type="any" description="The input"/> <NetInput name="ZOOM_FACTOR" node="node_NOP_2" terminal="INPUT" object_type="any" description="The input"/> <NetOutput name="SCALE" node="node_NOP_3" terminal="OUTPUT" object_type="any" description="The output = The input"/> <Note x="0" y="0" visible="0" text="Created with FlowDesigner 0.8.1"/> </Network> <Network type="subnet" name="AUTO_ZOOM"> <Node name="node_IF_1" type="IF" x="-378.000000" y="-90.000000"> <Parameter name="PULL_ANYWAY" type="bool" value="" description="If true, the IF statement pulls also on the branch not taken"/> </Node> <Node name="node_AND_1" type="AND" x="-780.000000" y="-97.000000"> <Parameter name="PULL_ANYWAY" type="bool" value="false" description="Pull on INPUT2 even if INPUT1 is false"/> </Node> <Node name="node_Smaller_1" type="Smaller" x="-965.000000" y="-103.000000"/> <Node name="node_NOP_1" type="NOP" x="-1404.000000" y="-109.000000"/> <Node name="node_NOP_2" type="NOP" x="-1405.000000" y="-49.000000"/> <Node name="node_NOP_3" type="NOP" x="-1300.000000" y="-198.000000"/> <Node name="node_Constant_2" type="Constant" x="-1183.000000" y="-94.000000"> <Parameter name="VALUE" type="float" value="10" description="The value"/> </Node> <Node name="node_Smaller_2" type="Smaller" x="-966.000000" y="-42.000000"/> <Node name="node_AND_2" type="AND" x="-614.000000" y="-105.000000"> <Parameter name="PULL_ANYWAY" type="bool" value="false" description="Pull on INPUT2 even if INPUT1 is false"/> </Node> <Node name="node_Greater_1" type="Greater" x="-797.000000" y="-192.000000"/> <Node name="node_Constant_3" type="Constant" x="-1058.000000" y="-162.000000"> <Parameter name="VALUE" type="int" value="15" description="The value"/> </Node> <Node name="node_Constant_4" type="Constant" x="-641.000000" y="-66.000000"> <Parameter name="VALUE" type="int" value="25" description="The value"/> </Node> <Node name="node_Constant_5" type="Constant" x="-808.000000" y="86.000000"> <Parameter name="VALUE" type="int" value="-200" description="The value"/> </Node> <Node name="node_IF_2" type="IF" x="-563.000000" y="72.000000"> <Parameter name="PULL_ANYWAY" type="bool" value="" description="If true, the IF statement pulls also on the branch not taken"/> </Node> <Node name="node_Constant_6" type="Constant" x="-708.000000" y="72.000000"> <Parameter name="VALUE" type="int" value="0" description="The value"/> </Node> <Node name="node_ABS_1" type="ABS" x="-1284.000000" y="-109.000000"/> <Node name="node_ABS_2" type="ABS" x="-1282.000000" y="-49.000000"/> <Node name="node_Mul_1" type="Mul" x="-505.000000" y="-58.000000"/> <Link from="node_Smaller_1" output="OUTPUT" to="node_AND_1" input="INPUT1"/> <Link from="node_Constant_2" output="VALUE" to="node_Smaller_1" input="INPUT2"/> <Link from="node_Smaller_2" output="OUTPUT" to="node_AND_1" input="INPUT2"/> <Link from="node_AND_2" output="OUTPUT" to="node_IF_1" input="COND"/> <Link from="node_Greater_1" output="OUTPUT" to="node_AND_2" input="INPUT1"/> <Link from="node_NOP_3" output="OUTPUT" to="node_Greater_1" input="INPUT1"/> <Link from="node_Constant_3" output="VALUE" to="node_Greater_1" input="INPUT2"/> <Link from="node_IF_2" output="OUTPUT" to="node_IF_1" input="ELSE"/> <Link from="node_Greater_1" output="OUTPUT" to="node_IF_2" input="COND"/> <Link from="node_Constant_6" output="VALUE" to="node_IF_2" input="THEN"/> <Link from="node_NOP_1" output="OUTPUT" to="node_ABS_1" input="INPUT"/> <Link from="node_ABS_1" output="OUTPUT" to="node_Smaller_1" input="INPUT1"/> <Link from="node_NOP_2" output="OUTPUT" to="node_ABS_2" input="INPUT"/> <Link from="node_Constant_2" output="VALUE" to="node_Smaller_2" input="INPUT2">-1149 -94 -1149 -36 -1049.5 -34.5 </Link> <Link from="node_ABS_2" output="OUTPUT" to="node_Smaller_2" input="INPUT1"/> <Link from="node_AND_1" output="OUTPUT" to="node_AND_2" input="INPUT2"/> <Link from="node_Constant_4" output="VALUE" to="node_Mul_1" input="INPUT1"/> <Link from="node_Mul_1" output="OUTPUT" to="node_IF_1" input="THEN"/> <Link from="node_NOP_3" output="OUTPUT" to="node_Mul_1" input="INPUT2">-1283 -198 -751 -50 -575 -50.5 </Link> <Link from="node_Constant_5" output="VALUE" to="node_IF_2" input="ELSE"/> <NetInput name="DELTA_X" node="node_NOP_1" terminal="INPUT" object_type="any" description="The input"/> <NetInput name="DELTA_Y" node="node_NOP_2" terminal="INPUT" object_type="any" description="The input"/> <NetInput name="BOUNDARY" node="node_NOP_3" terminal="INPUT" object_type="any" description="The input"/> <NetOutput name="REL_ZOOM" node="node_IF_1" terminal="OUTPUT" object_type="any" description="The object from THEN or ELSE depending on COND"/> <Note x="0" y="0" visible="0" text="Created with FlowDesigner 0.8.1"/> </Network> <Network type="subnet" name="ABS"> <Node name="node_IF_1" type="IF" x="-241.000000" y="-18.000000"> <Parameter name="PULL_ANYWAY" type="bool" value="" description="If true, the IF statement pulls also on the branch not taken"/> </Node> <Node name="node_Mul_1" type="Mul" x="-397.000000" y="-19.000000"/> <Node name="node_Constant_1" type="Constant" x="-603.000000" y="-11.000000"> <Parameter name="VALUE" type="float" value="-1" description="The value"/> </Node> <Node name="node_NOP_1" type="NOP" x="-911.000000" y="-109.000000"/> <Node name="node_Smaller_1" type="Smaller" x="-389.000000" y="-100.000000"/> <Node name="node_Constant_2" type="Constant" x="-604.000000" y="-91.000000"> <Parameter name="VALUE" type="float" value="0" description="The value"/> </Node> <Link from="node_Constant_1" output="VALUE" to="node_Mul_1" input="INPUT2"/> <Link from="node_Smaller_1" output="OUTPUT" to="node_IF_1" input="COND"/> <Link from="node_NOP_1" output="OUTPUT" to="node_Smaller_1" input="INPUT1"/> <Link from="node_Constant_2" output="VALUE" to="node_Smaller_1" input="INPUT2"/> <Link from="node_Mul_1" output="OUTPUT" to="node_IF_1" input="THEN"/> <Link from="node_NOP_1" output="OUTPUT" to="node_Mul_1" input="INPUT1"/> <Link from="node_NOP_1" output="OUTPUT" to="node_IF_1" input="ELSE">-892 -109 -686 161 -494 161 -296 -3 </Link> <NetInput name="INPUT" node="node_NOP_1" terminal="INPUT" object_type="any" description="The input"/> <NetOutput name="OUTPUT" node="node_IF_1" terminal="OUTPUT" object_type="any" description="The object from THEN or ELSE depending on COND"/> <Note x="0" y="0" visible="0" text="Created with FlowDesigner 0.8.1"/> </Network> <Network type="subnet" name="SENTENCE_READER"> <Node name="node_Components_1" type="Components" x="-438.000000" y="298.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_NewAccumulator_1" type="NewAccumulator" x="-221.000000" y="330.000000"/> <Node name="node_SymbolCounter_1" type="SymbolCounter" x="-289.000000" y="386.000000"> <Parameter name="CHANNEL" type="int" value="1" description=""/> <Parameter name="DEPTH" type="int" value="2" description=""/> </Node> <Node name="node_STRING_EXTRACTOR_1" type="STRING_EXTRACTOR" x="86.000000" y="321.000000"> <Parameter name="DOWHILE" type="bool" value="" description="No description available"/> </Node> <Node name="node_NOP_1" type="NOP" x="-1262.000000" y="234.000000"/> <Node name="node_Binarize_1" type="Binarize" x="-964.000000" y="227.000000"/> <Node name="node_FIND_THRESHOLD_1" type="FIND_THRESHOLD" x="-1160.000000" y="185.000000"/> <Node name="node_ExtractSentence_v2_1" type="ExtractSentence_v2" x="440.000000" y="329.000000"> <Parameter name="VERTICAL_TOLERANCE" type="float" value="0.5" description=""/> <Parameter name="HORIZONTAL_TOLERANCE" type="float" value="0.5" description=""/> </Node> <Node name="node_ImageProbe_1" type="ImageProbe" x="-755.000000" y="292.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"/> <Parameter name="BREAK_AT" type="int" value="" description="No description available"/> <Parameter name="SHOW" type="bool" value="true" description="No description available"/> <Parameter name="SKIP" type="int" value="" description="No description available"/> </Node> <Node name="node_NilObject_1" type="NilObject" x="-974.000000" y="300.000000"/> <Link from="node_Components_1" output="BLOBS" to="node_SymbolCounter_1" input="DATA"/> <Link from="node_NewAccumulator_1" output="OUTPUT" to="node_STRING_EXTRACTOR_1" input="ACCUM"/> <Link from="node_Components_1" output="BLOBS" to="node_STRING_EXTRACTOR_1" input="DATA"/> <Link from="node_FIND_THRESHOLD_1" output="THRESHOLD" to="node_Binarize_1" input="THRESHOLD"/> <Link from="node_NOP_1" output="OUTPUT" to="node_Binarize_1" input="IMAGE_IN"/> <Link from="node_NOP_1" output="OUTPUT" to="node_FIND_THRESHOLD_1" input="IMAGE_IN"/> <Link from="node_STRING_EXTRACTOR_1" output="ACCUM_OUT" to="node_ExtractSentence_v2_1" input="SYMBOL_LIST"/> <Link from="node_SymbolCounter_1" output="COUNT" to="node_STRING_EXTRACTOR_1" input="SYMBOL_COUNT"/> <Link from="node_ImageProbe_1" output="OUTPUT" to="node_Components_1" input="IMAGE"/> <Link from="node_Binarize_1" output="IMAGE_OUT" to="node_ImageProbe_1" input="INPUT"/> <Link from="node_NilObject_1" output="VALUE" to="node_ImageProbe_1" input="SAVE_FILENAME"/> <NetInput name="IMAGE_IN" node="node_NOP_1" terminal="INPUT" object_type="any" description="No description available"/> <NetInput name="BLANC_LOOKUP" node="node_Components_1" terminal="LOOKUP" object_type="any" description="No description available"/> <NetInput name="NNET" node="node_STRING_EXTRACTOR_1" terminal="NNET" object_type="any" description="No description available"/> <NetInput name="DICT" node="node_ExtractSentence_v2_1" terminal="DICT" object_type="any" description="No description available"/> <NetOutput name="SENTENCE" node="node_ExtractSentence_v2_1" terminal="SENTENCE" object_type="string" description="A string corresponding to the sentence read"/> <NetOutput name="ORIGINAL_TEXT" node="node_ExtractSentence_v2_1" terminal="ORIGINAL_TEXT" object_type="string" description="Original Text one letter at a time."/> </Network> <Network type="subnet" name="EXTRA_INFO"> <Node name="node_Div_1" type="Div" x="-212.000000" y="133.000000"/> <Node name="node_Concatenate_1" type="Concatenate" x="196.000000" y="143.000000"/> <Node name="node_Div_2" type="Div" x="-211.000000" y="172.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="-741.000000" y="154.000000"/> <Node name="node_RectAnalyser_1" type="RectAnalyser" x="-664.000000" y="155.000000"/> <Node name="node_ToFloat_1" type="ToFloat" x="-365.000000" y="104.000000"/> <Node name="node_ToFloat_2" type="ToFloat" x="-365.000000" y="139.000000"/> <Node name="node_ToFloat_3" type="ToFloat" x="-366.000000" y="170.000000"/> <Node name="node_ToFloat_4" type="ToFloat" x="-364.000000" y="201.000000"/> <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_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_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"/> <Link from="node_ToFloat_1" output="OUTPUT" to="node_Div_1" input="NUM"/> <Link from="node_RectAnalyser_1" output="HEIGHT" to="node_ToFloat_1" input="INPUT"/> <Link from="node_ToFloat_1" output="OUTPUT" to="node_Div_3" input="DEN"/> <Link from="node_RectAnalyser_1" output="WIDTH" to="node_ToFloat_2" input="INPUT"/> <Link from="node_ToFloat_2" output="OUTPUT" to="node_Div_1" input="DEN"/> <Link from="node_ToFloat_2" output="OUTPUT" to="node_Div_2" input="DEN"/> <Link from="node_RectAnalyser_1" output="X_RELATIVE_CENTER_OF_GRAVITY" to="node_ToFloat_3" input="INPUT"/> <Link from="node_ToFloat_3" output="OUTPUT" to="node_Div_2" input="NUM"/> <Link from="node_RectAnalyser_1" output="Y_RELATIVE_CENTER_OF_GRAVITY" to="node_ToFloat_4" input="INPUT"/> <Link from="node_ToFloat_4" output="OUTPUT" to="node_Div_3" input="NUM"/> <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="SYMBOL_EXTRACTOR"> <Node name="node_NNetExec_1" type="NNetExec" x="-447.000000" y="141.000000"> <Parameter name="OUTPUTLENGTH" type="int" value="36" description=""/> </Node> <Node name="node_SymbolExtractor_1" type="SymbolExtractor" x="-990.000000" y="115.000000"> <Parameter name="CHANNEL" type="int" value="1" description=""/> </Node> <Node name="node_Scale_1" type="Scale" x="-787.000000" y="114.000000"> <Parameter name="WIDTH" type="int" value="13" description=""/> <Parameter name="HEIGHT" type="int" value="13" description=""/> <Parameter name="DEBUG" type="int" value="0" description=""/> </Node> <Node name="node_DCVector_1" type="DCVector" x="-48.000000" y="220.000000"> <Parameter name="LENGTH" type="int" value="1" description=""/> <Parameter name="VALUE" type="float" value="-2" description=""/> </Node> <Node name="node_VectorSetIndex_1" type="VectorSetIndex" x="100.000000" y="236.000000"/> <Node name="node_Constant_1" type="Constant" x="-112.000000" y="251.000000"> <Parameter name="VALUE" type="int" value="0" description=""/> </Node> <Node name="node_RectBoundaries_1" type="RectBoundaries" x="-450.000000" y="21.000000"/> <Node name="node_Concatenate_1" type="Concatenate" x="406.000000" y="127.000000"/> <Node name="node_EXTRA_INFO_1" type="EXTRA_INFO" x="-804.000000" y="140.000000"/> <Node name="node_Concatenate_2" type="Concatenate" x="-624.000000" y="132.000000"/> <Node name="node_NewSymbolIdentify_1" type="NewSymbolIdentify" x="-308.000000" y="217.000000"> <Parameter name="THRESHOLD" type="float" value="0.80" description=""/> </Node> <Node name="node_Concat_1" type="Concat" x="-208.000000" y="134.000000"/> <Node name="node_ToFloat_1" type="ToFloat" x="-189.000000" y="215.000000"/> <Link from="node_Concatenate_2" output="OUTPUT" to="node_NNetExec_1" input="INPUT"/> <Link from="node_SymbolExtractor_1" output="SYMBOL" to="node_Scale_1" input="CRECT"/> <Link from="node_DCVector_1" output="OUTPUT" to="node_VectorSetIndex_1" input="VECTOR"/> <Link from="node_Constant_1" output="VALUE" to="node_VectorSetIndex_1" input="INDEX"/> <Link from="node_SymbolExtractor_1" output="SYMBOL" to="node_RectBoundaries_1" input="CRECT">-943.5 115 -644 22 -493 21 </Link> <Link from="node_VectorSetIndex_1" output="OUTPUT" to="node_Concatenate_1" input="INPUT1">143 236 267 238 268 121 325.5 119.5 </Link> <Link from="node_SymbolExtractor_1" output="SYMBOL" to="node_EXTRA_INFO_1" input="INPUT"/> <Link from="node_Scale_1" output="OUTPUT" to="node_Concatenate_2" input="INPUT1"/> <Link from="node_EXTRA_INFO_1" output="OUTPUT" to="node_Concatenate_2" input="INPUT2"/> <Link from="node_RectBoundaries_1" output="OUTPUT" to="node_Concat_1" input="INPUT1"/> <Link from="node_NNetExec_1" output="OUTPUT" to="node_Concat_1" input="INPUT2"/> <Link from="node_Concat_1" output="OUTPUT" to="node_Concatenate_1" input="INPUT2"/> <Link from="node_NNetExec_1" output="OUTPUT" to="node_NewSymbolIdentify_1" input="INPUT"/> <Link from="node_ToFloat_1" output="OUTPUT" to="node_VectorSetIndex_1" input="VALUE">-168 216 -153 235 10 236 </Link> <Link from="node_NewSymbolIdentify_1" output="SYMBOL_ID" to="node_ToFloat_1" input="INPUT"/> <NetInput name="DATA" node="node_SymbolExtractor_1" terminal="DATA" object_type="any" description="No description available"/> <NetInput name="INDEX" node="node_SymbolExtractor_1" terminal="INDEX" object_type="any" description="No description available"/> <NetOutput name="SYMBOL_VECTOR" node="node_Concatenate_1" terminal="OUTPUT" object_type="any" description="No description available"/> <NetInput name="NNET" node="node_NNetExec_1" terminal="NNET" object_type="any" description="No description available"/> </Network> <Network type="iterator" name="STRING_EXTRACTOR"> <Node name="node_Accumulate_1" type="Accumulate" x="330.000000" y="112.000000"/> <Node name="node_IF_1" type="IF" x="36.000000" y="31.000000"> <Parameter name="PULL_ANYWAY" type="bool" value="" description=""/> </Node> <Node name="node_Constant_1" type="Constant" x="-95.000000" y="30.000000"> <Parameter name="VALUE" type="bool" value="true" description=""/> </Node> <Node name="node_Constant_2" type="Constant" x="-168.000000" y="46.000000"> <Parameter name="VALUE" type="bool" value="false" description=""/> </Node> <Node name="node_Smaller_1" type="Smaller" x="-236.000000" y="16.000000"/> <Node name="node_IterCount_1" type="IterCount" x="-441.000000" y="8.000000"/> <Node name="node_SYMBOL_EXTRACTOR_1" type="SYMBOL_EXTRACTOR" x="-110.000000" y="120.000000"/> <Link from="node_Smaller_1" output="OUTPUT" to="node_IF_1" input="COND"/> <Link from="node_Constant_1" output="VALUE" to="node_IF_1" input="THEN"/> <Link from="node_Constant_2" output="VALUE" to="node_IF_1" input="ELSE"/> <Link from="node_IterCount_1" output="OUTPUT" to="node_Smaller_1" input="INPUT1">-410 8 -330 9 -307 8.5 </Link> <Link from="node_IterCount_1" output="OUTPUT" to="node_SYMBOL_EXTRACTOR_1" input="INDEX">-412.5 8 -379 119 -208.5 120 </Link> <Link from="node_SYMBOL_EXTRACTOR_1" output="SYMBOL_VECTOR" to="node_Accumulate_1" input="INPUT"/> <NetInput name="DATA" node="node_SYMBOL_EXTRACTOR_1" terminal="DATA" object_type="any" description="No description available"/> <NetInput name="NNET" node="node_SYMBOL_EXTRACTOR_1" terminal="NNET" object_type="any" description="No description available"/> <NetInput name="ACCUM" node="node_Accumulate_1" terminal="ACCUM" object_type="any" description="No description available"/> <NetOutput name="ACCUM_OUT" node="node_Accumulate_1" terminal="OUTPUT" object_type="any" description="No description available"/> <NetInput name="SYMBOL_COUNT" node="node_Smaller_1" terminal="INPUT2" object_type="any" description="No description available"/> <NetCondition name="CONDITION" node="node_IF_1" terminal="OUTPUT"/> </Network> <Network type="subnet" name="FIND_THRESHOLD"> <Node name="node_StatIntensityAnalyser_1" type="StatIntensityAnalyser" x="-257.000000" y="-292.000000"> <Parameter name="FRACTION_ANALYSED" type="float" value="0.1" description=""/> </Node> <Node name="node_Add_1" type="Add" x="71.000000" y="-290.000000"/> <Node name="node_Div_1" type="Div" x="247.000000" y="-283.000000"/> <Node name="node_Constant_1" type="Constant" x="57.000000" y="-245.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="MULTI_SIGN_TRACKING"> <Node name="node_MultiSignTracking_1" type="MultiSignTracking" x="140.000000" y="24.000000"> <Parameter name="MIN_WIDTH" type="int" value="25" description="minimum width to obtain before we are ready for recognition."/> <Parameter name="MIN_HEIGHT" type="int" value="35" description="minimum height to obtain before we are ready for recognition."/> <Parameter name="FOREGROUND_COLOR_ID" type="int" value="1" description="The color number being tracked."/> <Parameter name="BACKGROUND_COLOR_ID" type="int" value="0" description="The color number being tracked."/> </Node> <Node name="node_Constant_1" type="Constant" x="-101.000000" y="15.000000"> <Parameter name="VALUE" type="bool" value="true" description="The value"/> </Node> <Node name="node_NOP_1" type="NOP" x="498.000000" y="23.000000"/> <Node name="node_TextProbe_1" type="TextProbe" x="411.000000" y="24.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="COMPONENTS" description="Name (title) of the probe"/> </Node> <Link from="node_Constant_1" output="VALUE" to="node_MultiSignTracking_1" input="ACTIVATED"/> <Link from="node_TextProbe_1" output="OUTPUT" to="node_NOP_1" input="INPUT"/> <Link from="node_MultiSignTracking_1" output="COMPONENTS" to="node_TextProbe_1" input="INPUT"/> <NetInput name="COMPONENTS" node="node_MultiSignTracking_1" terminal="COMPONENTS" object_type="ComponentsData" description="The components from the image."/> <NetOutput name="DELTA_X" node="node_MultiSignTracking_1" terminal="DELTA_X" object_type="float" description="The difference between the center of the image ant the biggest blob (x)."/> <NetOutput name="DELTA_Y" node="node_MultiSignTracking_1" terminal="DELTA_Y" object_type="float" description="The difference between the center of the image ant the biggest blob (y)."/> <NetOutput name="BOUNDARY" node="node_MultiSignTracking_1" terminal="BOUNDARY" object_type="float" description="The minimum size (in pixel) around the blob in the image."/> <NetOutput name="COMPONENTS" node="node_NOP_1" terminal="OUTPUT" object_type="any" description="The output = The input"/> <Note x="0" y="0" visible="0" text="Created with FlowDesigner 0.8.1"/> </Network> <Network type="subnet" name="ZOOM_FACTOR"> <Node name="node_Div_1" type="Div" x="-132.000000" y="147.000000"/> <Node name="node_Constant_1" type="Constant" x="-244.000000" y="156.000000"> <Parameter name="VALUE" type="float" value="683" description="The value"/> </Node> <Node name="node_Add_1" type="Add" x="-24.000000" y="139.000000"/> <Node name="node_Constant_2" type="Constant" x="-191.000000" y="77.000000"> <Parameter name="VALUE" type="float" value="1.0" description="The value"/> </Node> <Node name="node_TextProbe_1" type="TextProbe" x="75.000000" y="139.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="ZOOM_FACTOR" description="Name (title) of the probe"/> </Node> <Node name="node_TextProbe_2" type="TextProbe" x="-381.000000" y="140.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="ZOOM_POSITION" description="Name (title) of the probe"/> </Node> <Node name="node_NOP_1" type="NOP" x="-486.000000" y="140.000000"/> <Node name="node_NOP_2" type="NOP" x="191.000000" y="139.000000"/> <Link from="node_TextProbe_2" output="OUTPUT" to="node_Div_1" input="NUM"/> <Link from="node_Constant_1" output="VALUE" to="node_Div_1" input="DEN"/> <Link from="node_Constant_2" output="VALUE" to="node_Add_1" input="INPUT1"/> <Link from="node_Div_1" output="OUTPUT" to="node_Add_1" input="INPUT2"/> <Link from="node_Add_1" output="OUTPUT" to="node_TextProbe_1" input="INPUT"/> <Link from="node_NOP_1" output="OUTPUT" to="node_TextProbe_2" input="INPUT"/> <Link from="node_TextProbe_1" output="OUTPUT" to="node_NOP_2" input="INPUT"/> <NetInput name="ABS_ZOOM_VALUE" node="node_NOP_1" terminal="INPUT" object_type="any" description="The input"/> <NetOutput name="ZOOM_FACTOR" node="node_NOP_2" terminal="OUTPUT" object_type="any" description="The output = The input"/> <Note x="0" y="0" visible="0" text="Created with FlowDesigner 0.8.1"/> </Network> <Network type="subnet" name="PROCESS_SEGMENTS"> <Node name="node_SENTENCE_READER_1" type="SENTENCE_READER" x="-538.000000" y="-189.000000"/> <Node name="node_IF_1" type="IF" x="-175.000000" y="-233.000000"> <Parameter name="PULL_ANYWAY" type="bool" value="" description="If true, the IF statement pulls also on the branch not taken"/> </Node> <Node name="node_IF_2" type="IF" x="-175.000000" y="-131.000000"> <Parameter name="PULL_ANYWAY" type="bool" value="" description="If true, the IF statement pulls also on the branch not taken"/> </Node> <Node name="node_isNil_1" type="isNil" x="-521.000000" y="-279.000000"/> <Node name="node_NOT_3" type="NOT" x="-415.000000" y="-278.000000"/> <Node name="node_NilObject_1" type="NilObject" x="-333.000000" y="-187.000000"/> <Node name="node_NilObject_2" type="NilObject" x="-339.000000" y="-86.000000"/> <Node name="node_NOP_1" type="NOP" x="-706.000000" y="-279.000000"/> <Node name="node_TextProbe_1" type="TextProbe" x="-315.000000" y="-235.000000"> <Parameter name="BREAK_AT" type="int" value="" 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="EXTRACTED_TEXT" description="Name (title) of the probe"/> </Node> <Link from="node_SENTENCE_READER_1" output="ORIGINAL_TEXT" to="node_IF_2" input="THEN"/> <Link from="node_isNil_1" output="OUTPUT" to="node_NOT_3" input="INPUT"/> <Link from="node_NOT_3" output="OUTPUT" to="node_IF_1" input="COND"/> <Link from="node_NOT_3" output="OUTPUT" to="node_IF_2" input="COND"/> <Link from="node_NilObject_1" output="VALUE" to="node_IF_1" input="ELSE"/> <Link from="node_NilObject_2" output="VALUE" to="node_IF_2" input="ELSE"/> <Link from="node_NOP_1" output="OUTPUT" to="node_isNil_1" input="INPUT"/> <Link from="node_TextProbe_1" output="OUTPUT" to="node_IF_1" input="THEN"/> <Link from="node_SENTENCE_READER_1" output="SENTENCE" to="node_TextProbe_1" input="INPUT"/> <NetOutput name="SENTENCE" node="node_IF_1" terminal="OUTPUT" object_type="any" description="The object from THEN or ELSE depending on COND"/> <NetOutput name="ORIGINAL_TEXT" node="node_IF_2" terminal="OUTPUT" object_type="any" description="The object from THEN or ELSE depending on COND"/> <NetInput name="IMAGE" node="node_SENTENCE_READER_1" terminal="IMAGE_IN" object_type="" description="No description available"/> <NetInput name="LOOKUP" node="node_SENTENCE_READER_1" terminal="BLANC_LOOKUP" object_type="" description="No description available"/> <NetInput name="NNET" node="node_SENTENCE_READER_1" terminal="NNET" object_type="" description="No description available"/> <NetInput name="DICT" node="node_SENTENCE_READER_1" terminal="DICT" object_type="" description="No description available"/> <NetInput name="SYMBOLS_COMPONENTS" node="node_NOP_1" terminal="INPUT" object_type="any" description="The input"/> <Note x="0" y="0" visible="0" text="Created with FlowDesigner 0.8.1"/> </Network> </Document> --- NEW FILE: trainTemplates.n --- #!/usr/bin/env batchflow <?xml version="1.0"?> <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="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="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)"/> <Parameter name="RAND_SEED" type="int" value="342543" description="Sets to random seed to RAND_SEED before initialization"/> </Node> <Node name="node_TRAIN_LOOP_1" type="TRAIN_LOOP" x="-1733.000000" y="-1.000000"> <Parameter name="MAX_EPOCHS" type="int" value="1" description="The value"/> <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"/> </Node> <Link from="node_LoadFile_1" output="OUTPUT" to="node_NNetInit_1" input="TRAIN_IN"/> <Link from="node_LoadFile_2" output="OUTPUT" to="node_NNetInit_1" input="TRAIN_OUT"/> <Link from="node_NNetInit_1" output="OUTPUT" to="node_TRAIN_LOOP_1" input="INITIALIZED_NNET"/> <Link from="node_LoadFile_1" output="OUTPUT" to="node_TRAIN_LOOP_1" input="TRAIN_IN"/> <Link from="node_LoadFile_2" output="OUTPUT" to="node_TRAIN_LOOP_1" input="TRAIN_OUT"/> <Link from="node_LoadFile_1" output="OUTPUT" to="node_Length_1" input="INPUT"/> <Link from="node_LoadFile_2" output="OUTPUT" to="node_Length_2" input="INPUT"/> <Link from="node_TRAIN_LOOP_1" output="NNET" to="node_SaveAs_1" input="INPUT"/> <NetOutput name="TRAIN_IN_LENGTH" node="node_Length_1" terminal="OUTPUT" object_type="int" description="The length of the vector"/> <NetOutput name="TRAIN_OUT_LENGTH" node="node_Length_2" terminal="OUTPUT" object_type="int" description="The length of the vector"/> <NetOutput name="OUTPUT" node="node_SaveAs_1" terminal="OUTPUT" object_type="any" description="No description available"/> </Network> <Network type="iterator" name="TRAIN_LOOP"> <Node name="node_NNetTrainDBD_1" type="NNetTrainDBD" x="-436.000000" y="-177.000000"> <Parameter name="MAX_EPOCH" type="int" value="2000" description="Number of training epoch (default 2000)"/> <Parameter name="LEARN_RATE" type="float" value="0.000001" description="Initial learning rate (default 0.000001)"/> <Parameter name="INCREASE" type="float" value="1.04" description="Learning rate increment (> 1.0) factor (default 1.04)"/> <Parameter name="DECREASE" type="float" value="0.6" description="Learning rate decrement (< 1.0) factor (default 0.6)"/> <Parameter name="NB_SETS" type="int" value="1" description="Number of batch subsets for accelerated training (default 1)"/> <Parameter name="ALLOC_CHUNK" type="bool" value="false" description="If true, a big vector is allocated to store all the inputs (default false)"/> <Parameter name="RPROP" type="bool" value="false" description="If true, use the RProp variant of delta-bar-delta (default false)"/> </Node> <Node name="node_Smaller_1" type="Smaller" ... [truncated message content] |