21#include <opencv2/core/core.hpp>
68 public jevois::Parameter<preprocessor::letterbox, preprocessor::scale, preprocessor::mean,
69 preprocessor::stdev, preprocessor::interp, preprocessor::numin>
79 void freeze(
bool doit)
override;
83 std::vector<cv::Mat>
process(cv::Mat
const & img,
bool swaprb, std::vector<vsi_nn_tensor_attr_t>
const & attrs,
84 std::vector<cv::Rect> & crops)
override;
Helper class to assist modules in creating graphical and GUI elements.
A raw image as coming from a V4L2 Camera and/or being sent out to a USB Gadget.
Base class for a module that supports standardized serial messages.
Pre-Processor for neural network pipeline.
std::vector< std::string > itsInfo
virtual ~PreProcessorBlob()
Destructor.
void report(jevois::StdModule *mod, jevois::RawImage *outimg=nullptr, jevois::OptGUIhelper *helper=nullptr, bool overlay=true, bool idle=false) override
Report what happened in last process() to console/output video/GUI.
std::vector< cv::Mat > process(cv::Mat const &img, bool swaprb, std::vector< vsi_nn_tensor_attr_t > const &attrs, std::vector< cv::Rect > &crops) override
Extract blobs from input image.
void freeze(bool doit) override
Freeze/unfreeze parameters that users should not change while running.
Pre-Processor for neural network pipeline.
PreProcessor(std::string const &instance)
Constructor.
Main namespace for all JeVois classes and functions.