67 std::string_view path);
201 CameraServer() =
default;
@ name
Definition base.h:690
static cs::MjpegServer StartAutomaticCapture(const cs::VideoSource &camera)
Start automatically capturing images to send to the dashboard from an existing camera.
static cs::CvSource PutVideo(std::string_view name, int width, int height)
Create a MJPEG stream with OpenCV input.
static cs::CvSink GetVideo(std::string_view name)
Get OpenCV access to the specified camera.
static cs::VideoSink GetServer()
Get server for the primary camera feed.
static void RemoveCamera(std::string_view name)
Removes a camera by name.
static cs::UsbCamera StartAutomaticCapture(int dev)
Start automatically capturing images to send to the dashboard.
static cs::CvSink GetVideo(std::string_view name, wpi::util::PixelFormat pixelFormat)
Get OpenCV access to the specified camera.
static cs::CvSink GetVideo()
Get OpenCV access to the primary camera feed.
static cs::UsbCamera StartAutomaticCapture()
Start automatically capturing images to send to the dashboard.
static void RemoveServer(std::string_view name)
Removes a server by name.
static void AddCamera(const cs::VideoSource &camera)
Adds an already created camera.
static cs::CvSink GetVideo(const cs::VideoSource &camera, wpi::util::PixelFormat pixelFormat)
Get OpenCV access to the specified camera.
static cs::MjpegServer AddSwitchedCamera(std::string_view name)
Adds a virtual camera for switching between two streams.
static cs::VideoSink GetServer(std::string_view name)
Gets a server by name.
static constexpr uint16_t kBasePort
CameraServer base port.
Definition CameraServer.hpp:27
static void AddServer(const cs::VideoSink &server)
Adds an already created server.
static cs::MjpegServer AddServer(std::string_view name)
Adds a MJPEG server at the next available port.
static cs::UsbCamera StartAutomaticCapture(std::string_view name, std::string_view path)
Start automatically capturing images to send to the dashboard.
static cs::UsbCamera StartAutomaticCapture(std::string_view name, int dev)
Start automatically capturing images to send to the dashboard.
static cs::MjpegServer AddServer(std::string_view name, int port)
Adds a MJPEG server.
static cs::CvSink GetVideo(const cs::VideoSource &camera)
Get OpenCV access to the specified camera.
A sink for user code to accept video frames as OpenCV images.
Definition CvSink.hpp:26
A source for user code to provide OpenCV images as video frames.
Definition CvSource.hpp:23
A sink that acts as a MJPEG-over-HTTP network server.
Definition MjpegServer.hpp:18
A source that represents a USB camera.
Definition UsbCamera.hpp:19
A sink for video that accepts a sequence of frames.
Definition VideoSink.hpp:24
A source for video that provides a sequence of frames.
Definition VideoSource.hpp:25
PixelFormat
Pixel formats.
Definition PixelFormat.hpp:14
Definition CvSource.hpp:15