NVIDIA DeepStream SDK API Reference

9.2 Release
ReIDFactoryParams Class Reference

Detailed Description

Stores the implementation type selected by the factory.

Definition at line 32 of file sources/libs/nvmultiobjecttracker/include/modules/ReID/ReID_factory.hpp.

Inheritance diagram for ReIDFactoryParams:
Collaboration diagram for ReIDFactoryParams:

Public Member Functions

 ReIDFactoryParams ()
 Construct factory parameters with the dummy ReID implementation selected. More...
 
 ReIDFactoryParams (const std::string &configFilePath, const std::string moduleName)
 Construct a ReIDFactoryParams instance. More...
 
 ReIDFactoryParams (const YAML::Node &fn)
 Construct a ReIDFactoryParams instance. More...
 
void read (const YAML::Node &fn) override
 Load configuration values from a YAML node. More...
 
 ReIDFactoryParams ()
 Construct factory parameters with the dummy ReID implementation selected. More...
 
 ReIDFactoryParams (const std::string &configFilePath, const std::string moduleName)
 Construct a ReIDFactoryParams instance. More...
 
 ReIDFactoryParams (const YAML::Node &fn)
 Construct a ReIDFactoryParams instance. More...
 
void read (const YAML::Node &fn) override
 Load configuration values from a YAML node. More...
 

Static Public Member Functions

static std::string resolvePathRelativeToConfig (const std::string &configFilePath, const std::string &filePath)
 Resolve a configured path relative to the tracker configuration file. More...
 
static std::string resolvePathRelativeToConfig (const std::string &configFilePath, const std::string &filePath)
 Resolve a configured path relative to the tracker configuration file. More...
 
static const YAML::Node getConfigRoot (const std::string &configFilePath, const bool printMessage=false)
 Load the root YAML node from a tracker configuration file. More...
 
static const YAML::Node getConfigRoot (const std::string &configFilePath, const bool printMessage=false)
 Load the root YAML node from a tracker configuration file. More...
 

Data Fields

REID_TYPES m_reidType
 The type of reid module. More...
 

Constructor & Destructor Documentation

◆ ReIDFactoryParams() [1/6]

ReIDFactoryParams::ReIDFactoryParams ( )
inline

Construct factory parameters with the dummy ReID implementation selected.

Definition at line 36 of file sources/libs/nvmultiobjecttracker/include/modules/ReID/ReID_factory.hpp.

References DUMMY_REID, and m_reidType.

Referenced by read().

◆ ReIDFactoryParams() [2/6]

ReIDFactoryParams::ReIDFactoryParams ( const std::string &  configFilePath,
const std::string  moduleName 
)
inline

Construct a ReIDFactoryParams instance.

Parameters
[in]configFilePathPath to the tracker configuration file.
[in]moduleNameConfiguration module name.

Definition at line 46 of file sources/libs/nvmultiobjecttracker/include/modules/ReID/ReID_factory.hpp.

References NvTrackerParams::getConfigRoot(), and read().

◆ ReIDFactoryParams() [3/6]

ReIDFactoryParams::ReIDFactoryParams ( const YAML::Node &  fn)
inline

Construct a ReIDFactoryParams instance.

Parameters
[in]fnParsed YAML node.

Definition at line 56 of file sources/libs/nvmultiobjecttracker/include/modules/ReID/ReID_factory.hpp.

References read().

◆ ReIDFactoryParams() [4/6]

ReIDFactoryParams::ReIDFactoryParams ( )
inline

Construct factory parameters with the dummy ReID implementation selected.

Definition at line 36 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/ReID/ReID_factory.hpp.

References DUMMY_REID, and m_reidType.

◆ ReIDFactoryParams() [5/6]

ReIDFactoryParams::ReIDFactoryParams ( const std::string &  configFilePath,
const std::string  moduleName 
)
inline

Construct a ReIDFactoryParams instance.

