JeVoisBase
1.20
JeVois Smart Embedded Machine Vision Toolkit Base Modules
|
Share this page: |
|
|
|
|
|
|
Go to the documentation of this file.
23 #include <opencv2/opencv.hpp>
24 #include <opencv2/videoio.hpp>
35 "relative to Component path)",
"movie.mpg", ParamCateg);
44 public jevois::Parameter<bufferedvideoreader::filename>
68 std::future<void> itsRunFut;
69 std::atomic<bool> itsRunning;
~BufferedVideoReader()
Virtual destructor for safe inheritance.
Simple class to read video frames from a movie file, decode them, and buffer them for smooth playback...
JEVOIS_DECLARE_PARAMETER(thresh1, double, "First threshold for hysteresis", 50.0, ParamCateg)
BufferedVideoReader(std::string const &instance, size_t bufsize=100)
Constructor.
virtual void postUninit() override
Uninit, wait on our run thread and swallow any exception.
cv::Mat get()
Get the next frame as a BGR cv::Mat, or an empty cv::Mat when the movie is finished.
virtual void postInit() override
Start the thread that loads, decodes and pushes the frames into our buffer.