From: Dominic L. <ma...@us...> - 2004-09-20 19:16:01
|
Update of /cvsroot/robotflow/RobotFlow/Vision/n-files In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12864 Modified Files: READ.n Log Message: Avoid processing when not activated Index: READ.n =================================================================== RCS file: /cvsroot/robotflow/RobotFlow/Vision/n-files/READ.n,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** READ.n 26 Aug 2004 20:13:10 -0000 1.5 --- READ.n 20 Sep 2004 19:15:48 -0000 1.6 *************** *** 4,20 **** <Network type="subnet" name="MAIN"> <Node name="node_LOOP0_1" type="MAIN_PROCESS" x="-3397.000000" y="-618.000000"/> - <NetOutput name="SENTENCE" node="node_LOOP0_1" terminal="SENTENCE" object_type="" description="The object from THEN or ELSE depending on COND"/> - <NetOutput name="ORIGINAL_TEXT" node="node_LOOP0_1" terminal="ORIGINAL_TEXT" object_type="" description="The object from THEN or ELSE depending on COND"/> <NetInput name="BLACK_WHITE_LOOKUP" node="node_LOOP0_1" terminal="BLACK_WHITE_LOOKUP" object_type="" description="No description available"/> <NetInput name="NNET" node="node_LOOP0_1" terminal="NNET" object_type="" description="No description available"/> <NetInput name="DICT" node="node_LOOP0_1" terminal="DICT" object_type="" description="No description available"/> - <NetInput name="SIGN_TRACKING_ACTIVATED" node="node_LOOP0_1" terminal="SIGN_TRACKING_ACTIVATED" object_type="any" description="No description available"/> <NetInput name="COLOR_LOOKUP" node="node_LOOP0_1" terminal="COLOR_LOOKUP" object_type="any" description="No description available"/> <NetInput name="CURRENT_ABS_ZOOM" node="node_LOOP0_1" terminal="CURRENT_ABS_ZOOM" object_type="any" description="The input"/> <NetInput name="RGB15_IMAGE" node="node_LOOP0_1" terminal="RGB15_IMAGE" object_type="any" description="No description available"/> ! <NetOutput name="REL_PAN_COMMAND" node="node_LOOP0_1" terminal="REL_PAN_COMMAND" object_type="any" description="No description available"/> ! <NetOutput name="REL_TILT_COMMAND" node="node_LOOP0_1" terminal="REL_TILT_COMMAND" object_type="any" description="No description available"/> ! <NetOutput name="ABS_ZOOM_COMMAND" node="node_LOOP0_1" terminal="ABS_ZOOM_COMMAND" object_type="any" description="No description available"/> ! <NetOutput name="READING_FLAG" node="node_LOOP0_1" terminal="READING_FLAG" object_type="any" description="No description available"/> <Note x="-3418" y="-384" visible="1" text="The MAIN network will load configuration from the files containing : - black and white color lookup - the neural network to use for recog - The dictionary to use * You can change this configuration by double clicking on the LoadFile blocks"/> </Network> --- 4,20 ---- <Network type="subnet" name="MAIN"> <Node name="node_LOOP0_1" type="MAIN_PROCESS" x="-3397.000000" y="-618.000000"/> <NetInput name="BLACK_WHITE_LOOKUP" node="node_LOOP0_1" terminal="BLACK_WHITE_LOOKUP" object_type="" description="No description available"/> <NetInput name="NNET" node="node_LOOP0_1" terminal="NNET" object_type="" description="No description available"/> <NetInput name="DICT" node="node_LOOP0_1" terminal="DICT" object_type="" description="No description available"/> <NetInput name="COLOR_LOOKUP" node="node_LOOP0_1" terminal="COLOR_LOOKUP" object_type="any" description="No description available"/> <NetInput name="CURRENT_ABS_ZOOM" node="node_LOOP0_1" terminal="CURRENT_ABS_ZOOM" object_type="any" description="The input"/> <NetInput name="RGB15_IMAGE" node="node_LOOP0_1" terminal="RGB15_IMAGE" object_type="any" description="No description available"/> ! <NetInput name="SIGN_TRACKING_ACTIVATED" node="node_LOOP0_1" terminal="SIGN_TRACKING_ACTIVATED" object_type="any" description="The input"/> ! <NetOutput name="REL_PAN_COMMAND" node="node_LOOP0_1" terminal="REL_PAN_COMMAND" object_type="" description="The object from THEN or ELSE depending on COND"/> ! <NetOutput name="REL_TILT_COMMAND" node="node_LOOP0_1" terminal="REL_TILT_COMMAND" object_type="" description="The object from THEN or ELSE depending on COND"/> ! <NetOutput name="ABS_ZOOM_COMMAND" node="node_LOOP0_1" terminal="ABS_ZOOM_COMMAND" object_type="" description="The object from THEN or ELSE depending on COND"/> ! <NetOutput name="SENTENCE" node="node_LOOP0_1" terminal="SENTENCE" object_type="" description="The object from THEN or ELSE depending on COND"/> ! <NetOutput name="ORIGINAL_TEXT" node="node_LOOP0_1" terminal="ORIGINAL_TEXT" object_type="" description="The object from THEN or ELSE depending on COND"/> ! <NetOutput name="READING_FLAG" node="node_LOOP0_1" terminal="READING_FLAG" object_type="" description="The object from THEN or ELSE depending on COND"/> <Note x="-3418" y="-384" visible="1" text="The MAIN network will load configuration from the files containing : - black and white color lookup - the neural network to use for recog - The dictionary to use * You can change this configuration by double clicking on the LoadFile blocks"/> </Network> *************** *** 40,50 **** <Node name="node_NOP_1" type="NOP" x="-449.000000" y="193.000000"/> <Node name="node_NOP_2" type="NOP" x="-1154.000000" y="291.000000"/> ! <Node name="node_isNil_1" type="isNil" x="-38.000000" y="212.000000"/> <Node name="node_NOT_1" type="NOT" x="242.000000" y="235.000000"/> <Node name="node_AND_1" type="AND" x="137.000000" y="235.000000"> <Parameter name="PULL_ANYWAY" type="bool" value="false" description="Pull on INPUT2 even if INPUT1 is false"/> </Node> ! <Node name="node_isNil_2" type="isNil" x="-39.000000" y="236.000000"/> <Node name="node_isNil_3" type="isNil" x="-38.000000" y="260.000000"/> <Link from="node_MULTI_SIGN_TRACKING_1" output="COMPONENTS" to="node_PROCESS_SEGMENTS_1" input="SYMBOLS_COMPONENTS">-104.5 76.5 -100 352 -48 351 </Link> <Link from="node_SUBNET0_1" output="COMPONENTS" to="node_MULTI_SIGN_TRACKING_1" input="COMPONENTS"/> --- 40,57 ---- <Node name="node_NOP_1" type="NOP" x="-449.000000" y="193.000000"/> <Node name="node_NOP_2" type="NOP" x="-1154.000000" y="291.000000"/> ! <Node name="node_isNil_1" type="isNil" x="-38.000000" y="209.000000"/> <Node name="node_NOT_1" type="NOT" x="242.000000" y="235.000000"/> <Node name="node_AND_1" type="AND" x="137.000000" y="235.000000"> <Parameter name="PULL_ANYWAY" type="bool" value="false" description="Pull on INPUT2 even if INPUT1 is false"/> </Node> ! <Node name="node_isNil_2" type="isNil" x="-38.000000" y="234.000000"/> <Node name="node_isNil_3" type="isNil" x="-38.000000" y="260.000000"/> + <Node name="node_IF_ACTIVATED_DO_1" type="IF_ACTIVATED_DO" x="685.000000" y="74.000000"/> + <Node name="node_IF_ACTIVATED_DO_2" type="IF_ACTIVATED_DO" x="687.000000" y="123.000000"/> + <Node name="node_IF_ACTIVATED_DO_3" type="IF_ACTIVATED_DO" x="687.000000" y="174.000000"/> + <Node name="node_IF_ACTIVATED_DO_4" type="IF_ACTIVATED_DO" x="687.000000" y="280.000000"/> + <Node name="node_IF_ACTIVATED_DO_5" type="IF_ACTIVATED_DO" x="692.000000" y="404.000000"/> + <Node name="node_IF_ACTIVATED_DO_6" type="IF_ACTIVATED_DO" x="688.000000" y="230.000000"/> + <Node name="node_NOP_3" type="NOP" x="-547.000000" y="398.000000"/> <Link from="node_MULTI_SIGN_TRACKING_1" output="COMPONENTS" to="node_PROCESS_SEGMENTS_1" input="SYMBOLS_COMPONENTS">-104.5 76.5 -100 352 -48 351 </Link> <Link from="node_SUBNET0_1" output="COMPONENTS" to="node_MULTI_SIGN_TRACKING_1" input="COMPONENTS"/> *************** *** 64,84 **** <Link from="node_isNil_2" output="OUTPUT" to="node_AND_1" input="INPUT2"/> <Link from="node_isNil_3" output="OUTPUT" to="node_AND_1" input="INPUT3"/> ! <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"/> - <NetInput name="SIGN_TRACKING_ACTIVATED" node="node_MULTI_SIGN_TRACKING_1" terminal="SIGN_TRACKING_ACTIVATED" object_type="any" description="No description available"/> <NetInput name="COLOR_LOOKUP" node="node_SUBNET0_1" terminal="LOOKUP" object_type="any" description="No description available"/> <NetInput name="CURRENT_ABS_ZOOM" node="node_NOP_1" terminal="INPUT" object_type="any" description="The input"/> <NetInput name="RGB15_IMAGE" node="node_NOP_2" terminal="INPUT" object_type="any" description="The input"/> ! <NetOutput name="REL_PAN_COMMAND" node="node_PAN_TILT_CTRL_1" terminal="REL_PAN" object_type="any" description="The object from THEN or ELSE depending on COND"/> ! <NetOutput name="REL_TILT_COMMAND" node="node_PAN_TILT_CTRL_1" terminal="REL_TILT" object_type="any" description="The object from THEN or ELSE depending on COND"/> ! <NetOutput name="ABS_ZOOM_COMMAND" node="node_PAN_TILT_CTRL_1" terminal="ABS_ZOOM" object_type="any" description="The object from THEN or ELSE depending on COND"/> ! <NetOutput name="READING_FLAG" node="node_NOT_1" terminal="OUTPUT" object_type="bool" description="Boolean output"/> <Note x="-1480" y="269" visible="1" text="Sony SNC-RZ30 Network Camera controller."/> <Note x="-1098" y="39" visible="1" text="Image must be converted to RGB15 from the camera before training."/> <Note x="-323" y="44" visible="1" text="From the components of the image, we try to extract a textual messages that are color coded (foreground color = text, background color = color of the sheet of paper)"/> ! <Note x="173" y="520" visible="1" text="Image segments are scaled and process by the neural network. We will look in the dictionary for words that match the best."/> <Note x="473" y="23" visible="1" text="SKIP_N is useful because the camera is too slow, if we don't use SKIP_N, the camera will be overloaded with commands, which creates a terrific lag."/> </Network> --- 71,104 ---- <Link from="node_isNil_2" output="OUTPUT" to="node_AND_1" input="INPUT2"/> <Link from="node_isNil_3" output="OUTPUT" to="node_AND_1" input="INPUT3"/> ! <Link from="node_PAN_TILT_CTRL_1" output="REL_PAN" to="node_IF_ACTIVATED_DO_1" input="DO"/> ! <Link from="node_PAN_TILT_CTRL_1" output="REL_TILT" to="node_IF_ACTIVATED_DO_2" input="DO"/> ! <Link from="node_PAN_TILT_CTRL_1" output="ABS_ZOOM" to="node_IF_ACTIVATED_DO_3" input="DO"/> ! <Link from="node_PROCESS_SEGMENTS_1" output="SENTENCE" to="node_IF_ACTIVATED_DO_4" input="DO"/> ! <Link from="node_PROCESS_SEGMENTS_1" output="ORIGINAL_TEXT" to="node_IF_ACTIVATED_DO_5" input="DO"/> ! <Link from="node_NOT_1" output="OUTPUT" to="node_IF_ACTIVATED_DO_6" input="DO"/> ! <Link from="node_NOP_3" output="OUTPUT" to="node_MULTI_SIGN_TRACKING_1" input="SIGN_TRACKING_ACTIVATED"/> ! <Link from="node_NOP_3" output="OUTPUT" to="node_IF_ACTIVATED_DO_1" input="SIGN_TRACKING_ACTIVATED"/> ! <Link from="node_NOP_3" output="OUTPUT" to="node_IF_ACTIVATED_DO_2" input="SIGN_TRACKING_ACTIVATED"/> ! <Link from="node_NOP_3" output="OUTPUT" to="node_IF_ACTIVATED_DO_3" input="SIGN_TRACKING_ACTIVATED"/> ! <Link from="node_NOP_3" output="OUTPUT" to="node_IF_ACTIVATED_DO_6" input="SIGN_TRACKING_ACTIVATED"/> ! <Link from="node_NOP_3" output="OUTPUT" to="node_IF_ACTIVATED_DO_4" input="SIGN_TRACKING_ACTIVATED">-528 398 389 395 390 274 451.5 272.5 </Link> ! <Link from="node_NOP_3" output="OUTPUT" to="node_IF_ACTIVATED_DO_5" input="SIGN_TRACKING_ACTIVATED"/> <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"/> <NetInput name="COLOR_LOOKUP" node="node_SUBNET0_1" terminal="LOOKUP" object_type="any" description="No description available"/> <NetInput name="CURRENT_ABS_ZOOM" node="node_NOP_1" terminal="INPUT" object_type="any" description="The input"/> <NetInput name="RGB15_IMAGE" node="node_NOP_2" terminal="INPUT" object_type="any" description="The input"/> ! <NetOutput name="REL_PAN_COMMAND" node="node_IF_ACTIVATED_DO_1" terminal="OUTPUT" object_type="" description="The object from THEN or ELSE depending on COND"/> ! <NetOutput name="REL_TILT_COMMAND" node="node_IF_ACTIVATED_DO_2" terminal="OUTPUT" object_type="" description="The object from THEN or ELSE depending on COND"/> ! <NetOutput name="ABS_ZOOM_COMMAND" node="node_IF_ACTIVATED_DO_3" terminal="OUTPUT" object_type="" description="The object from THEN or ELSE depending on COND"/> ! <NetOutput name="SENTENCE" node="node_IF_ACTIVATED_DO_4" terminal="OUTPUT" object_type="" description="The object from THEN or ELSE depending on COND"/> ! <NetOutput name="ORIGINAL_TEXT" node="node_IF_ACTIVATED_DO_5" terminal="OUTPUT" object_type="" description="The object from THEN or ELSE depending on COND"/> ! <NetOutput name="READING_FLAG" node="node_IF_ACTIVATED_DO_6" terminal="OUTPUT" object_type="" description="The object from THEN or ELSE depending on COND"/> ! <NetInput name="SIGN_TRACKING_ACTIVATED" node="node_NOP_3" terminal="INPUT" object_type="any" description="The input"/> <Note x="-1480" y="269" visible="1" text="Sony SNC-RZ30 Network Camera controller."/> <Note x="-1098" y="39" visible="1" text="Image must be converted to RGB15 from the camera before training."/> <Note x="-323" y="44" visible="1" text="From the components of the image, we try to extract a textual messages that are color coded (foreground color = text, background color = color of the sheet of paper)"/> ! <Note x="159" y="551" visible="1" text="Image segments are scaled and process by the neural network. We will look in the dictionary for words that match the best."/> <Note x="473" y="23" visible="1" text="SKIP_N is useful because the camera is too slow, if we don't use SKIP_N, the camera will be overloaded with commands, which creates a terrific lag."/> </Network> *************** *** 509,512 **** --- 529,533 ---- <Parameter name="VALUE" type="bool" value="true" description="The value"/> </Node> + <Node name="node_NOP_3" type="NOP" x="27.000000" y="-63.000000"/> <Link from="node_MultiSignTracking_1" output="COMPONENTS" to="node_NOP_1" input="INPUT"/> <Link from="node_MultiSignTracking_1" output="DELTA_X" to="node_Subsumption_1" input="HIGH_PRIORITY"/> *************** *** 519,522 **** --- 540,544 ---- <Link from="node_COLOR_TRACKER_1" output="BOUNDARY" to="node_Subsumption_3" input="LOW_PRIORITY"/> <Link from="node_Constant_1" output="VALUE" to="node_COLOR_TRACKER_1" input="ACTIVATED"/> + <Link from="node_NOP_3" output="OUTPUT" to="node_MultiSignTracking_1" input="ACTIVATED"/> <NetOutput name="COMPONENTS" node="node_NOP_1" terminal="OUTPUT" object_type="any" description="The output = The input"/> <NetInput name="COMPONENTS" node="node_NOP_2" terminal="INPUT" object_type="any" description="The input"/> *************** *** 524,528 **** <NetOutput name="DELTA_Y" node="node_Subsumption_2" terminal="OUTPUT" object_type="any" description="No description available"/> <NetOutput name="BOUNDARY" node="node_Subsumption_3" terminal="OUTPUT" object_type="any" description="No description available"/> ! <NetInput name="SIGN_TRACKING_ACTIVATED" node="node_MultiSignTracking_1" terminal="ACTIVATED" object_type="any" description="Behavior activation."/> <Note x="0" y="0" visible="0" text="Created with FlowDesigner 0.8.1"/> <Note x="218" y="299" visible="1" text="If activated, the MultiSignTracking behavior will output probable characters components, delta_x, delta_y and boundray of the group of components that could be characters."/> --- 546,550 ---- <NetOutput name="DELTA_Y" node="node_Subsumption_2" terminal="OUTPUT" object_type="any" description="No description available"/> <NetOutput name="BOUNDARY" node="node_Subsumption_3" terminal="OUTPUT" object_type="any" description="No description available"/> ! <NetInput name="SIGN_TRACKING_ACTIVATED" node="node_NOP_3" terminal="INPUT" object_type="any" description="The input"/> <Note x="0" y="0" visible="0" text="Created with FlowDesigner 0.8.1"/> <Note x="218" y="299" visible="1" text="If activated, the MultiSignTracking behavior will output probable characters components, delta_x, delta_y and boundray of the group of components that could be characters."/> *************** *** 614,616 **** --- 636,649 ---- <Note x="0" y="0" visible="0" text="Created with FlowDesigner 0.8.1"/> </Network> + <Network type="subnet" name="IF_ACTIVATED_DO"> + <Node name="node_IF_1" type="IF" x="-316.000000" y="-92.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_NilObject_1" type="NilObject" x="-461.000000" y="-35.000000"/> + <Link from="node_NilObject_1" output="VALUE" to="node_IF_1" input="ELSE"/> + <NetInput name="SIGN_TRACKING_ACTIVATED" node="node_IF_1" terminal="COND" object_type="bool" description="The condition for the if statement"/> + <NetInput name="DO" 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> </Document> |