69 std::unique_ptr<cv::Mat> m_image;
71 std::atomic_bool m_enabled;
85 std::function<
void(T&)> listener);
93 std::function<void(T&)> m_listener;
A source for video that provides a sequence of frames.
Definition: cscore_oo.h:96
Non-template base class for VisionRunner.
Definition: VisionRunner.h:20
void RunOnce()
Runs the pipeline one time, giving it the next image from the video source specified in the construct...
virtual void DoProcess(cv::Mat &image)=0
VisionRunnerBase & operator=(const VisionRunnerBase &)=delete
void Stop()
Stop a RunForever() loop.
VisionRunnerBase(const VisionRunnerBase &)=delete
void RunForever()
A convenience method that calls runOnce() in an infinite loop.
VisionRunnerBase(cs::VideoSource videoSource)
Creates a new vision runner.
A vision runner is a convenient wrapper object to make it easy to run vision pipelines from robot cod...
Definition: VisionRunner.h:82
VisionRunner(cs::VideoSource videoSource, T *pipeline, std::function< void(T &)> listener)
Creates a new vision runner.
Definition: VisionRunner.inc:22
void DoProcess(cv::Mat &image) override
Definition: VisionRunner.inc:29
virtual ~VisionRunner()=default
Definition: AprilTagFieldLayout.h:22