Perform 2D instance segmentation based on the YOLACT network (Not available for Android!). UUID: b6288dde-4e58-4ead-8e41-f2ce98f43626
More...
#include <SolARYOLACTSegmentationOpencv.h>
|
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...
|
|
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 |
◆ 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] | image | The input image. |
[out] | boxes | The bounding boxes of each detected object. |
[out] | masks | The binary masks corresponding to the bounding boxes. For each mask, regions with a value of 1 correspond to the object, otherwise the background. |
[out] | classIds | The id of each object in the bounding box. |
[out] | scores | The corresponding confidence scores. |
- Returns
- FrameworkReturnCode::SUCCESS if the segmentation succeed, else FrameworkReturnCode::_ERROR
The documentation for this class was generated from the following file: