![]() |
PosturePerfection
|
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... | |
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:
| PreProcessing::PreProcessor::PreProcessor | ( | size_t | model_width, |
| size_t | model_height | ||
| ) |
Construct a new PreProcessor object.
| model_width | Desired width of the resized image (should match Inference::InferenceCore::model_input_width) |
| model_height | Desired height of the resized image (should match Inference::InferenceCore::model_input_height) |
| PreProcessedImage PreProcessing::PreProcessor::run | ( | cv::Mat | cv_image | ) |
Apply pre processing to the given input image.
| cv_image | The OpenCV image to be preprocessed |
PreProcessedImage after resizing and normalising