PosturePerfection
post_processor.h
Go to the documentation of this file.
1 
23 #ifndef SRC_POST_PROCESSOR_H_
24 #define SRC_POST_PROCESSOR_H_
25 
26 #include <vector>
27 
28 #include "iir.h"
29 #include "inference_core.h"
31 
37 namespace PostProcessing {
38 
52  private:
53  float confidence_threshold;
54  std::vector<IIR::IIRFilter> iir_filters;
55  IIR::IIRFilter smoothed_trustworthiness;
56  bool first_run = true;
57 
58  public:
66  PostProcessor(float confidence_threshold,
67  IIR::SmoothingSettings smoothing_settings);
68 
76  ProcessedResults run(Inference::InferenceResults inference_core_output);
77 
87  bool set_confidence_threshold(float confidence_threshold);
88 
95 };
96 
97 } // namespace PostProcessing
98 #endif // SRC_POST_PROCESSOR_H_
An IIR filter that can be initialised with SOS coefficients.
Definition: iir.h:102
Process the output of an Inference::InferenceCore
Definition: post_processor.h:51
PostProcessor(float confidence_threshold, IIR::SmoothingSettings smoothing_settings)
Construct a new Post Processor object.
Definition: post_processor.cpp:65
ProcessedResults run(Inference::InferenceResults inference_core_output)
Apply post processing to the given Inference::InferenceCore output.
Definition: post_processor.cpp:76
float get_confidence_threshold()
Get the confidence threshold object.
Definition: post_processor.cpp:174
bool set_confidence_threshold(float confidence_threshold)
Dynamically update the confidence threshold to allow better calibration.
Definition: post_processor.cpp:164
Very simple IIR filter.
Wrapper API for the TensorFlow Lite model.
Data structures used in communicating between different parts of the system.
Smoothen the results of inference and average body parts since the system assumes a side-on profile.
Definition: intermediate_structures.cpp:23
Settings for an IIR filter. Wraps the second-order section coefficients for an IIR filter.
Definition: iir.h:54
Results of running the model for all body parts.
Definition: intermediate_structures.h:199
The PostProcessing::Coordinate of each body part.
Definition: intermediate_structures.h:139