From: Dominic L. <ma...@us...> - 2005-06-08 14:48:30
|
Update of /cvsroot/robotflow/RobotFlow/demo/SymbolRecog/n-files In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12279 Modified Files: SymbolTracking.n colorTrain_SNCRZ30.n Added Files: Recog.n Log Message: Stand alone recog Index: colorTrain_SNCRZ30.n =================================================================== RCS file: /cvsroot/robotflow/RobotFlow/demo/SymbolRecog/n-files/colorTrain_SNCRZ30.n,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** colorTrain_SNCRZ30.n 4 Nov 2004 18:34:43 -0000 1.2 --- colorTrain_SNCRZ30.n 8 Jun 2005 14:48:02 -0000 1.3 *************** *** 6,14 **** <Parameter name="DOWHILE" type="bool" value="" description="No description available"/> </Node> - <NetOutput name="ZOOM_POSITION" node="node_LOOP0_1" terminal="ZOOM_POSITION" object_type="" description="Returns the current zoom position of the Camera"/> <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="COMPONENTS_IMAGE" node="node_LOOP0_1" terminal="COMPONENTS_IMAGE" object_type="any" description="No description available"/> <Note x="-576" y="485" visible="1" text="MAIN network is an infinite loop."/> </Network> --- 6,14 ---- <Parameter name="DOWHILE" type="bool" value="" description="No description available"/> </Node> <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="COMPONENTS_IMAGE" node="node_LOOP0_1" terminal="COMPONENTS_IMAGE" object_type="any" description="No description available"/> + <NetOutput name="ZOOM_FACTOR" node="node_LOOP0_1" terminal="ZOOM_FACTOR" object_type="any" description="No description available"/> <Note x="-576" y="485" visible="1" text="MAIN network is an infinite loop."/> </Network> *************** *** 94,97 **** --- 94,104 ---- <Node name="node_RGB242RGB15_1" type="RGB242RGB15" x="-343.000000" y="208.000000"/> <Node name="node_NilObject_1" type="NilObject" x="-874.000000" y="270.000000"/> + <Node name="node_ZOOM_FACTOR_1" type="ZOOM_FACTOR" x="-268.000000" y="112.000000"/> + <Node name="node_TextProbe_1" type="TextProbe" x="-135.000000" y="111.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="" description="Name (title) of the probe"/> + </Node> <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"/> *************** *** 102,114 **** <Link from="node_PTZControl_1" output="ABS_ZOOM" to="node_SNCRZ30_1" input="ZOOM_ABS_POS"/> <Link from="node_NilObject_1" output="VALUE" to="node_SNCRZ30_1" input="ZOOM_REL_POS"/> <NetCondition name="CONDITION" node="node_Constant_1" terminal="VALUE"/> - <NetOutput name="ZOOM_POSITION" node="node_SNCRZ30_1" terminal="ZOOM_POSITION" object_type="int" description="Returns the current zoom position of the Camera"/> <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="COMPONENTS_IMAGE" node="node_SUBNET0_1" terminal="COMPONENTS_IMAGE" object_type="" description="No description available"/> <Note x="-927" y="445" visible="1" text="A Graphical User Interface will be displayed with PTZ control"/> <Note x="-527" y="444" visible="1" text="Sony SNC-RZ30 driver"/> <Note x="-83" y="442" visible="1" text="Color training GUI will be displayed."/> </Network> </Document> --- 109,143 ---- <Link from="node_PTZControl_1" output="ABS_ZOOM" to="node_SNCRZ30_1" input="ZOOM_ABS_POS"/> <Link from="node_NilObject_1" output="VALUE" to="node_SNCRZ30_1" input="ZOOM_REL_POS"/> + <Link from="node_SNCRZ30_1" output="ZOOM_POSITION" to="node_ZOOM_FACTOR_1" input="ABS_ZOOM"/> + <Link from="node_ZOOM_FACTOR_1" output="ZOOM_FACTOR" to="node_TextProbe_1" input="INPUT"/> <NetCondition name="CONDITION" node="node_Constant_1" terminal="VALUE"/> <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="COMPONENTS_IMAGE" node="node_SUBNET0_1" terminal="COMPONENTS_IMAGE" object_type="" description="No description available"/> + <NetOutput name="ZOOM_FACTOR" node="node_TextProbe_1" terminal="OUTPUT" object_type="any" description="Pass through"/> <Note x="-927" y="445" visible="1" text="A Graphical User Interface will be displayed with PTZ control"/> <Note x="-527" y="444" visible="1" text="Sony SNC-RZ30 driver"/> <Note x="-83" y="442" visible="1" text="Color training GUI will be displayed."/> </Network> + <Network type="subnet" name="ZOOM_FACTOR"> + <Node name="node_Div_1" type="Div" x="-122.000000" y="157.000000"/> + <Node name="node_Constant_1" type="Constant" x="-234.000000" y="166.000000"> + <Parameter name="VALUE" type="float" value="750" description="The value"/> + </Node> + <Node name="node_Add_1" type="Add" x="-14.000000" y="149.000000"/> + <Node name="node_Constant_2" type="Constant" x="-170.000000" y="97.000000"> + <Parameter name="VALUE" type="float" value="1.0" description="The value"/> + </Node> + <Node name="node_NOP_1" type="NOP" x="-476.000000" y="150.000000"/> + <Node name="node_NOP_2" type="NOP" x="201.000000" y="149.000000"/> + <Link from="node_NOP_1" 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_NOP_2" input="INPUT"/> + <NetInput name="ABS_ZOOM" 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.9.0"/> + </Network> </Document> --- NEW FILE: Recog.n --- #!/usr/bin/env batchflow <?xml version="1.0"?> <Document> <Network type="subnet" name="MAIN"> <Node name="node_MAIN_LOOP_1" type="MAIN_LOOP" x="-304.000000" y="-116.000000"> <Parameter name="DOWHILE" type="bool" value="" description="No description available"/> </Node> <Node name="node_LoadFile_1" type="LoadFile" x="-695.000000" y="-97.000000"> <Parameter name="FILENAME" type="string" value="../color_lookup/black_white.data" description="No description available"/> </Node> <Node name="node_LoadFile_2" type="LoadFile" x="-694.000000" y="-123.000000"> <Parameter name="FILENAME" type="string" value="../dict/fox.dict" description="No description available"/> </Node> <Node name="node_LoadFile_3" type="LoadFile" x="-691.000000" y="-152.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_MAIN_LOOP_1" input="BLACK_WHITE_LOOKUP"/> <Link from="node_LoadFile_2" output="OUTPUT" to="node_MAIN_LOOP_1" input="DICT"/> <Link from="node_LoadFile_3" output="OUTPUT" to="node_MAIN_LOOP_1" input="NNET"/> <NetOutput name="SENTENCE" node="node_MAIN_LOOP_1" terminal="SENTENCE" object_type="" description="Pass through"/> <Note x="0" y="0" visible="0" text="Created with FlowDesigner 0.9.0"/> </Network> <Network type="iterator" name="MAIN_LOOP"> <Node name="node_READv2_1" type="READv2" x="-51.000000" y="162.000000"> <Parameter name="MIN_SYMBOL_HEIGHT" type="int" value="30" description="No description available"/> <Parameter name="MIN_SYMBOL_WIDTH" type="int" value="15" description="No description available"/> </Node> <Node name="node_SNCRZ30_1" type="SNCRZ30" x="-1451.000000" y="160.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="The HOST where to connect (camera IP or network name)"/> <Parameter name="CONTINUOUS" type="bool" value="true" description="Continuously grab images "/> <Parameter name="TRANSMIT_SPEED" type="int" value="0 " description="transfer rate FPS [0=FASTEST]"/> <Parameter name="WAIT_REPLY" type="bool" value="false" description="Wait for camera reply on commands"/> <Parameter name="INQUIRY_POSITION" type="bool" value="false" description="Inquiry position of the pan,tilt,zoom from the device"/> </Node> <Node name="node_NilObject_1" type="NilObject" x="-1709.000000" y="122.000000"/> <Node name="node_TextProbe_1" type="TextProbe" x="65.000000" y="161.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="SENTENCE" description="Name (title) of the probe"/> </Node> <Node name="node_Constant_2" type="Constant" x="-558.000000" y="140.000000"> <Parameter name="VALUE" type="bool" value="true" description="The value"/> </Node> <Node name="node_Constant_3" type="Constant" x="-810.000000" y="438.000000"> <Parameter name="VALUE" type="bool" value="true" description="The value"/> </Node> <Node name="node_ImageProbeSDL_1" type="ImageProbeSDL" x="-373.000000" y="210.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_Binarize_1" type="Binarize" x="-531.000000" y="209.000000"/> <Node name="node_RGB242RGB15_1" type="RGB242RGB15" x="-1200.000000" y="182.000000"/> <Node name="node_StatIntensityAnalyser_1" type="StatIntensityAnalyser" x="-1035.000000" y="182.000000"> <Parameter name="FRACTION_ANALYSED" type="float" value="0.1" description="Fraction of pixels to analyse (on a 0-1 scale)"/> </Node> <Node name="node_Add_1" type="Add" x="-749.000000" y="169.000000"/> <Node name="node_Div_1" type="Div" x="-927.000000" y="271.000000"/> <Node name="node_Constant_1" type="Constant" x="-1108.000000" y="386.000000"> <Parameter name="VALUE" type="float" value="2" description="The value"/> </Node> <Link from="node_NilObject_1" output="VALUE" to="node_SNCRZ30_1" input="PAN_ABS_POS"/> <Link from="node_NilObject_1" output="VALUE" to="node_SNCRZ30_1" input="TILT_ABS_POS"/> <Link from="node_NilObject_1" output="VALUE" to="node_SNCRZ30_1" input="PAN_REL_POS"/> <Link from="node_NilObject_1" output="VALUE" to="node_SNCRZ30_1" input="TILT_REL_POS"/> <Link from="node_NilObject_1" output="VALUE" to="node_SNCRZ30_1" input="ZOOM_ABS_POS"/> <Link from="node_NilObject_1" output="VALUE" to="node_SNCRZ30_1" input="ZOOM_REL_POS"/> <Link from="node_READv2_1" output="SENTENCE" to="node_TextProbe_1" input="INPUT"/> <Link from="node_Constant_2" output="VALUE" to="node_READv2_1" input="SIGN_TRACKING_ACTIVATED"/> <Link from="node_ImageProbeSDL_1" output="OUTPUT" to="node_READv2_1" input="RGB15_BINARIZED"/> <Link from="node_Binarize_1" output="IMAGE_OUT" to="node_ImageProbeSDL_1" input="INPUT"/> <Link from="node_SNCRZ30_1" output="IMAGE" to="node_Binarize_1" input="IMAGE_IN">-1306 182.5 -1019 300 -766 301 -644.5 216.5 </Link> <Link from="node_SNCRZ30_1" output="IMAGE" to="node_RGB242RGB15_1" input="RGB24_IMAGE"/> <Link from="node_RGB242RGB15_1" output="RGB15_IMAGE" to="node_StatIntensityAnalyser_1" input="IMAGE_IN"/> <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"/> <Link from="node_Div_1" output="OUTPUT" to="node_Binarize_1" input="THRESHOLD"/> <NetOutput name="SENTENCE" node="node_TextProbe_1" terminal="OUTPUT" object_type="any" description="Pass through"/> <NetInput name="NNET" node="node_READv2_1" terminal="NNET" object_type="any" description="No description available"/> <NetInput name="DICT" node="node_READv2_1" terminal="DICT" object_type="any" description="No description available"/> <NetInput name="BLACK_WHITE_LOOKUP" node="node_READv2_1" terminal="BLACK_WHITE_LOOKUP" object_type="any" description="No description available"/> <NetCondition name="CONDITION" node="node_Constant_3" terminal="VALUE"/> <Note x="0" y="0" visible="0" text="Created with FlowDesigner 0.9.0"/> </Network> </Document> Index: SymbolTracking.n =================================================================== RCS file: /cvsroot/robotflow/RobotFlow/demo/SymbolRecog/n-files/SymbolTracking.n,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** SymbolTracking.n 2 Jan 2005 14:44:01 -0000 1.9 --- SymbolTracking.n 8 Jun 2005 14:48:02 -0000 1.10 *************** *** 28,33 **** <NetOutput name="SENTENCE" node="node_MAIN_LOOP_1" terminal="SENTENCE" object_type="" description="Pass through"/> <NetOutput name="ORIGINAL_TEXT" node="node_MAIN_LOOP_1" terminal="ORIGINAL_TEXT" object_type="" description="Pass through"/> - <NetOutput name="REL_PAN" node="node_MAIN_LOOP_1" terminal="REL_PAN" object_type="" description="The output object = input object"/> - <NetOutput name="REL_TILT" node="node_MAIN_LOOP_1" terminal="REL_TILT" object_type="" description="The output object = input object"/> <NetOutput name="ABS_ZOOM" node="node_MAIN_LOOP_1" terminal="ABS_ZOOM" object_type="" description="The output object = input object"/> <NetOutput name="READING_FLAG" node="node_MAIN_LOOP_1" terminal="READING_FLAG" object_type="any" description="No description available"/> --- 28,31 ---- *************** *** 50,62 **** <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"/> ! <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_Feedback_2" type="Feedback" x="257.000000" y="175.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_Feedback_3" type="Feedback" x="260.000000" y="304.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)"/> --- 48,52 ---- <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_3" type="Feedback" x="628.000000" y="307.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)"/> *************** *** 75,141 **** <Parameter name="PROBE_NAME" type="string" value="ORIGINAL_TEXT" description="Name (title) of the probe"/> </Node> - <Node name="node_NOP_1" type="NOP" x="103.000000" y="169.000000"/> - <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="10" 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="10" 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="10" 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."/> ! <Parameter name="YGAP" type="int" value="3" description="max Y distance between two pixels of the same color blob."/> ! <Parameter name="NUM_COLOR" type="int" value="5" description="Number of color to extract."/> ! <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"/> ! <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_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"/> <Link from="node_NilObject_1" output="VALUE" to="node_SNCRZ30_1" input="PAN_ABS_POS"/> - <Link from="node_NilObject_2" output="VALUE" to="node_Feedback_1" input="BEFORE">-78.5 312 -5.80059e-270 294 167 253.5 </Link> <Link from="node_NilObject_2" output="VALUE" to="node_Feedback_3" input="BEFORE"/> <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_NOP_2" output="OUTPUT" to="node_Feedback_1" input="INPUT"/> ! <Link from="node_SKIP_N_2" output="OUTPUT" to="node_NOP_2" input="INPUT"/> ! <Link from="node_NilObject_2" output="VALUE" to="node_Feedback_2" input="BEFORE"/> ! <Link from="node_NOP_3" output="OUTPUT" to="node_Feedback_3" input="INPUT"/> ! <Link from="node_SKIP_N_3" output="OUTPUT" to="node_NOP_3" input="INPUT"/> ! <Link from="node_READ_1" output="REL_PAN_COMMAND" to="node_SKIP_N_1" input="INPUT"/> ! <Link from="node_READ_1" output="REL_TILT_COMMAND" to="node_SKIP_N_2" input="INPUT"/> ! <Link from="node_READ_1" output="ABS_ZOOM_COMMAND" to="node_SKIP_N_3" input="INPUT"/> ! <Link from="node_NOP_4" output="OUTPUT" to="node_READ_1" input="COLOR_LOOKUP"/> ! <Link from="node_Components_1" output="BLOBS" to="node_ComponentsViewer_1" input="DATA"/> ! <Link from="node_NOP_4" output="OUTPUT" to="node_Components_1" input="LOOKUP"/> ! <Link from="node_RGB242RGB15_1" output="RGB15_IMAGE" to="node_Components_1" input="IMAGE"/> ! <Link from="node_NOP_4" output="OUTPUT" to="node_ComponentsViewer_1" input="LOOKUP"/> ! <Link from="node_ComponentsViewer_1" output="IMAGE" to="node_ImageProbe_1" input="INPUT"/> ! <Link from="node_NilObject_3" output="VALUE" to="node_ImageProbe_1" input="SAVE_FILENAME"/> ! <Link from="node_SKIP_N_1" output="OUTPUT" to="node_NOP_1" input="INPUT"/> <NetCondition name="CONDITION" node="node_Constant_1" terminal="VALUE"/> <NetInput name="BLACK_WHITE_LOOKUP" node="node_READ_1" terminal="BLACK_WHITE_LOOKUP" object_type="any" description="No description available"/> --- 65,110 ---- <Parameter name="PROBE_NAME" type="string" value="ORIGINAL_TEXT" description="Name (title) of the probe"/> </Node> <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_SNCRZ30RS232_1" type="SNCRZ30RS232" x="430.000000" y="202.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="SERIAL_PORT" type="string" value="/dev/ttyUSB0" description="No Description Available"/> </Node> ! <Node name="node_NilObject_4" type="NilObject" x="184.000000" y="156.000000"/> ! <Node name="node_TEST_COMMAND_1" type="TEST_COMMAND" x="144.000000" y="218.000000"/> ! <Node name="node_TEST_COMMAND_2" type="TEST_COMMAND" x="144.000000" y="185.000000"/> ! <Node name="node_TEST_COMMAND_3" type="TEST_COMMAND" x="146.000000" y="250.000000"/> ! <Node name="node_TextProbe_3" type="TextProbe" x="17.000000" y="157.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="REL_PAN" description="Name (title) of the probe"/> </Node> <Link from="node_NilObject_1" output="VALUE" to="node_SNCRZ30_1" input="TILT_ABS_POS"/> <Link from="node_NilObject_1" output="VALUE" to="node_SNCRZ30_1" input="PAN_ABS_POS"/> <Link from="node_NilObject_2" output="VALUE" to="node_Feedback_3" input="BEFORE"/> <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_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_NilObject_1" output="VALUE" to="node_SNCRZ30_1" input="ZOOM_REL_POS"/> ! <Link from="node_NilObject_1" output="VALUE" to="node_SNCRZ30_1" input="PAN_REL_POS"/> ! <Link from="node_NilObject_1" output="VALUE" to="node_SNCRZ30_1" input="TILT_REL_POS"/> ! <Link from="node_NilObject_1" output="VALUE" to="node_SNCRZ30_1" input="ZOOM_ABS_POS"/> ! <Link from="node_NilObject_4" output="VALUE" to="node_SNCRZ30RS232_1" input="PAN_ABS_POS"/> ! <Link from="node_NilObject_4" output="VALUE" to="node_SNCRZ30RS232_1" input="TILT_ABS_POS"/> ! <Link from="node_SNCRZ30RS232_1" output="ZOOM_POSITION" to="node_Feedback_3" input="INPUT"/> ! <Link from="node_Feedback_3" output="DELAY" to="node_READ_1" input="CURRENT_ABS_ZOOM"/> ! <Link from="node_TEST_COMMAND_1" output="OUTPUT" to="node_SNCRZ30RS232_1" input="TILT_REL_POS"/> ! <Link from="node_READ_1" output="REL_TILT_COMMAND" to="node_TEST_COMMAND_1" input="INPUT"/> ! <Link from="node_TEST_COMMAND_2" output="OUTPUT" to="node_SNCRZ30RS232_1" input="PAN_REL_POS"/> ! <Link from="node_TEST_COMMAND_3" output="OUTPUT" to="node_SNCRZ30RS232_1" input="ZOOM"/> ! <Link from="node_READ_1" output="ABS_ZOOM_COMMAND" to="node_TEST_COMMAND_3" input="INPUT"/> ! <Link from="node_TextProbe_3" output="OUTPUT" to="node_TEST_COMMAND_2" input="INPUT"/> ! <Link from="node_READ_1" output="REL_PAN_COMMAND" to="node_TextProbe_3" input="INPUT"/> <NetCondition name="CONDITION" node="node_Constant_1" terminal="VALUE"/> <NetInput name="BLACK_WHITE_LOOKUP" node="node_READ_1" terminal="BLACK_WHITE_LOOKUP" object_type="any" description="No description available"/> *************** *** 145,159 **** <NetOutput name="SENTENCE" node="node_TextProbe_1" terminal="OUTPUT" object_type="any" description="Pass through"/> <NetOutput name="ORIGINAL_TEXT" node="node_TextProbe_2" terminal="OUTPUT" object_type="any" description="Pass through"/> - <NetOutput name="REL_PAN" node="node_Feedback_2" terminal="OUTPUT" object_type="any" description="The output object = input object"/> - <NetOutput name="REL_TILT" node="node_Feedback_1" terminal="OUTPUT" object_type="any" description="The output object = input object"/> <NetOutput name="ABS_ZOOM" node="node_Feedback_3" terminal="OUTPUT" object_type="any" description="The output object = input object"/> <NetOutput name="READING_FLAG" node="node_READ_1" terminal="READING_FLAG" object_type="any" description="No description available"/> ! <NetInput name="COLOR_LOOKUP" node="node_NOP_4" terminal="INPUT" object_type="any" description="The input"/> ! <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"> --- 114,125 ---- <NetOutput name="SENTENCE" node="node_TextProbe_1" terminal="OUTPUT" object_type="any" description="Pass through"/> <NetOutput name="ORIGINAL_TEXT" node="node_TextProbe_2" terminal="OUTPUT" object_type="any" description="Pass through"/> <NetOutput name="ABS_ZOOM" node="node_Feedback_3" terminal="OUTPUT" object_type="any" description="The output object = input object"/> <NetOutput name="READING_FLAG" node="node_READ_1" terminal="READING_FLAG" object_type="any" description="No description available"/> ! <NetOutput name="TILT_POSITION" node="node_SNCRZ30RS232_1" terminal="TILT_POSITION" object_type="int" description="Returns the current tilt position of the Camera"/> ! <NetOutput name="PAN_POSITION" node="node_SNCRZ30RS232_1" terminal="PAN_POSITION" object_type="int" description="Returns the current pan position of the Camera"/> ! <NetInput name="COLOR_LOOKUP" node="node_READ_1" terminal="COLOR_LOOKUP" 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."/> </Network> <Network type="subnet" name="SKIP_N"> *************** *** 181,184 **** --- 147,166 ---- <Note x="0" y="0" visible="0" text="Created with FlowDesigner 0.8.1"/> </Network> + <Network type="subnet" name="TEST_COMMAND"> + <Node name="node_IF_1" type="IF" x="-312.000000" y="-42.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="-460.000000" y="-56.000000"/> + <Node name="node_NOP_1" type="NOP" x="-571.000000" y="-41.000000"/> + <Node name="node_ToInt_1" type="ToInt" x="-459.000000" y="-19.000000"/> + <Link from="node_isNil_1" output="OUTPUT" to="node_IF_1" input="COND"/> + <Link from="node_NOP_1" output="OUTPUT" to="node_IF_1" input="THEN"/> + <Link from="node_ToInt_1" output="OUTPUT" to="node_IF_1" input="ELSE"/> + <Link from="node_NOP_1" output="OUTPUT" to="node_ToInt_1" input="INPUT"/> + <Link from="node_NOP_1" output="OUTPUT" to="node_isNil_1" input="INPUT"/> + <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.9.0"/> + </Network> <Parameter name="BLACK_WHITE_LOOKUP_FILE" type="string" value="../color_lookup/black_white.data"/> <Parameter name="NNET_FILE" type="string" value="../neural_networks/net_172_7_36.nnet"/> |