// PaddleOCR车牌识别

#ifndef __OCR_SVTR_H__
#define __OCR_SVTR_H__

#include <migraphx/program.hpp>
#include <CommonDefinition.h>

namespace migraphxSamples
{

class SVTR
{
public:
    SVTR();

    ~SVTR();

    ErrorCode Initialize(InitializationParameterOfSVTR InitializationParameterOfSVTR);

    ErrorCode Infer(cv::Mat &img, std::string &resultsChar, float &resultsdScore, float &maxWHRatio);

private:
    cv::FileStorage configurationFile;

    migraphx::program net;
    cv::Size inputSize;
    std::string inputName;
    migraphx::shape inputShape;
    std::string dictPath;
    std::vector<std::string> charactorDict;

};
}

#endif