wh1ter0se/PowerUp-2018

View on GitHub
wpilib18/java/current/javadoc/edu/wpi/first/wpilibj/CameraServer.html

Summary

Maintainability
Test Coverage
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_144) on Sat Oct 28 05:22:52 EDT 2017 -->
<title>CameraServer (Documentation - Release API)</title>
<meta name="date" content="2017-10-28">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
    try {
        if (location.href.indexOf('is-external=true') == -1) {
            parent.document.title="CameraServer (Documentation - Release API)";
        }
    }
    catch(err) {
    }
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":9,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!--   -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../edu/wpi/first/wpilibj/BuiltInAccelerometer.html" title="class in edu.wpi.first.wpilibj"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../edu/wpi/first/wpilibj/CANSpeedController.html" title="interface in edu.wpi.first.wpilibj"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?edu/wpi/first/wpilibj/CameraServer.html" target="_top">Frames</a></li>
<li><a href="CameraServer.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">edu.wpi.first.wpilibj</div>
<h2 title="Class CameraServer" class="title">Class CameraServer</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>edu.wpi.first.wpilibj.CameraServer</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="typeNameLabel">CameraServer</span>
extends java.lang.Object</pre>
<div class="block">Singleton class for creating and keeping camera servers.
 Also publishes camera information to NetworkTables.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!--   -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../edu/wpi/first/wpilibj/CameraServer.html#kBasePort">kBasePort</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../edu/wpi/first/wpilibj/CameraServer.html#kSize160x120">kSize160x120</a></span></code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../edu/wpi/first/wpilibj/CameraServer.html#kSize320x240">kSize320x240</a></span></code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../edu/wpi/first/wpilibj/CameraServer.html#kSize640x480">kSize640x480</a></span></code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code><a href="../../../../edu/wpi/cscore/AxisCamera.html" title="class in edu.wpi.cscore">AxisCamera</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../edu/wpi/first/wpilibj/CameraServer.html#addAxisCamera-java.lang.String-">addAxisCamera</a></span>(java.lang.String&nbsp;host)</code>
<div class="block">Adds an Axis IP camera.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="../../../../edu/wpi/cscore/AxisCamera.html" title="class in edu.wpi.cscore">AxisCamera</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../edu/wpi/first/wpilibj/CameraServer.html#addAxisCamera-java.lang.String:A-">addAxisCamera</a></span>(java.lang.String[]&nbsp;hosts)</code>
<div class="block">Adds an Axis IP camera.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="../../../../edu/wpi/cscore/AxisCamera.html" title="class in edu.wpi.cscore">AxisCamera</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../edu/wpi/first/wpilibj/CameraServer.html#addAxisCamera-java.lang.String-java.lang.String-">addAxisCamera</a></span>(java.lang.String&nbsp;name,
             java.lang.String&nbsp;host)</code>
<div class="block">Adds an Axis IP camera.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="../../../../edu/wpi/cscore/AxisCamera.html" title="class in edu.wpi.cscore">AxisCamera</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../edu/wpi/first/wpilibj/CameraServer.html#addAxisCamera-java.lang.String-java.lang.String:A-">addAxisCamera</a></span>(java.lang.String&nbsp;name,
             java.lang.String[]&nbsp;hosts)</code>
<div class="block">Adds an Axis IP camera.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../edu/wpi/first/wpilibj/CameraServer.html#addCamera-edu.wpi.cscore.VideoSource-">addCamera</a></span>(<a href="../../../../edu/wpi/cscore/VideoSource.html" title="class in edu.wpi.cscore">VideoSource</a>&nbsp;camera)</code>
<div class="block">Adds an already created camera.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="../../../../edu/wpi/cscore/MjpegServer.html" title="class in edu.wpi.cscore">MjpegServer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../edu/wpi/first/wpilibj/CameraServer.html#addServer-java.lang.String-">addServer</a></span>(java.lang.String&nbsp;name)</code>
<div class="block">Adds a MJPEG server at the next available port.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="../../../../edu/wpi/cscore/MjpegServer.html" title="class in edu.wpi.cscore">MjpegServer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../edu/wpi/first/wpilibj/CameraServer.html#addServer-java.lang.String-int-">addServer</a></span>(java.lang.String&nbsp;name,
         int&nbsp;port)</code>
