|
nndeploy C++ API
0.2.0
nndeploy C++ API
|
#include <recognizer.h>
Public Member Functions | |
| virtual base::Status | deserialize (rapidjson::Value &json) override |
| virtual base::Status | serialize (rapidjson::Value &json, rapidjson::Document::AllocatorType &allocator) override |
Public Member Functions inherited from nndeploy::base::Param | |
| base::Status | addDropdownParam (const std::string &dropdown_param, const std::vector< std::string > &dropdown_values) |
| base::Status | addIoParam (const std::string &io_param) |
| base::Status | addRequiredParam (const std::string &required_param) |
| base::Status | addUiParam (const std::string &ui_param) |
| base::Status | clearDropdownParams () |
| base::Status | clearIoParams () |
| base::Status | clearRequiredParams () |
| base::Status | clearUiParams () |
| virtual base::Status | deserialize (const std::string &json_str) |
| virtual base::Status | get (const std::string &key, base::Any &any) |
| std::map< std::string, std::vector< std::string > > | getDropdownParams () |
| std::vector< std::string > | getIoParams () |
| std::vector< std::string > | getRequiredParams () |
| std::vector< std::string > | getUiParams () |
| virtual base::Status | loadFile (const std::string &path) |
| Param () | |
| base::Status | removeDropdownParam (const std::string &dropdown_param) |
| base::Status | removeIoParam (const std::string &io_param) |
| base::Status | removeRequiredParam (const std::string &required_param) |
| base::Status | removeUiParam (const std::string &ui_param) |
| virtual base::Status | saveFile (const std::string &path) |
| virtual std::string | serialize () |
| virtual base::Status | set (const std::string &key, base::Any &any) |
| base::Status | setDropdownParams (const std::map< std::string, std::vector< std::string >> &dropdown_params) |
| base::Status | setIoParams (const std::vector< std::string > &io_params) |
| base::Status | setRequiredParams (const std::vector< std::string > &required_params) |
| base::Status | setUiParams (const std::vector< std::string > &ui_params) |
| virtual | ~Param () |
Public Attributes | |
| base::BorderType | border_type_ = base::kBorderTypeConstant |
| base::Scalar2d | border_val_ = 0.0 |
| int | bottom_ = 0 |
| base::DataFormat | data_format_ = base::DataFormat::kDataFormatNCHW |
| base::DataType | data_type_ = base::dataTypeOf<float>() |
| base::PixelType | dst_pixel_type_ = base::kPixelTypeBGR |
| int | h_ = -1 |
| base::InterpType | interp_type_ = base::kInterpTypeLinear |
| int | left_ = 0 |
| float | mean_ [3] = {0.5f, 0.5f, 0.5f} |
| bool | normalize_ = true |
| int | rec_batch_size_ = 6 |
| std::vector< int > | rec_image_shape_ = {3, 48, 320} |
| int | right_ = 0 |
| float | scale_ [3] = {1.0f / 255.0f, 1.0f / 255.0f, 1.0f / 255.0f} |
| base::PixelType | src_pixel_type_ = base::kPixelTypeBGR |
| float | std_ [3] = {0.5f, 0.5f, 0.5f} |
| int | top_ = 0 |
| int | w_ = -1 |
Public Attributes inherited from nndeploy::base::Param | |
| std::map< std::string, std::vector< std::string > > | dropdown_params_ |
| std::vector< std::string > | io_params_ |
| std::vector< std::string > | required_params_ |
| std::vector< std::string > | ui_params_ |
Definition at line 39 of file recognizer.h.
|
inlineoverridevirtual |
Reimplemented from nndeploy::base::Param.
Definition at line 128 of file recognizer.h.
|
inlineoverridevirtual |
Reimplemented from nndeploy::base::Param.
Definition at line 64 of file recognizer.h.
| base::BorderType nndeploy::ocr::RecognizerPreProcessParam::border_type_ = base::kBorderTypeConstant |
Definition at line 56 of file recognizer.h.
| base::Scalar2d nndeploy::ocr::RecognizerPreProcessParam::border_val_ = 0.0 |
Definition at line 61 of file recognizer.h.
| int nndeploy::ocr::RecognizerPreProcessParam::bottom_ = 0 |
Definition at line 58 of file recognizer.h.
| base::DataFormat nndeploy::ocr::RecognizerPreProcessParam::data_format_ = base::DataFormat::kDataFormatNCHW |
Definition at line 45 of file recognizer.h.
| base::DataType nndeploy::ocr::RecognizerPreProcessParam::data_type_ = base::dataTypeOf<float>() |
Definition at line 44 of file recognizer.h.
| base::PixelType nndeploy::ocr::RecognizerPreProcessParam::dst_pixel_type_ = base::kPixelTypeBGR |
Definition at line 42 of file recognizer.h.
| int nndeploy::ocr::RecognizerPreProcessParam::h_ = -1 |
Definition at line 46 of file recognizer.h.
| base::InterpType nndeploy::ocr::RecognizerPreProcessParam::interp_type_ = base::kInterpTypeLinear |
Definition at line 43 of file recognizer.h.
| int nndeploy::ocr::RecognizerPreProcessParam::left_ = 0 |
Definition at line 59 of file recognizer.h.
| float nndeploy::ocr::RecognizerPreProcessParam::mean_[3] = {0.5f, 0.5f, 0.5f} |
Definition at line 53 of file recognizer.h.
| bool nndeploy::ocr::RecognizerPreProcessParam::normalize_ = true |
Definition at line 48 of file recognizer.h.
| int nndeploy::ocr::RecognizerPreProcessParam::rec_batch_size_ = 6 |
Definition at line 49 of file recognizer.h.
| std::vector<int> nndeploy::ocr::RecognizerPreProcessParam::rec_image_shape_ = {3, 48, 320} |
Definition at line 50 of file recognizer.h.
| int nndeploy::ocr::RecognizerPreProcessParam::right_ = 0 |
Definition at line 60 of file recognizer.h.
| float nndeploy::ocr::RecognizerPreProcessParam::scale_[3] = {1.0f / 255.0f, 1.0f / 255.0f, 1.0f / 255.0f} |
Definition at line 52 of file recognizer.h.
| base::PixelType nndeploy::ocr::RecognizerPreProcessParam::src_pixel_type_ = base::kPixelTypeBGR |
Definition at line 41 of file recognizer.h.
| float nndeploy::ocr::RecognizerPreProcessParam::std_[3] = {0.5f, 0.5f, 0.5f} |
Definition at line 54 of file recognizer.h.
| int nndeploy::ocr::RecognizerPreProcessParam::top_ = 0 |
Definition at line 57 of file recognizer.h.
| int nndeploy::ocr::RecognizerPreProcessParam::w_ = -1 |
Definition at line 47 of file recognizer.h.