32 public Parameter<postprocessor::classoffset, postprocessor::classes, postprocessor::nms,
33 postprocessor::nmsperclass, postprocessor::detecttype,
34 postprocessor::maxnbox, postprocessor::cthresh,
35 postprocessor::dthresh, postprocessor::sigmoid,
36 postprocessor::boxclamp, postprocessor::namedonly,
37 postprocessor::serialreport, postprocessor::masksmooth>
42 using PostProcessor::PostProcessor;
48 void freeze(
bool doit)
override;
65 void onParamChange(postprocessor::detecttype
const & param, postprocessor::DetectType
const & val)
override;
66 void onParamChange(postprocessor::classes
const & param, std::string
const & val)
override;
70 std::shared_ptr<PostProcessorDetectYOLO>
itsYOLO;
Post-Processor for neural network pipeline.
std::vector< ObjDetect > itsDetections
void onParamChange(postprocessor::detecttype const ¶m, postprocessor::DetectType const &val) override
std::map< int, std::string > itsLabels
Mapping from object ID to class name.
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.
void process(std::vector< cv::Mat > const &outs, PreProcessor *preproc) override
Process outputs and draw/send some results.
std::shared_ptr< PostProcessorDetectYOLO > itsYOLO
void freeze(bool doit) override
Freeze/unfreeze parameters that users should not change while running.
virtual ~PostProcessorDetect()
Destructor.
std::vector< ObjDetect > const & latestDetections() const
Get the latest detections, use with caution, not thread-safe.
Post-Processor for neural network pipeline.