<div class="block">Adds a MJPEG server.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../edu/wpi/first/wpilibj/CameraServer.html#addServer-edu.wpi.cscore.VideoSink-">addServer</a></span>(<a href="../../../../edu/wpi/cscore/VideoSink.html" title="class in edu.wpi.cscore">VideoSink</a>&nbsp;server)</code>
<div class="block">Adds an already created server.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>static <a href="../../../../edu/wpi/first/wpilibj/CameraServer.html" title="class in edu.wpi.first.wpilibj">CameraServer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../edu/wpi/first/wpilibj/CameraServer.html#getInstance--">getInstance</a></span>()</code>
<div class="block">Get the CameraServer instance.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code><a href="../../../../edu/wpi/cscore/VideoSink.html" title="class in edu.wpi.cscore">VideoSink</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../edu/wpi/first/wpilibj/CameraServer.html#getServer--">getServer</a></span>()</code>
<div class="block">Get server for the primary camera feed.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code><a href="../../../../edu/wpi/cscore/VideoSink.html" title="class in edu.wpi.cscore">VideoSink</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../edu/wpi/first/wpilibj/CameraServer.html#getServer-java.lang.String-">getServer</a></span>(java.lang.String&nbsp;name)</code>
<div class="block">Gets a server by name.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code><a href="../../../../edu/wpi/cscore/CvSink.html" title="class in edu.wpi.cscore">CvSink</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../edu/wpi/first/wpilibj/CameraServer.html#getVideo--">getVideo</a></span>()</code>
<div class="block">Get OpenCV access to the primary camera feed.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code><a href="../../../../edu/wpi/cscore/CvSink.html" title="class in edu.wpi.cscore">CvSink</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../edu/wpi/first/wpilibj/CameraServer.html#getVideo-java.lang.String-">getVideo</a></span>(java.lang.String&nbsp;name)</code>
<div class="block">Get OpenCV access to the specified camera.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code><a href="../../../../edu/wpi/cscore/CvSink.html" title="class in edu.wpi.cscore">CvSink</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../edu/wpi/first/wpilibj/CameraServer.html#getVideo-edu.wpi.cscore.VideoSource-">getVideo</a></span>(<a href="../../../../edu/wpi/cscore/VideoSource.html" title="class in edu.wpi.cscore">VideoSource</a>&nbsp;camera)</code>
<div class="block">Get OpenCV access to the specified camera.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code><a href="../../../../edu/wpi/cscore/CvSource.html" title="class in edu.wpi.cscore">CvSource</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../edu/wpi/first/wpilibj/CameraServer.html#putVideo-java.lang.String-int-int-">putVideo</a></span>(java.lang.String&nbsp;name,
        int&nbsp;width,
        int&nbsp;height)</code>
<div class="block">Create a MJPEG stream with OpenCV input.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../edu/wpi/first/wpilibj/CameraServer.html#removeCamera-java.lang.String-">removeCamera</a></span>(java.lang.String&nbsp;name)</code>
<div class="block">Removes a camera by name.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../edu/wpi/first/wpilibj/CameraServer.html#removeServer-java.lang.String-">removeServer</a></span>(java.lang.String&nbsp;name)</code>
<div class="block">Removes a server by name.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code><a href="../../../../edu/wpi/cscore/UsbCamera.html" title="class in edu.wpi.cscore">UsbCamera</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../edu/wpi/first/wpilibj/CameraServer.html#startAutomaticCapture--">startAutomaticCapture</a></span>()</code>
<div class="block">Start automatically capturing images to send to the dashboard.</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code><a href="../../../../edu/wpi/cscore/UsbCamera.html" title="class in edu.wpi.cscore">UsbCamera</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../edu/wpi/first/wpilibj/CameraServer.html#startAutomaticCapture-int-">startAutomaticCapture</a></span>(int&nbsp;dev)</code>
<div class="block">Start automatically capturing images to send to the dashboard.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code><a href="../../../../edu/wpi/cscore/UsbCamera.html" title="class in edu.wpi.cscore">UsbCamera</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../edu/wpi/first/wpilibj/CameraServer.html#startAutomaticCapture-java.lang.String-int-">startAutomaticCapture</a></span>(java.lang.String&nbsp;name,
                     int&nbsp;dev)</code>
<div class="block">Start automatically capturing images to send to the dashboard.</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code><a href="../../../../edu/wpi/cscore/UsbCamera.html" title="class in edu.wpi.cscore">UsbCamera</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../edu/wpi/first/wpilibj/CameraServer.html#startAutomaticCapture-java.lang.String-java.lang.String-">startAutomaticCapture</a></span>(java.lang.String&nbsp;name,
                     java.lang.String&nbsp;path)</code>
