From: Dominic L. <ma...@us...> - 2004-11-03 21:55:47
|
Update of /cvsroot/robotflow/RobotFlow/demo/SymbolRecog/n-files In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19497 Added Files: colorTrain_SNCRZ30.n Log Message: added a color training demo --- NEW FILE: colorTrain_SNCRZ30.n --- #!/usr/bin/env batchflow <?xml version="1.0"?> <Document> <Network type="subnet" name="MAIN"> <Node name="node_LOOP0_1" type="LOOP0" x="-695.000000" y="275.000000"> <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"/> </Network> <Network type="subnet" name="SUBNET0"> <Node name="node_Components_1" type="Components" x="106.000000" y="206.000000"> <Parameter name="XGAP" type="int" value="1" description=""/> <Parameter name="YGAP" type="int" value="1" 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="337.000000" y="199.000000"/> <Node name="node_ImageProbe_1" type="ImageProbe" x="618.000000" y="205.000000"> <Parameter name="HEIGHT" type="int" value="240" description=""/> <Parameter name="WIDTH" type="int" value="320" description=""/> <Parameter name="BREAK_AT" type="int" value="" description=""/> <Parameter name="SHOW" type="bool" value="true" description=""/> <Parameter name="SKIP" type="int" value="" description=""/> </Node> <Node name="node_ColorTrain_1" type="ColorTrain" x="-255.000000" y="219.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="43.000000" y="381.000000"> <Parameter name="PRETTY_PRINT" type="bool" value="false" description=""/> </Node> <Node name="node_OutputStream_1" type="OutputStream" x="-135.000000" y="388.000000"> <Parameter name="TYPE" type="String" value="" description=""/> </Node> <Node name="node_Constant_1" type="Constant" x="-250.000000" y="388.000000"> <Parameter name="VALUE" type="subnet_param" value="COLOR_SAVE_FILENAME" description=""/> </Node> <Node name="node_IF_1" type="IF" x="395.000000" y="382.000000"> <Parameter name="PULL_ANYWAY" type="bool" value="" description=""/> </Node> <Node name="node_NoCommand_1" type="NoCommand" x="213.000000" y="396.000000"/> <Node name="node_NoCommand_2" type="NoCommand" x="364.000000" y="259.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_ColorTrain_1" output="LOOKUP" to="node_ComponentsViewer_1" input="LOOKUP">-161.5 211.5 45 158 185 159 236 191.5 </Link> <Link from="node_Components_1" output="BLOBS" to="node_ComponentsViewer_1" input="DATA"/> <Link from="node_ComponentsViewer_1" output="IMAGE" to="node_ImageProbe_1" input="INPUT"/> <Link from="node_NoCommand_2" output="OUTPUT" to="node_ImageProbe_1" input="SAVE_FILENAME"/> <Link from="node_ColorTrain_1" output="LOOKUP" to="node_Save_1" input="OBJECT"/> <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"/> <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"/> <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="COMPONENTS_IMAGE" node="node_ImageProbe_1" terminal="OUTPUT" object_type="any" description="No description available"/> </Network> <Network type="iterator" name="LOOP0"> <Node name="node_SNCRZ30_1" type="SNCRZ30" x="-619.000000" y="182.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"/> <Parameter name="INQUIRY_POSITION" type="bool" value="false" description="Inquiry position of the pan,tilt,zoom from the device"/> </Node> <Node name="node_Constant_1" type="Constant" x="-680.000000" y="299.000000"> <Parameter name="VALUE" type="bool" value="true" description="The value"/> </Node> <Node name="node_PTZControl_1" type="PTZControl" x="-979.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="SUBNET0" x="-209.000000" y="220.000000"> <Parameter name="COLOR_SAVE_FILENAME" type="string" value="../color_lookup/black_orange.data" description=""/> </Node> <Node name="node_RGB242RGB15_1" type="RGB242RGB15" x="-363.000000" y="218.000000"/> <Node name="node_NilObject_1" type="NilObject" x="-878.000000" y="297.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_SNCRZ30_1" input="PAN_REL_POS"/> <Link from="node_PTZControl_1" output="REL_TILT" to="node_SNCRZ30_1" input="TILT_REL_POS"/> <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_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"/> </Network> </Document> |