68 std::string_view path);
87 [[deprecated(
"Call StartAutomaticCapture with a HttpCamera instead.")]]
98 [[deprecated(
"Call StartAutomaticCapture with a HttpCamera instead.")]]
109 [[deprecated(
"Call StartAutomaticCapture with a HttpCamera instead.")]]
120 [[deprecated(
"Call StartAutomaticCapture with a HttpCamera instead.")]]
131 template <
typename T>
132 [[deprecated(
"Call StartAutomaticCapture with a HttpCamera instead.")]]
144 [[deprecated(
"Call StartAutomaticCapture with a HttpCamera instead.")]]
146 std::string_view host);
155 [[deprecated(
"Call StartAutomaticCapture with a HttpCamera instead.")]]
165 [[deprecated(
"Call StartAutomaticCapture with a HttpCamera instead.")]]
167 const std::string& host);
176 [[deprecated(
"Call StartAutomaticCapture with a HttpCamera instead.")]]
178 std::span<const std::string> hosts);
187 template <
typename T>
188 [[deprecated(
"Call StartAutomaticCapture with a HttpCamera instead.")]]
190 std::initializer_list<T> hosts) {
191 std::vector<std::string> vec;
192 vec.reserve(hosts.size());
193 for (
const auto& host : hosts) {
194 vec.emplace_back(host);
A source that represents an Axis IP camera.
Definition cscore_oo.h:910
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:25
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::AxisCamera AddAxisCamera(std::string_view name, std::string_view host)
Adds an Axis IP camera.
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::AxisCamera AddAxisCamera(std::string_view name, const std::string &host)
Adds an Axis IP camera.
static WPI_UNIGNORE_DEPRECATED 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 cs::AxisCamera AddAxisCamera(std::string_view name, const char *host)
Adds an Axis IP camera.
static WPI_IGNORE_DEPRECATED cs::AxisCamera AddAxisCamera(std::string_view host)
Adds an Axis IP camera.
static cs::AxisCamera AddAxisCamera(const char *host)
Adds an Axis IP camera.
static void RemoveCamera(std::string_view name)
Removes a camera by name.
static cs::AxisCamera AddAxisCamera(std::string_view name, std::initializer_list< T > hosts)
Adds an Axis IP camera.
Definition CameraServer.h:189
static constexpr uint16_t kBasePort
CameraServer base port.
Definition CameraServer.h:28
static cs::AxisCamera AddAxisCamera(std::initializer_list< T > hosts)
Adds an Axis IP camera.
Definition CameraServer.h:133
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 cs::AxisCamera AddAxisCamera(std::span< const std::string > hosts)
Adds an Axis IP camera.
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::AxisCamera AddAxisCamera(std::string_view name, std::span< const std::string > hosts)
Adds an Axis IP 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::AxisCamera AddAxisCamera(const std::string &host)
Adds an Axis IP camera.
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.
#define WPI_IGNORE_DEPRECATED
Definition deprecated.h:16
#define WPI_UNIGNORE_DEPRECATED
Definition deprecated.h:27
PixelFormat
Definition cscore_cpp.h:63