27 class PreProcessorPythonImpl;
28 class PreProcessorForPython;
42 void freeze(
bool doit)
override;
45 std::vector<cv::Mat>
process(cv::Mat
const & img,
bool swaprb, std::vector<vsi_nn_tensor_attr_t>
const & attrs,
46 std::vector<cv::Rect> & crops)
override;
54 void onParamChange(preprocessor::pypre
const & param, std::string
const & newval)
override;
59 std::shared_ptr<PreProcessorPythonImpl>
itsImpl;
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 written in python.
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::shared_ptr< PreProcessorPythonImpl > itsImpl
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.
virtual ~PreProcessorPython()
Destructor.
void freeze(bool doit) override
Freeze/unfreeze parameters that users should not change while running.
void onParamChange(preprocessor::pypre const ¶m, std::string const &newval) override
Pre-Processor for neural network pipeline.
Main namespace for all JeVois classes and functions.