<div class="block">Start automatically capturing images to send to the dashboard.</div>
</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../edu/wpi/first/wpilibj/CameraServer.html#startAutomaticCapture-edu.wpi.cscore.VideoSource-">startAutomaticCapture</a></span>(<a href="../../../../edu/wpi/cscore/VideoSource.html" title="class in edu.wpi.cscore">VideoSource</a>&nbsp;camera)</code>
<div class="block">Start automatically capturing images to send to the dashboard from
 an existing camera.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!--   -->
</a>
<h3>Field Detail</h3>
<a name="kBasePort">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>kBasePort</h4>
<pre>public static final&nbsp;int kBasePort</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#edu.wpi.first.wpilibj.CameraServer.kBasePort">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="kSize640x480">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>kSize640x480</h4>
<pre>@Deprecated
public static final&nbsp;int kSize640x480</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#edu.wpi.first.wpilibj.CameraServer.kSize640x480">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="kSize320x240">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>kSize320x240</h4>
<pre>@Deprecated
public static final&nbsp;int kSize320x240</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#edu.wpi.first.wpilibj.CameraServer.kSize320x240">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="kSize160x120">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>kSize160x120</h4>
<pre>@Deprecated
public static final&nbsp;int kSize160x120</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#edu.wpi.first.wpilibj.CameraServer.kSize160x120">Constant Field Values</a></dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="getInstance--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getInstance</h4>
<pre>public static&nbsp;<a href="../../../../edu/wpi/first/wpilibj/CameraServer.html" title="class in edu.wpi.first.wpilibj">CameraServer</a>&nbsp;getInstance()</pre>
<div class="block">Get the CameraServer instance.</div>
</li>
</ul>
<a name="startAutomaticCapture--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>startAutomaticCapture</h4>
<pre>public&nbsp;<a href="../../../../edu/wpi/cscore/UsbCamera.html" title="class in edu.wpi.cscore">UsbCamera</a>&nbsp;startAutomaticCapture()</pre>
<div class="block">Start automatically capturing images to send to the dashboard.

 <p>You should call this method to see a camera feed on the dashboard.
 If you also want to perform vision processing on the roboRIO, use
 getVideo() to get access to the camera images.

 <p>The first time this overload is called, it calls
 <a href="../../../../edu/wpi/first/wpilibj/CameraServer.html#startAutomaticCapture-int-"><code>startAutomaticCapture(int)</code></a> with device 0, creating a camera
 named "USB Camera 0".  Subsequent calls increment the device number
 (e.g. 1, 2, etc).</div>
</li>
</ul>
<a name="startAutomaticCapture-int-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>startAutomaticCapture</h4>
<pre>public&nbsp;<a href="../../../../edu/wpi/cscore/UsbCamera.html" title="class in edu.wpi.cscore">UsbCamera</a>&nbsp;startAutomaticCapture(int&nbsp;dev)</pre>
<div class="block">Start automatically capturing images to send to the dashboard.

 <p>This overload calls <a href="../../../../edu/wpi/first/wpilibj/CameraServer.html#startAutomaticCapture-java.lang.String-int-"><code>startAutomaticCapture(String, int)</code></a> with
 a name of "USB Camera {dev}".</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dev</code> - The device number of the camera interface</dd>
</dl>
</li>
</ul>
<a name="startAutomaticCapture-java.lang.String-int-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>startAutomaticCapture</h4>
<pre>public&nbsp;<a href="../../../../edu/wpi/cscore/UsbCamera.html" title="class in edu.wpi.cscore">UsbCamera</a>&nbsp;startAutomaticCapture(java.lang.String&nbsp;name,
                                       int&nbsp;dev)</pre>
<div class="block">Start automatically capturing images to send to the dashboard.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>name</code> - The name to give the camera</dd>
<dd><code>dev</code> - The device number of the camera interface</dd>
</dl>
</li>
</ul>
<a name="startAutomaticCapture-java.lang.String-java.lang.String-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>startAutomaticCapture</h4>
<pre>public&nbsp;<a href="../../../../edu/wpi/cscore/UsbCamera.html" title="class in edu.wpi.cscore">UsbCamera</a>&nbsp;startAutomaticCapture(java.lang.String&nbsp;name,
                                       java.lang.String&nbsp;path)</pre>
