#pragma once #include "preprocessor.h" #include "utils/utils.h" namespace PaddleSolution { class SegPreProcessor : public ImagePreProcessor { public: SegPreProcessor() : _config(nullptr){ }; bool init(std::shared_ptr config); bool single_process(const std::string &fname, float* data, int* ori_w, int* ori_h); bool batch_process(const std::vector& imgs, float* data, int* ori_w, int* ori_h); private: std::shared_ptr _config; }; }