|
|
NVIDIA DeepStream SDK API Reference
|
9.2 Release
|
Go to the documentation of this file.
18 #ifndef REIDSERVICE_FACTORY_HPP_
19 #define REIDSERVICE_FACTORY_HPP_
22 #include "modules/NvMultiObjectTracker/NvTrackerParams.hpp"
23 #include "modules/ReIDService/IReIDService.hpp"
24 #include "modules/ReIDService/DummyReIDService.hpp"
26 #include "modules/ReIDService/ReIDService.hpp"
47 this->
read(configRoot[moduleName]);
63 void read(
const YAML::Node &fn)
override
73 for (YAML::const_iterator fit = fn.begin(); fit != fn.end(); ++fit)
75 std::string paramKey = fit->first.as<std::string>();
76 if (paramKey ==
"reidServiceType")
106 throw std::runtime_error(
"ReID service is not available in the Windows IOU-only tracker build");
108 return std::make_shared<DummyReIDService>(configFilePath);
117 return std::make_shared<ReIDService>(configFilePath);
121 return std::make_shared<DummyReIDService>(configFilePath);
126 return std::make_shared<DummyReIDService>(configFilePath);
137 #endif // REIDSERVICE_FACTORY_HPP_
std::shared_ptr< IReIDService > makeReIDService(const std::string &configFilePath)
Construct the configured ReID service implementation.
ReIDServiceFactoryParams()
Construct ReID-service factory parameters.
REID_SERVICE_TYPES m_reidServiceType
The type of reid service.
Stores the implementation type selected by the factory.
void read(const YAML::Node &fn) override
Load configuration values from a YAML node.
@ REID_SERVICE
Implementation that associates targets through a remote ReID service.
ReIDServiceFactoryParams m_params
Config params.
@ DUMMY_REID_SERVICE
No-op implementation that performs no remote association.
static const YAML::Node getConfigRoot(const std::string &configFilePath, const bool printMessage=false)
Load the root YAML node from a tracker configuration file.
static ReIDServiceFactory & getInstance()
Get the singleton factory instance.
Provides common loading helpers for tracker configuration parameters.
REID_SERVICE_TYPES
Identifies the available ReID-service implementations.
ReIDServiceFactoryParams(const YAML::Node &fn)
Construct a ReIDServiceFactoryParams instance.
Singleton factory that constructs the configured implementation.
ReIDServiceFactoryParams(const std::string &configFilePath, const std::string moduleName)
Construct a ReIDServiceFactoryParams instance.