|
|
NVIDIA DeepStream SDK API Reference
|
9.2 Release
|
Go to the documentation of this file.
18 #ifndef DATAASSOCIATORLIB_DATAASSOCIATOR_FACTORY_HPP_
19 #define DATAASSOCIATORLIB_DATAASSOCIATOR_FACTORY_HPP_
22 #include "modules/NvMultiObjectTracker/NvTrackerParams.hpp"
23 #include "modules/DataAssociator/IDataAssociator.hpp"
25 #include "modules/DataAssociator/DataAssociator.hpp"
45 this->
read(configRoot[moduleName]);
61 void read(
const YAML::Node &fn)
override
70 for (YAML::const_iterator fit = fn.begin(); fit != fn.end(); ++fit)
72 std::string paramKey = fit->first.as<std::string>();
73 if (paramKey ==
"dataAssociatorType")
108 return std::make_shared<DataAssociator>(configFilePath);
119 #endif // DATAASSOCIATORLIB_DATAASSOCIATOR_FACTORY_HPP_
DataAssociatorFactoryParams()
Initialize factory parameters with the default associator type.
DataAssociatorFactoryParams m_params
Config params.
@ DEFAULT_ASSOCIATOR
Selects the default data associator.
static const YAML::Node getConfigRoot(const std::string &configFilePath, const bool printMessage=false)
Load the root YAML node from a tracker configuration file.
DATA_ASSOCIATOR_TYPES m_dataAssociatorType
The type of data associator.
Config parser for factory.
DataAssociatorFactoryParams(const YAML::Node &fn)
Initialize factory parameters from a YAML node.
Provides common loading helpers for tracker configuration parameters.
DataAssociatorFactoryParams(const std::string &configFilePath, const std::string moduleName)
Initialize factory parameters from a configuration module.
std::shared_ptr< IDataAssociator > makeDataAssociator(const std::string &configFilePath)
Create the configured data-associator implementation.
Singleton factory for data associator objects.
static DataAssociatorFactory & getInstance()
Return the static instance reference to the factory.
void read(const YAML::Node &fn) override
Update factory parameters from a YAML node.