50 return ::wpi::cs::EnumerateUsbCameras(&status);
@ name
Definition base.h:690
UsbCamera(std::string_view name, int dev)
Create a source for a USB camera based on device number.
Definition UsbCamera.hpp:29
void SetPath(std::string_view path)
Change the path to the device.
Definition UsbCamera.hpp:56
static std::vector< UsbCameraInfo > EnumerateUsbCameras()
Enumerate USB cameras on the local system.
Definition UsbCamera.hpp:48
void SetConnectVerbose(int level)
Set how verbose the camera connection messages are.
Definition UsbCamera.hpp:82
UsbCamera(std::string_view name, std::string_view path)
Create a source for a USB camera based on device path.
Definition UsbCamera.hpp:39
UsbCameraInfo GetInfo() const
Get the full camera information for the device.
Definition UsbCamera.hpp:72
std::string GetPath() const
Get the path to the device.
Definition UsbCamera.hpp:64
CS_Status m_status
Definition VideoSource.hpp:372
CS_Source m_handle
Video source handle.
Definition VideoSource.hpp:375
void SetProperty(CS_Property property, int value, CS_Status *status)
CS_Source CreateUsbCameraPath(std::string_view name, std::string_view path, CS_Status *status)
CS_Source CreateUsbCameraDev(std::string_view name, int dev, CS_Status *status)
CS_Property GetSourceProperty(CS_Source source, std::string_view name, CS_Status *status)
int CS_Status
Definition cscore_c.h:41
CameraServer (cscore) namespace.
Definition CvSource.hpp:15
USB camera information.
Definition UsbCameraInfo.hpp:15