Structure containing a set of runtime parameters for the object detection module using your own model ran by the SDK. More...
Functions | |
| CustomObjectDetectionRuntimeParameters (const CustomObjectDetectionProperties &object_detection_properties=CustomObjectDetectionProperties {}, const std::unordered_map< int, CustomObjectDetectionProperties > &object_class_detection_properties=std::unordered_map< int, CustomObjectDetectionProperties > {}) | |
| Default constructor. More... | |
| bool | save (const String &filename) const |
| Saves the current set of parameters into a file to be reloaded with the load() method. More... | |
| bool | load (const String &filename) |
| Loads a set of parameters from the values contained in a previously saved file. More... | |
| bool | encode (String &serialized_content) const |
| Generate a JSON Object (with the struct type as a key) containing the serialized struct, converted into a string. More... | |
| bool | decode (const String &serialized_content) |
| Fill the structure from the serialized json object contained in the input string. More... | |
| bool | operator== (const CustomObjectDetectionRuntimeParameters ¶ms) const |
| bool | operator!= (const CustomObjectDetectionRuntimeParameters ¶ms) const |
Attributes | |
| CustomObjectDetectionProperties | object_detection_properties |
| Global object detection properties. More... | |
| std::unordered_map< int, CustomObjectDetectionProperties > | object_class_detection_properties |
| Per class object detection properties. More... | |
Structure containing a set of runtime parameters for the object detection module using your own model ran by the SDK.
The default constructor sets all parameters to their default settings.
| CustomObjectDetectionRuntimeParameters | ( | const CustomObjectDetectionProperties & | object_detection_properties = CustomObjectDetectionProperties {}, |
| const std::unordered_map< int, CustomObjectDetectionProperties > & | object_class_detection_properties = std::unordered_map< int, CustomObjectDetectionProperties > {} |
||
| ) |
Default constructor.
| object_detection_properties | Global object properties, when not specified in object_class_detection_properties. |
| object_class_detection_properties | Object properties per classes. |
| bool save | ( | const String & | filename | ) | const |
Saves the current set of parameters into a file to be reloaded with the load() method.
| filename | : Name of the file which will be created to store the parameters (extension '.json' will be added if not set). |
| bool load | ( | const String & | filename | ) |
Loads a set of parameters from the values contained in a previously saved file.
| filename | : Path to the file from which the parameters will be loaded (extension '.json' will be added at the end of the filename if not detected). |
| bool encode | ( | String & | serialized_content | ) | const |
Generate a JSON Object (with the struct type as a key) containing the serialized struct, converted into a string.
| serialized_content | output string containing the JSON Object |
| bool decode | ( | const String & | serialized_content | ) |
Fill the structure from the serialized json object contained in the input string.
| serialized_content | input string containing the JSON Object |
| bool operator== | ( | const CustomObjectDetectionRuntimeParameters & | params | ) | const |
Comparison operator ==
| params | CustomObjectDetectionRuntimeParameters to compare |
| bool operator!= | ( | const CustomObjectDetectionRuntimeParameters & | params | ) | const |
Comparison operator !=
| params | CustomObjectDetectionRuntimeParameters to compare |
| CustomObjectDetectionProperties object_detection_properties |
Global object detection properties.
| std::unordered_map<int , CustomObjectDetectionProperties> object_class_detection_properties |
Per class object detection properties.