<div class="block">Start automatically capturing images to send to the dashboard.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>name</code> - The name to give the camera</dd>
<dd><code>path</code> - The device path (e.g. "/dev/video0") of the camera</dd>
</dl>
</li>
</ul>
<a name="startAutomaticCapture-edu.wpi.cscore.VideoSource-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>startAutomaticCapture</h4>
<pre>public&nbsp;void&nbsp;startAutomaticCapture(<a href="../../../../edu/wpi/cscore/VideoSource.html" title="class in edu.wpi.cscore">VideoSource</a>&nbsp;camera)</pre>
<div class="block">Start automatically capturing images to send to the dashboard from
 an existing camera.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>camera</code> - Camera</dd>
</dl>
</li>
</ul>
<a name="addAxisCamera-java.lang.String-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addAxisCamera</h4>
<pre>public&nbsp;<a href="../../../../edu/wpi/cscore/AxisCamera.html" title="class in edu.wpi.cscore">AxisCamera</a>&nbsp;addAxisCamera(java.lang.String&nbsp;host)</pre>
<div class="block">Adds an Axis IP camera.

 <p>This overload calls <a href="../../../../edu/wpi/first/wpilibj/CameraServer.html#addAxisCamera-java.lang.String-java.lang.String-"><code>addAxisCamera(String, String)</code></a> with
 name "Axis Camera".</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>host</code> - Camera host IP or DNS name (e.g. "10.x.y.11")</dd>
</dl>
</li>
</ul>
<a name="addAxisCamera-java.lang.String:A-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addAxisCamera</h4>
<pre>public&nbsp;<a href="../../../../edu/wpi/cscore/AxisCamera.html" title="class in edu.wpi.cscore">AxisCamera</a>&nbsp;addAxisCamera(java.lang.String[]&nbsp;hosts)</pre>
<div class="block">Adds an Axis IP camera.

 <p>This overload calls <a href="../../../../edu/wpi/first/wpilibj/CameraServer.html#addAxisCamera-java.lang.String-java.lang.String:A-"><code>addAxisCamera(String, String[])</code></a> with
 name "Axis Camera".</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>hosts</code> - Array of Camera host IPs/DNS names</dd>
</dl>
</li>
</ul>
<a name="addAxisCamera-java.lang.String-java.lang.String-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addAxisCamera</h4>
<pre>public&nbsp;<a href="../../../../edu/wpi/cscore/AxisCamera.html" title="class in edu.wpi.cscore">AxisCamera</a>&nbsp;addAxisCamera(java.lang.String&nbsp;name,
                                java.lang.String&nbsp;host)</pre>
<div class="block">Adds an Axis IP camera.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>name</code> - The name to give the camera</dd>
<dd><code>host</code> - Camera host IP or DNS name (e.g. "10.x.y.11")</dd>
</dl>
</li>
</ul>
<a name="addAxisCamera-java.lang.String-java.lang.String:A-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addAxisCamera</h4>
<pre>public&nbsp;<a href="../../../../edu/wpi/cscore/AxisCamera.html" title="class in edu.wpi.cscore">AxisCamera</a>&nbsp;addAxisCamera(java.lang.String&nbsp;name,
                                java.lang.String[]&nbsp;hosts)</pre>
<div class="block">Adds an Axis IP camera.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>name</code> - The name to give the camera</dd>
<dd><code>hosts</code> - Array of Camera host IPs/DNS names</dd>
</dl>
</li>
</ul>
<a name="getVideo--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getVideo</h4>
<pre>public&nbsp;<a href="../../../../edu/wpi/cscore/CvSink.html" title="class in edu.wpi.cscore">CvSink</a>&nbsp;getVideo()</pre>
<div class="block">Get OpenCV access to the primary camera feed.  This allows you to
 get images from the camera for image processing on the roboRIO.

 <p>This is only valid to call after a camera feed has been added
 with startAutomaticCapture() or addServer().</div>
</li>
</ul>
<a name="getVideo-edu.wpi.cscore.VideoSource-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getVideo</h4>
<pre>public&nbsp;<a href="../../../../edu/wpi/cscore/CvSink.html" title="class in edu.wpi.cscore">CvSink</a>&nbsp;getVideo(<a href="../../../../edu/wpi/cscore/VideoSource.html" title="class in edu.wpi.cscore">VideoSource</a>&nbsp;camera)</pre>
<div class="block">Get OpenCV access to the specified camera.  This allows you to get
 images from the camera for image processing on the roboRIO.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>camera</code> - Camera (e.g. as returned by startAutomaticCapture).</dd>
