15 #include <wpi/ArrayRef.h>
16 #include <wpi/Twine.h>
29 static constexpr uint16_t kBasePort = 1181;
30 static constexpr
int kSize640x480 = 0;
31 static constexpr
int kSize320x240 = 1;
32 static constexpr
int kSize160x120 = 2;
130 template <
typename T>
172 template <
typename T>
174 std::initializer_list<T> hosts);
284 std::unique_ptr<Impl> m_impl;
289 #include "cameraserver/CameraServer.inc"
WPILib FRC namespace.
Definition: SPIAccelerometerSim.h:18
cs::MjpegServer AddServer(const wpi::Twine &name)
Adds a MJPEG server at the next available port.
void AddCamera(const cs::VideoSource &camera)
Adds an already created camera.
A source for video that provides a sequence of frames.
Definition: cscore_oo.h:97
A sink for video that accepts a sequence of frames.
Definition: cscore_oo.h:689
cs::UsbCamera StartAutomaticCapture()
Start automatically capturing images to send to the dashboard.
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:41
void SetSize(int size)
Sets the size of the image to use.
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:370
void RemoveServer(const wpi::Twine &name)
Removes a server by name.
cs::AxisCamera AddAxisCamera(const wpi::Twine &host)
Adds an Axis IP camera.
A source for user code to provide OpenCV images as video frames.
Definition: cscore_oo.h:558
static CameraServer * GetInstance()
Get the CameraServer instance.
void RemoveCamera(const wpi::Twine &name)
Removes a camera by name.
cs::CvSink GetVideo()
Get OpenCV access to the primary camera feed.
Singleton class for creating and keeping camera servers.
Definition: CameraServer.h:27
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
Definition: Twine.h:79
A sink that acts as a MJPEG-over-HTTP network server.
Definition: cscore_oo.h:796
A source that represents an Axis IP camera.
Definition: cscore_oo.h:501
A sink for user code to accept video frames as OpenCV images.
Definition: cscore_oo.h:877