![]() |
PosturePerfection
|
Frame-by-frame pipeline to process video. More...
#include <pipeline.h>
Public Member Functions | |
void | updated_framerate (FramerateSetting new_settings) |
Pipeline (uint8_t num_inference_core_threads, void(*callback)(PostureEstimating::PoseStatus, cv::Mat)) | |
Construct a new Pipeline object. More... | |
~Pipeline () | |
Destroy the Pipeline object. More... | |
bool | set_confidence_threshold (float threshold) |
Set the confidence threshold. More... | |
float | get_confidence_threshold () |
Get the confidence threshold object. More... | |
float | increase_framerate (void) |
Increment the frame rate to the next predefined value. More... | |
float | decrease_framerate (void) |
Decrement the frame rate to the next predefined value. More... | |
float | get_framerate (void) |
Get the frame rate. More... | |
void | set_ideal_posture (PostureEstimating::Pose pose) |
Set the ideal posture. More... | |
bool | set_pose_change_threshold (float threshold) |
Set the pose change threshold. More... | |
float | get_pose_change_threshold () |
Get the current pose change threshold. More... | |
Frame-by-frame pipeline to process video.
The pipeline for performing all frame-by-frame processing steps, including the pose estimation model. The pipeline incorporates the video capturing stage. The pipeline generates output in the form of a callback, which is called once per frame that passes through the pipeline.
|
explicit |
Construct a new Pipeline object.
The pipeline starts upon construction and starts producing output
num_inference_core_threads | The number of threads to use for the inference core stage |
callback | Function to call for every frame output by the pipeline |
Pipeline::Pipeline::~Pipeline | ( | ) |
Destroy the Pipeline object.
Stops threads and waits for them to complete
float Pipeline::Pipeline::decrease_framerate | ( | void | ) |
Decrement the frame rate to the next predefined value.
If the minimum frame rate of the system is reached, it will not be decreased further and the current (unchanged) frame rate is returned.
float Pipeline::Pipeline::get_confidence_threshold | ( | ) |
Get the confidence threshold object.
float
Currently set confidence threshold float Pipeline::Pipeline::get_framerate | ( | void | ) |
Get the frame rate.
float Pipeline::Pipeline::get_pose_change_threshold | ( | ) |
Get the current pose change threshold.
float
Currently set pose change threshold float Pipeline::Pipeline::increase_framerate | ( | void | ) |
Increment the frame rate to the next predefined value.
If the maximum frame rate of the system is reached, it will not be increased further and the current (unchanged) frame rate is returned.
bool Pipeline::Pipeline::set_confidence_threshold | ( | float | threshold | ) |
Set the confidence threshold.
threshold | New threshold to set |
true
If updating the threshold succeeded false
If updating the threshold did not succeed void Pipeline::Pipeline::set_ideal_posture | ( | PostureEstimating::Pose | pose | ) |
Set the ideal posture.
pose | A previous frame's posture that is to be used as the new ideal posture |
bool Pipeline::Pipeline::set_pose_change_threshold | ( | float | threshold | ) |
Set the pose change threshold.
threshold | New threshold to set |
true
If updating the threshold succeeded false
If updating the threshold did not succeed void Pipeline::Pipeline::updated_framerate | ( | FramerateSetting | new_settings | ) |