vision
Loading...
Searching...
No Matches
DnnDetector_ParamsParser.h
1/*
2 * SPDX-FileCopyrightText: 2023-2023 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: LGPL-2.1-or-later
4 */
5
6
7// Generated by yarpDeviceParamParserGenerator (2.0)
8// This is an automatically generated file. Please do not edit it.
9// It will be re-generated if the cmake flag ALLOW_DEVICE_PARAM_PARSER_GERNERATION is ON.
10
11// Generated on: Sun May 3 12:38:28 2026
12
13
14#ifndef DNNDETECTOR_PARAMSPARSER_H
15#define DNNDETECTOR_PARAMSPARSER_H
16
17#include <yarp/os/Searchable.h>
18#include <yarp/dev/IDeviceDriverParams.h>
19#include <string>
20#include <cmath>
21
50class DnnDetector_ParamsParser : public yarp::dev::IDeviceDriverParams
51{
52public:
54 ~DnnDetector_ParamsParser() override = default;
55
56public:
57 const std::string m_device_classname = {"DnnDetector"};
58 const std::string m_device_name = {"DnnDetector"};
59 bool m_parser_is_strict = false;
61 {
62 int major = 2;
63 int minor = 0;
64 };
65 const parser_version_type m_parser_version = {};
66
67 std::string m_provided_configuration;
68
69 const std::string m_trainedModel_defaultValue = {"yolov3-tiny/yolov3-tiny.weights"};
70 const std::string m_configDNNModel_defaultValue = {"yolov3-tiny/yolov3-tiny.cfg"};
71 const std::string m_framework_defaultValue = {"darknet"};
72 const std::string m_classesTrainedModel_defaultValue = {"coco-object-categories.txt"};
73 const std::string m_backend_defaultValue = {"cuda"};
74 const std::string m_target_defaultValue = {"cpu"};
75 const std::string m_scale_defaultValue = {"0.00392"};
76 const std::string m_mean_defaultValue = {"0.0"};
77 const std::string m_confThreshold_defaultValue = {"0.1"};
78 const std::string m_nmsThreshold_defaultValue = {"0.4"};
79
80 std::string m_trainedModel = {"yolov3-tiny/yolov3-tiny.weights"};
81 std::string m_configDNNModel = {"yolov3-tiny/yolov3-tiny.cfg"};
82 std::string m_framework = {"darknet"};
83 std::string m_classesTrainedModel = {"coco-object-categories.txt"};
84 std::string m_backend = {"cuda"};
85 std::string m_target = {"cpu"};
86 float m_scale = {0.00392};
87 double m_mean = {0.0};
88 float m_confThreshold = {0.1};
89 float m_nmsThreshold = {0.4};
90
91 bool parseParams(const yarp::os::Searchable & config) override;
92 std::string getDeviceClassName() const override { return m_device_classname; }
93 std::string getDeviceName() const override { return m_device_name; }
94 std::string getDocumentationOfDeviceParams() const override;
95 std::vector<std::string> getListOfParams() const override;
96 bool getParamValue(const std::string& paramName, std::string& paramValue) const override;
97 std::string getConfiguration() const override;
98};
99
100#endif
Definition DnnDetector_ParamsParser.h:51
Definition DnnDetector_ParamsParser.h:61