Added base code
This commit is contained in:
parent
fa9b4f2f8c
commit
e3cad008e4
146
base.grip
Normal file
146
base.grip
Normal file
@ -0,0 +1,146 @@
|
|||||||
|
<grip:Pipeline>
|
||||||
|
<sources>
|
||||||
|
<grip:Camera>
|
||||||
|
<property name="address" value="http://10.20.59.50/mjpg/video.mjpg"/>
|
||||||
|
</grip:Camera>
|
||||||
|
</sources>
|
||||||
|
<steps>
|
||||||
|
<grip:Step name="Resize Image">
|
||||||
|
<grip:Input step="0" socket="0"/>
|
||||||
|
<grip:Input step="0" socket="1">
|
||||||
|
<value>640.0</value>
|
||||||
|
</grip:Input>
|
||||||
|
<grip:Input step="0" socket="2">
|
||||||
|
<value>480.0</value>
|
||||||
|
</grip:Input>
|
||||||
|
<grip:Input step="0" socket="3">
|
||||||
|
<value>NEAREST</value>
|
||||||
|
</grip:Input>
|
||||||
|
<grip:Output step="0" socket="0" previewed="false"/>
|
||||||
|
</grip:Step>
|
||||||
|
<grip:Step name="HSL Threshold">
|
||||||
|
<grip:Input step="1" socket="0"/>
|
||||||
|
<grip:Input step="1" socket="1">
|
||||||
|
<value>
|
||||||
|
<double>0.0</double>
|
||||||
|
<double>97.06484641638225</double>
|
||||||
|
</value>
|
||||||
|
</grip:Input>
|
||||||
|
<grip:Input step="1" socket="2">
|
||||||
|
<value>
|
||||||
|
<double>213.26438848920864</double>
|
||||||
|
<double>255.0</double>
|
||||||
|
</value>
|
||||||
|
</grip:Input>
|
||||||
|
<grip:Input step="1" socket="3">
|
||||||
|
<value>
|
||||||
|
<double>50.44964028776978</double>
|
||||||
|
<double>113.57508532423208</double>
|
||||||
|
</value>
|
||||||
|
</grip:Input>
|
||||||
|
<grip:Output step="1" socket="0" previewed="true"/>
|
||||||
|
</grip:Step>
|
||||||
|
<grip:Step name="Find Contours">
|
||||||
|
<grip:Input step="2" socket="0"/>
|
||||||
|
<grip:Input step="2" socket="1">
|
||||||
|
<value>false</value>
|
||||||
|
</grip:Input>
|
||||||
|
<grip:Output step="2" socket="0" previewed="false"/>
|
||||||
|
</grip:Step>
|
||||||
|
<grip:Step name="Filter Contours">
|
||||||
|
<grip:Input step="3" socket="0"/>
|
||||||
|
<grip:Input step="3" socket="1">
|
||||||
|
<value>420.0</value>
|
||||||
|
</grip:Input>
|
||||||
|
<grip:Input step="3" socket="2">
|
||||||
|
<value>100.0</value>
|
||||||
|
</grip:Input>
|
||||||
|
<grip:Input step="3" socket="3">
|
||||||
|
<value>0.0</value>
|
||||||
|
</grip:Input>
|
||||||
|
<grip:Input step="3" socket="4">
|
||||||
|
<value>1000.0</value>
|
||||||
|
</grip:Input>
|
||||||
|
<grip:Input step="3" socket="5">
|
||||||
|
<value>0.0</value>
|
||||||
|
</grip:Input>
|
||||||
|
<grip:Input step="3" socket="6">
|
||||||
|
<value>1000.0</value>
|
||||||
|
</grip:Input>
|
||||||
|
<grip:Input step="3" socket="7">
|
||||||
|
<value>
|
||||||
|
<int>0</int>
|
||||||
|
<int>100</int>
|
||||||
|
</value>
|
||||||
|
</grip:Input>
|
||||||
|
<grip:Input step="3" socket="8">
|
||||||
|
<value>0.0</value>
|
||||||
|
</grip:Input>
|
||||||
|
<grip:Input step="3" socket="9">
|
||||||
|
<value>1000000.0</value>
|
||||||
|
</grip:Input>
|
||||||
|
<grip:Input step="3" socket="10">
|
||||||
|
<value>0.0</value>
|
||||||
|
</grip:Input>
|
||||||
|
<grip:Input step="3" socket="11">
|
||||||
|
<value>1000.0</value>
|
||||||
|
</grip:Input>
|
||||||
|
<grip:Output step="3" socket="0" previewed="true"/>
|
||||||
|
</grip:Step>
|
||||||
|
<grip:Step name="NTPublish ContoursReport">
|
||||||
|
<grip:Input step="4" socket="0"/>
|
||||||
|
<grip:Input step="4" socket="1">
|
||||||
|
<value>contours</value>
|
||||||
|
</grip:Input>
|
||||||
|
<grip:Input step="4" socket="2">
|
||||||
|
<value>true</value>
|
||||||
|
</grip:Input>
|
||||||
|
<grip:Input step="4" socket="3">
|
||||||
|
<value>true</value>
|
||||||
|
</grip:Input>
|
||||||
|
<grip:Input step="4" socket="4">
|
||||||
|
<value>true</value>
|
||||||
|
</grip:Input>
|
||||||
|
<grip:Input step="4" socket="5">
|
||||||
|
<value>true</value>
|
||||||
|
</grip:Input>
|
||||||
|
<grip:Input step="4" socket="6">
|
||||||
|
<value>true</value>
|
||||||
|
</grip:Input>
|
||||||
|
<grip:Input step="4" socket="7">
|
||||||
|
<value>true</value>
|
||||||
|
</grip:Input>
|
||||||
|
</grip:Step>
|
||||||
|
</steps>
|
||||||
|
<connections>
|
||||||
|
<grip:Connection>
|
||||||
|
<grip:Output step="0" socket="0" previewed="false"/>
|
||||||
|
<grip:Input step="1" socket="0"/>
|
||||||
|
</grip:Connection>
|
||||||
|
<grip:Connection>
|
||||||
|
<grip:Output step="1" socket="0" previewed="true"/>
|
||||||
|
<grip:Input step="2" socket="0"/>
|
||||||
|
</grip:Connection>
|
||||||
|
<grip:Connection>
|
||||||
|
<grip:Output source="0" socket="0" previewed="true"/>
|
||||||
|
<grip:Input step="0" socket="0"/>
|
||||||
|
</grip:Connection>
|
||||||
|
<grip:Connection>
|
||||||
|
<grip:Output step="3" socket="0" previewed="true"/>
|
||||||
|
<grip:Input step="4" socket="0"/>
|
||||||
|
</grip:Connection>
|
||||||
|
<grip:Connection>
|
||||||
|
<grip:Output step="2" socket="0" previewed="false"/>
|
||||||
|
<grip:Input step="3" socket="0"/>
|
||||||
|
</grip:Connection>
|
||||||
|
</connections>
|
||||||
|
<settings>
|
||||||
|
<teamNumber>0</teamNumber>
|
||||||
|
<publishAddress>roborio-0-frc.local</publishAddress>
|
||||||
|
<deployAddress>10.20.59.2</deployAddress>
|
||||||
|
<deployDir>/home/lvuser</deployDir>
|
||||||
|
<deployUser>lvuser</deployUser>
|
||||||
|
<deployJavaHome>/usr/local/frc/JRE/</deployJavaHome>
|
||||||
|
<deployJvmOptions>-Xmx50m -XX:-OmitStackTraceInFastThrow -XX:+HeapDumpOnOutOfMemoryError</deployJvmOptions>
|
||||||
|
</settings>
|
||||||
|
</grip:Pipeline>
|
Loading…
Reference in New Issue
Block a user