15 #include <wpi/ArrayRef.h>
16 #include <wpi/Twine.h>
19 #include "cscore_cv.h"
30 static constexpr uint16_t kBasePort = 1181;
31 static constexpr
int kSize640x480 = 0;
32 static constexpr
int kSize320x240 = 1;
33 static constexpr
int kSize160x120 = 2;
131 template <
typename T>
173 template <
typename T>
175 std::initializer_list<T> hosts);
293 std::unique_ptr<Impl> m_impl;
298 #include "cameraserver/CameraServer.inc"
cs::MjpegServer AddSwitchedCamera(const wpi::Twine &name)
Adds a virtual camera for switching between two streams.
cs::MjpegServer AddServer(const wpi::Twine &name)
Adds a MJPEG server at the next available port.
A sink for video that accepts a sequence of frames.
Definition: cscore_oo.h:723
A source that represents an Axis IP camera.
Definition: cscore_oo.h:556
cs::CvSource PutVideo(const wpi::Twine &name, int width, int height)
Create a MJPEG stream with OpenCV input.
A source that represents a USB camera.
Definition: cscore_oo.h:420
cs::VideoSink GetServer()
Get server for the primary camera feed.
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Definition: ArrayRef.h:42
A sink that acts as a MJPEG-over-HTTP network server.
Definition: cscore_oo.h:873
void SetSize(int size)
Sets the size of the image to use.
void RemoveCamera(const wpi::Twine &name)
Removes a camera by name.
cs::AxisCamera AddAxisCamera(const wpi::Twine &host)
Adds an Axis IP camera.
void AddCamera(const cs::VideoSource &camera)
Adds an already created camera.
Singleton class for creating and keeping camera servers.
Definition: CameraServer.h:28
static CameraServer * GetInstance()
Get the CameraServer instance.
cs::UsbCamera StartAutomaticCapture()
Start automatically capturing images to send to the dashboard.
void RemoveServer(const wpi::Twine &name)
Removes a server by name.
A class that enforces constraints on the differential drive kinematics.
Definition: SPIAccelerometerSim.h:16
A source for video that provides a sequence of frames.
Definition: cscore_oo.h:97
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
Definition: Twine.h:85
cs::CvSink GetVideo()
Get OpenCV access to the primary camera feed.