WPILibC++ 2023.4.3
|
A source for using the raw frame API to provide opencv images. More...
#include <cscore_raw_cv.h>
Public Member Functions | |
RawCvSource ()=default | |
RawCvSource (std::string_view name, const VideoMode &mode) | |
Create a Raw OpenCV source. More... | |
RawCvSource (std::string_view name, VideoMode::PixelFormat pixelFormat, int width, int height, int fps) | |
Create a Raw OpenCV source. More... | |
void | PutFrame (cv::Mat &image) |
Put an OpenCV image and notify sinks. More... | |
A source for using the raw frame API to provide opencv images.
If you are using the WPILib OpenCV builds, do not use this, and instead include "cscore_cv.h" to get a more performant version.
This is not dependent on any opencv binary ABI, and can be used with versions of OpenCV that are not 3. If using OpenCV 3, use CvSource.
|
default |
|
inline |
Create a Raw OpenCV source.
name | Source name (arbitrary unique identifier) |
mode | Video mode being generated |
|
inline |
Create a Raw OpenCV source.
name | Source name (arbitrary unique identifier) |
pixelFormat | Pixel format |
width | width |
height | height |
fps | fps |
|
inline |
Put an OpenCV image and notify sinks.
Only 8-bit single-channel or 3-channel (with BGR channel order) images are supported. If the format, depth or channel order is different, use cv::Mat::convertTo() and/or cv::cvtColor() to convert it first.
image | OpenCV image |