66 std::string_view path);
A source for user code to accept video frames as OpenCV images.
Definition cscore_cv.h:86
A source for user code to provide OpenCV images as video frames.
Definition cscore_cv.h:23
A sink that acts as a MJPEG-over-HTTP network server.
Definition cscore_oo.h:1346
A source that represents a USB camera.
Definition cscore_oo.h:700
A sink for video that accepts a sequence of frames.
Definition cscore_oo.h:1135
A source for video that provides a sequence of frames.
Definition cscore_oo.h:253
Singleton class for creating and keeping camera servers.
Definition CameraServer.h:23
static cs::UsbCamera StartAutomaticCapture()
Start automatically capturing images to send to the dashboard.
static cs::MjpegServer StartAutomaticCapture(const cs::VideoSource &camera)
Start automatically capturing images to send to the dashboard from an existing camera.
static cs::MjpegServer AddServer(std::string_view name, int port)
Adds a MJPEG server.
static cs::CvSource PutVideo(std::string_view name, int width, int height)
Create a MJPEG stream with OpenCV input.
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::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 cs::CvSink GetVideo(const cs::VideoSource &camera)
Get OpenCV access to the specified camera.
static void RemoveCamera(std::string_view name)
Removes a camera by name.
static constexpr uint16_t kBasePort
CameraServer base port.
Definition CameraServer.h:26
static cs::CvSink GetVideo(std::string_view name, cs::VideoMode::PixelFormat pixelFormat)
Get OpenCV access to the specified camera.
static cs::UsbCamera StartAutomaticCapture(int dev)
Start automatically capturing images to send to the dashboard.
static cs::UsbCamera StartAutomaticCapture(std::string_view name, std::string_view path)
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, cs::VideoMode::PixelFormat pixelFormat)
Get OpenCV access to the specified camera.
static cs::UsbCamera StartAutomaticCapture(std::string_view name, int dev)
Start automatically capturing images to send to the dashboard.
static cs::CvSink GetVideo()
Get OpenCV access to the primary camera feed.
static cs::VideoSink GetServer()
Get server for the primary camera feed.
static cs::CvSink GetVideo(std::string_view name)
Get OpenCV access to the specified camera.
Definition SystemServer.h:9
PixelFormat
Definition cscore_cpp.h:63