Parameters
[in]configFilePathPath to the tracker configuration file.
[in]moduleNameConfiguration module name.

Definition at line 46 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/ReID/ReID_factory.hpp.

References NvTrackerParams::getConfigRoot(), and read().

◆ ReIDFactoryParams() [6/6]

ReIDFactoryParams::ReIDFactoryParams ( const YAML::Node &  fn)
inline

Construct a ReIDFactoryParams instance.

Parameters
[in]fnParsed YAML node.

Definition at line 56 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/ReID/ReID_factory.hpp.

References read().

Member Function Documentation

◆ getConfigRoot() [1/2]

static const YAML::Node NvTrackerParams::getConfigRoot ( const std::string &  configFilePath,
const bool  printMessage = false 
)
inlinestaticinherited

◆ getConfigRoot() [2/2]

static const YAML::Node NvTrackerParams::getConfigRoot ( const std::string &  configFilePath,
const bool  printMessage = false 
)
inlinestaticinherited

Load the root YAML node from a tracker configuration file.

Parameters
[in]configFilePathPath to the tracker configuration file.
[in]printMessageEnables warning output when the configuration cannot be loaded.
Returns
Loaded YAML root node, or an empty node when loading fails.

Definition at line 121 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/NvMultiObjectTracker/NvTrackerParams.hpp.

References CLOG.

◆ read() [1/2]

void ReIDFactoryParams::read ( const YAML::Node &  fn)
inlineoverridevirtual

Load configuration values from a YAML node.

Parameters
[in]fnParsed YAML node.

Set the default values.

Validate the ReID type in the range 0 through 3.

Implements NvTrackerParams.

Definition at line 65 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/ReID/ReID_factory.hpp.

References m_reidType, and ReIDFactoryParams().

◆ read() [2/2]

void ReIDFactoryParams::read ( const YAML::Node &  fn)
inlineoverridevirtual

Load configuration values from a YAML node.

Parameters
[in]fnParsed YAML node.

Set the default values.

Validate the ReID type in the range 0 through 3.

Implements NvTrackerParams.

Definition at line 65 of file sources/libs/nvmultiobjecttracker/include/modules/ReID/ReID_factory.hpp.

References m_reidType, and ReIDFactoryParams().

Referenced by ReIDFactoryParams().

◆ resolvePathRelativeToConfig() [1/2]

static std::string NvTrackerParams::resolvePathRelativeToConfig ( const std::string &  configFilePath,
const std::string &  filePath 
)
inlinestaticinherited

Resolve a configured path relative to the tracker configuration file.

Existing paths are canonicalized, while nonexistent relative paths remain joined to the configuration directory.

Parameters
[in]configFilePathPath to the tracker configuration file.
[in]filePathAbsolute or configuration-relative path to resolve.
Returns
Resolved path, or the original path when the configuration path cannot be resolved.

Definition at line 55 of file sources/libs/nvmultiobjecttracker/include/modules/NvMultiObjectTracker/NvTrackerParams.hpp.

Referenced by CommunicatorParams::CommunicatorParams(), and MqttCommunicatorParams::MqttCommunicatorParams().

◆ resolvePathRelativeToConfig() [2/2]

static std::string NvTrackerParams::resolvePathRelativeToConfig ( const std::string &  configFilePath,
const std::string &  filePath 
)
inlinestaticinherited

Resolve a configured path relative to the tracker configuration file.

Existing paths are canonicalized, while nonexistent relative paths remain joined to the configuration directory.

Parameters
[in]configFilePathPath to the tracker configuration file.
[in]filePathAbsolute or configuration-relative path to resolve.
Returns
Resolved path, or the original path when the configuration path cannot be resolved.

Definition at line 55 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/NvMultiObjectTracker/NvTrackerParams.hpp.

Field Documentation

◆ m_reidType

REID_TYPES ReIDFactoryParams::m_reidType

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