15 #include <wpi/ArrayRef.h>
16 #include <wpi/StringRef.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;
132 template <
typename T>
174 template <
typename T>
176 std::initializer_list<T> hosts);
286 std::unique_ptr<Impl> m_impl;
291 #include "cameraserver/CameraServer.inc"
void RemoveCamera(wpi::StringRef name)
Removes a camera by name.
Definition: SPIAccelerometerSim.h:18
void StartAutomaticCapture(const cs::VideoSource &camera)
Start automatically capturing images to send to the dashboard from an existing camera.
cs::AxisCamera AddAxisCamera(wpi::StringRef host)
Adds an Axis IP camera.
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:648
void RemoveServer(wpi::StringRef name)
Removes a server by name.
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.
A source that represents a USB camera.
Definition: cscore_oo.h:330
A source for user code to provide OpenCV images as video frames.
Definition: cscore_oo.h:518
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:49
static CameraServer * GetInstance()
Get the CameraServer instance.
cs::CvSink GetVideo()
Get OpenCV access to the primary camera feed.
Singleton class for creating and keeping camera servers.
Definition: CameraServer.h:27
cs::MjpegServer AddServer(wpi::StringRef name)
Adds a MJPEG server at the next available port.
cs::CvSource PutVideo(wpi::StringRef name, int width, int height)
Create a MJPEG stream with OpenCV input.
A sink that acts as a MJPEG-over-HTTP network server.
Definition: cscore_oo.h:755
A source that represents an Axis IP camera.
Definition: cscore_oo.h:461
A sink for user code to accept video frames as OpenCV images.
Definition: cscore_oo.h:835