PosturePerfection
|
Process the output of an Inference::InferenceCore
More...
#include <post_processor.h>
Public Member Functions | |
PostProcessor (float confidence_threshold, IIR::SmoothingSettings smoothing_settings) | |
Construct a new Post Processor object. More... | |
ProcessedResults | run (Inference::InferenceResults inference_core_output) |
Apply post processing to the given Inference::InferenceCore output. More... | |
bool | set_confidence_threshold (float confidence_threshold) |
Dynamically update the confidence threshold to allow better calibration. More... | |
float | get_confidence_threshold () |
Get the confidence threshold object. More... | |
Process the output of an Inference::InferenceCore
This class contains some processing steps to make the output of the Inference::InferenceCore
more useful. The following operations are performed to process the raw data:
PostProcessing::PostProcessor::PostProcessor | ( | float | confidence_threshold, |
IIR::SmoothingSettings | smoothing_settings | ||
) |
Construct a new Post Processor object.
confidence_threshold | Confidence value that must be exceeded for a prediction for a given body part to be useable |
smoothing_settings | Settings for the IIR filter |
float PostProcessing::PostProcessor::get_confidence_threshold | ( | ) |
Get the confidence threshold object.
float
Currently set confidence threshold ProcessedResults PostProcessing::PostProcessor::run | ( | Inference::InferenceResults | inference_core_output | ) |
Apply post processing to the given Inference::InferenceCore
output.
inference_core_output | Output from an Inference::InferenceCore being run |
ProcessedResults
bool PostProcessing::PostProcessor::set_confidence_threshold | ( | float | confidence_threshold | ) |
Dynamically update the confidence threshold to allow better calibration.
confidence_threshold | The updated confidence threshold in the range [0, 1] |
true
If updating threshold was successful false
If the new threshold value is invalid