</dl>
</li>
</ul>
<a name="getVideo-java.lang.String-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getVideo</h4>
<pre>public&nbsp;<a href="../../../../edu/wpi/cscore/CvSink.html" title="class in edu.wpi.cscore">CvSink</a>&nbsp;getVideo(java.lang.String&nbsp;name)</pre>
<div class="block">Get OpenCV access to the specified camera.  This allows you to get
 images from the camera for image processing on the roboRIO.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>name</code> - Camera name</dd>
</dl>
</li>
</ul>
<a name="putVideo-java.lang.String-int-int-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putVideo</h4>
<pre>public&nbsp;<a href="../../../../edu/wpi/cscore/CvSource.html" title="class in edu.wpi.cscore">CvSource</a>&nbsp;putVideo(java.lang.String&nbsp;name,
                         int&nbsp;width,
                         int&nbsp;height)</pre>
<div class="block">Create a MJPEG stream with OpenCV input. This can be called to pass custom
 annotated images to the dashboard.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>name</code> - Name to give the stream</dd>
<dd><code>width</code> - Width of the image being sent</dd>
<dd><code>height</code> - Height of the image being sent</dd>
</dl>
</li>
</ul>
<a name="addServer-java.lang.String-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addServer</h4>
<pre>public&nbsp;<a href="../../../../edu/wpi/cscore/MjpegServer.html" title="class in edu.wpi.cscore">MjpegServer</a>&nbsp;addServer(java.lang.String&nbsp;name)</pre>
<div class="block">Adds a MJPEG server at the next available port.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>name</code> - Server name</dd>
</dl>
</li>
</ul>
<a name="addServer-java.lang.String-int-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addServer</h4>
<pre>public&nbsp;<a href="../../../../edu/wpi/cscore/MjpegServer.html" title="class in edu.wpi.cscore">MjpegServer</a>&nbsp;addServer(java.lang.String&nbsp;name,
                             int&nbsp;port)</pre>
<div class="block">Adds a MJPEG server.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>name</code> - Server name</dd>
</dl>
</li>
</ul>
<a name="addServer-edu.wpi.cscore.VideoSink-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addServer</h4>
<pre>public&nbsp;void&nbsp;addServer(<a href="../../../../edu/wpi/cscore/VideoSink.html" title="class in edu.wpi.cscore">VideoSink</a>&nbsp;server)</pre>
<div class="block">Adds an already created server.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>server</code> - Server</dd>
</dl>
</li>
</ul>
<a name="removeServer-java.lang.String-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeServer</h4>
<pre>public&nbsp;void&nbsp;removeServer(java.lang.String&nbsp;name)</pre>
<div class="block">Removes a server by name.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>name</code> - Server name</dd>
</dl>
</li>
</ul>
<a name="getServer--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getServer</h4>
<pre>public&nbsp;<a href="../../../../edu/wpi/cscore/VideoSink.html" title="class in edu.wpi.cscore">VideoSink</a>&nbsp;getServer()</pre>
<div class="block">Get server for the primary camera feed.

 <p>This is only valid to call after a camera feed has been added
 with startAutomaticCapture() or addServer().</div>
</li>
</ul>
<a name="getServer-java.lang.String-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getServer</h4>
<pre>public&nbsp;<a href="../../../../edu/wpi/cscore/VideoSink.html" title="class in edu.wpi.cscore">VideoSink</a>&nbsp;getServer(java.lang.String&nbsp;name)</pre>
<div class="block">Gets a server by name.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>name</code> - Server name</dd>
</dl>
</li>
</ul>
<a name="addCamera-edu.wpi.cscore.VideoSource-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addCamera</h4>
<pre>public&nbsp;void&nbsp;addCamera(<a href="../../../../edu/wpi/cscore/VideoSource.html" title="class in edu.wpi.cscore">VideoSource</a>&nbsp;camera)</pre>
<div class="block">Adds an already created camera.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>camera</code> - Camera</dd>
</dl>
</li>
</ul>
<a name="removeCamera-java.lang.String-">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>removeCamera</h4>
<pre>public&nbsp;void&nbsp;removeCamera(java.lang.String&nbsp;name)</pre>
<div class="block">Removes a camera by name.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>name</code> - Camera name</dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!--   -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../edu/wpi/first/wpilibj/BuiltInAccelerometer.html" title="class in edu.wpi.first.wpilibj"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../edu/wpi/first/wpilibj/CANSpeedController.html" title="interface in edu.wpi.first.wpilibj"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?edu/wpi/first/wpilibj/CameraServer.html" target="_top">Frames</a></li>
<li><a href="CameraServer.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>