|
virtual | ~MyPostProc () |
|
std::vector< jevois::ObjDetect > const & | getDetections () |
|
virtual | ~PostProcessorDetect () |
|
void | freeze (bool doit) override |
|
void | process (std::vector< cv::Mat > const &outs, PreProcessor *preproc) override |
|
void | report (jevois::StdModule *mod, jevois::RawImage *outimg=nullptr, jevois::OptGUIhelper *helper=nullptr, bool overlay=true, bool idle=false) override |
|
std::vector< ObjDetect > const & | latestDetections () const |
|
| JEVOIS_DECLARE_PARAMETER (maxnbox, unsigned int, "Max number of top-scoring boxes to report (for YOLO flavors, " "this is the max for each scale), or 0 for no limit", 500, ParamCateg) |
|
| JEVOIS_DECLARE_PARAMETER (namedonly, bool, "When true, only report (on display and to serial ports) results " "for which we have a class name defined in the class file. This can allow one " "to skip some of the results by simply commenting out their name in the class file " "(make sure your class file then contains class-ID numbers for each named class).", false, ParamCateg) |
|
| JEVOIS_DECLARE_PARAMETER (dthresh, float, "Detection box threshold (in percent confidence) above which " "predictions will be reported. Not all networks use a separate box threshold, " "many only use one threshold confidence threshold (cthresh parameter). The YOLO " "family is an example that uses both box and classification confidences", 15.0F, jevois::Range< float >(0.0F, 100.0F), ParamCateg) |
|
| JEVOIS_DEFINE_ENUM_CLASS (DetectType,(FasterRCNN)(YOLO)(SSD)(TPUSSD)(RAWYOLO)(YOLOv10)(YOLOv10pp)(YOLOX)(YOLOv8)(YOLOv8t)(YOLOv8seg)(YOLOv8segt)) |
|
| JEVOIS_DECLARE_PARAMETER_WITH_CALLBACK (detecttype, DetectType, "Type of detection output format", DetectType::YOLO, DetectType_Values, ParamCateg) |
|
| JEVOIS_DECLARE_PARAMETER (nms, float, "Non-maximum suppression intersection-over-union threshold in percent", 45.0F, jevois::Range< float >(0.0F, 100.0F), ParamCateg) |
|
| JEVOIS_DECLARE_PARAMETER (nmsperclass, bool, "When true, apply non-maximum suppression (NMS) separately for each " "object class, rather than globally. This will allow overlapping boxes as long as " "they belong to different classes", false, ParamCateg) |
|
| JEVOIS_DECLARE_PARAMETER_WITH_CALLBACK (anchors, std::string, "For YOLO-type detection models with raw outputs, " "list of anchors. Should be formatted as: w1, h1, w2, h2, ... ww1, hh1, ww2, hh2, " "... ... where individual entries for a given YOLO layer are separated by commas, " "and successive YOLO layers (from large to small, e.g., first the anchors for 52x52, " "then for 26x26, then for 13x13) are separated by semicolons. Leave empty " "for other models.", "", ParamCateg) |
|
| JEVOIS_DECLARE_PARAMETER (masksmooth, bool, "When true, extract smoother instance segmentation masks, " "which may be marginally slower.", true, ParamCateg) |
|
| JEVOIS_DECLARE_PARAMETER (alpha, unsigned char, "Alpha channel value for drawn results", 64, ParamCateg) |
|
| JEVOIS_DECLARE_PARAMETER (sigmoid, bool, "Apply sigmoid to raw YOLO outputs, use when the last conv layers " "just before yolo/detection/region layers have linear activation (most " "YOLOv2/v3/v4 models, but not YOLOv5/v7 which have logistic activation on their " "last conv)", true, ParamCateg) |
|
virtual | ~PostProcessor () |
|
| Component (std::string const &instance) |
|
virtual | ~Component () |
|
std::shared_ptr< Comp > | addSubComponent (std::string const &instance, Args &&...args) |
|
void | removeSubComponent (std::shared_ptr< Comp > &component) |
|
void | removeSubComponent (std::string const &instance, bool warnIfNotFound=true) |
|
std::shared_ptr< Comp > | getSubComponent (std::string const &instance) const |
|
bool | isTopLevel () const |
|
bool | initialized () const |
|
std::string const & | className () const |
|
std::string const & | instanceName () const |
|
std::vector< std::string > | setParamVal (std::string const ¶mdescriptor, T const &val) |
|
void | setParamValUnique (std::string const ¶mdescriptor, T const &val) |
|
std::vector< std::pair< std::string, T > > | getParamVal (std::string const ¶mdescriptor) const |
|
T | getParamValUnique (std::string const ¶mdescriptor) const |
|
std::vector< std::string > | setParamString (std::string const ¶mdescriptor, std::string const &val) |
|
void | setParamStringUnique (std::string const ¶mdescriptor, std::string const &val) |
|
std::vector< std::pair< std::string, std::string > > | getParamString (std::string const ¶mdescriptor) const |
|
std::string | getParamStringUnique (std::string const ¶mdescriptor) const |
|
void | freezeParam (std::string const ¶mdescriptor, bool doit) |
|
void | freezeAllParams (bool doit) |
|
std::string | descriptor () const |
|
void | setParamsFromFile (std::string const &filename) |
|
std::istream & | setParamsFromStream (std::istream &is, std::string const &absfile) |
|
virtual void | paramInfo (std::shared_ptr< UserInterface > s, std::map< std::string, std::string > &categs, bool skipFrozen, std::string const &cname="", std::string const &pfx="") |
|
void | foreachParam (std::function< void(std::string const &compname, ParameterBase *p)> func, std::string const &cname="") |
|
std::shared_ptr< DynamicParameter< T > > | addDynamicParameter (std::string const &name, std::string const &description, T const &defaultValue, ParameterCategory const &category) |
|
std::shared_ptr< DynamicParameter< T > > | addDynamicParameter (std::string const &name, std::string const &description, T const &defaultValue, ValidValuesSpec< T > const &validValuesSpec, ParameterCategory const &category) |
|
void | setDynamicParameterCallback (std::string const &name, std::function< void(T const &)> cb, bool callnow=true) |
|
void | removeDynamicParameter (std::string const &name, bool throw_if_not_found=true) |
|
void | setPath (std::string const &path) |
|
std::filesystem::path | absolutePath (std::filesystem::path const &path="") |
|
std::shared_ptr< Comp > | addSubComponent (std::string const &instance, Args &&...args) |
|
void | removeSubComponent (std::shared_ptr< Comp > &component) |
|
void | removeSubComponent (std::string const &instance, bool warnIfNotFound=true) |
|
std::shared_ptr< Comp > | getSubComponent (std::string const &instance) const |
|
bool | isTopLevel () const |
|
bool | initialized () const |
|
std::string const & | className () const |
|
std::string const & | instanceName () const |
|
std::vector< std::string > | setParamVal (std::string const ¶mdescriptor, T const &val) |
|
void | setParamValUnique (std::string const ¶mdescriptor, T const &val) |
|
std::vector< std::pair< std::string, T > > | getParamVal (std::string const ¶mdescriptor) const |
|
T | getParamValUnique (std::string const ¶mdescriptor) const |
|
std::vector< std::string > | setParamString (std::string const ¶mdescriptor, std::string const &val) |
|
void | setParamStringUnique (std::string const ¶mdescriptor, std::string const &val) |
|
std::vector< std::pair< std::string, std::string > > | getParamString (std::string const ¶mdescriptor) const |
|
std::string | getParamStringUnique (std::string const ¶mdescriptor) const |
|
void | freezeParam (std::string const ¶mdescriptor, bool doit) |
|
void | freezeAllParams (bool doit) |
|
std::string | descriptor () const |
|
void | setParamsFromFile (std::string const &filename) |
|
std::istream & | setParamsFromStream (std::istream &is, std::string const &absfile) |
|
virtual void | paramInfo (std::shared_ptr< UserInterface > s, std::map< std::string, std::string > &categs, bool skipFrozen, std::string const &cname="", std::string const &pfx="") |
|
void | foreachParam (std::function< void(std::string const &compname, ParameterBase *p)> func, std::string const &cname="") |
|
std::shared_ptr< DynamicParameter< T > > | addDynamicParameter (std::string const &name, std::string const &description, T const &defaultValue, ParameterCategory const &category) |
|
std::shared_ptr< DynamicParameter< T > > | addDynamicParameter (std::string const &name, std::string const &description, T const &defaultValue, ValidValuesSpec< T > const &validValuesSpec, ParameterCategory const &category) |
|
void | setDynamicParameterCallback (std::string const &name, std::function< void(T const &)> cb, bool callnow=true) |
|
void | removeDynamicParameter (std::string const &name, bool throw_if_not_found=true) |
|
void | setPath (std::string const &path) |
|
std::filesystem::path | absolutePath (std::filesystem::path const &path="") |
|
virtual | ~ParameterRegistry () |
|