PosturePerfection
Public Member Functions
PreProcessing::PreProcessor Class Reference

Pre-process the input image before passing to Inference::InferenceCore More...

#include <pre_processor.h>

Public Member Functions

 PreProcessor (size_t model_width, size_t model_height)
 Construct a new PreProcessor object. More...
 
PreProcessedImage run (cv::Mat cv_image)
 Apply pre processing to the given input image. More...
 

Detailed Description

Pre-process the input image before passing to Inference::InferenceCore

This class contains some pre processing steps to allow an input image to be passed to the Inference::InferenceCore. The following operations are performed to process the raw data:

Constructor & Destructor Documentation

◆ PreProcessor()

PreProcessing::PreProcessor::PreProcessor ( size_t  model_width,
size_t  model_height 
)

Construct a new PreProcessor object.

Parameters
model_widthDesired width of the resized image (should match Inference::InferenceCore::model_input_width)
model_heightDesired height of the resized image (should match Inference::InferenceCore::model_input_height)
Returns
The resized array of pixels of the input image

Member Function Documentation

◆ run()

PreProcessedImage PreProcessing::PreProcessor::run ( cv::Mat  cv_image)

Apply pre processing to the given input image.

Parameters
cv_imageThe OpenCV image to be preprocessed
Returns
PreProcessedImage after resizing and normalising

The documentation for this class was generated from the following files: