Solar
Public Member Functions | List of all members
SolAR::MODULES::OPENCV::SolARYOLACTSegmentationOpencv Class Reference

Perform 2D instance segmentation based on the YOLACT network (Not available for Android!). UUID: b6288dde-4e58-4ead-8e41-f2ce98f43626 More...

#include <SolARYOLACTSegmentationOpencv.h>

Inheritance diagram for SolAR::MODULES::OPENCV::SolARYOLACTSegmentationOpencv:
Inheritance graph
[legend]
Collaboration diagram for SolAR::MODULES::OPENCV::SolARYOLACTSegmentationOpencv:
Collaboration graph
[legend]

Public Member Functions

org::bcom::xpcf::XPCFErrorCode onConfigured () override final
 
void unloadComponent () override
 
FrameworkReturnCode segment (const SRef< SolAR::datastructure::Image > image, std::vector< SolAR::datastructure::Rectanglei > &boxes, std::vector< SRef< SolAR::datastructure::Image > > &masks, std::vector< uint32_t > &classIds, std::vector< float > &scores) override
 Perform 2D instance segmentation. More...
 

Detailed Description

Perform 2D instance segmentation based on the YOLACT network (Not available for Android!). UUID: b6288dde-4e58-4ead-8e41-f2ce98f43626

Properties
m_modelFile the path to the yolact model file
type: string; default: ""
m_modelConfig the path to the model configuration file
type: string; default: ""
m_confThresh the confidence threshold
type: float; range : [0..MAX FLOAT]; default: 0.5f
m_maskThresh the mask threshold
type: float; range : [0..MAX FLOAT]; default: 0.f

Member Function Documentation

◆ segment()

FrameworkReturnCode SolAR::MODULES::OPENCV::SolARYOLACTSegmentationOpencv::segment ( const SRef< SolAR::datastructure::Image >  image,
std::vector< SolAR::datastructure::Rectanglei > &  boxes,
std::vector< SRef< SolAR::datastructure::Image > > &  masks,
std::vector< uint32_t > &  classIds,
std::vector< float > &  scores 
)
override

Perform 2D instance segmentation.

Parameters
[in]imageThe input image.
[out]boxesThe bounding boxes of each detected object.
[out]masksThe binary masks corresponding to the bounding boxes. For each mask, regions with a value of 1 correspond to the object, otherwise the background.
[out]classIdsThe id of each object in the bounding box.
[out]scoresThe corresponding confidence scores.
Returns
FrameworkReturnCode::SUCCESS if the segmentation succeed, else FrameworkReturnCode::_ERROR

The documentation for this class was generated from the following file: