mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-05 08:37:06 +08:00
Rename fastdeploy_runtime.h to runtime.h and Frontend to ModelFormat (#263)
rename frontend to model_format
This commit is contained in:
@@ -18,7 +18,8 @@ namespace fastdeploy {
|
||||
void BindPPOCRModel(pybind11::module& m) {
|
||||
// DBDetector
|
||||
pybind11::class_<vision::ocr::DBDetector, FastDeployModel>(m, "DBDetector")
|
||||
.def(pybind11::init<std::string, std::string, RuntimeOption, Frontend>())
|
||||
.def(pybind11::init<std::string, std::string, RuntimeOption,
|
||||
ModelFormat>())
|
||||
.def(pybind11::init<>())
|
||||
|
||||
.def_readwrite("max_side_len", &vision::ocr::DBDetector::max_side_len)
|
||||
@@ -36,7 +37,8 @@ void BindPPOCRModel(pybind11::module& m) {
|
||||
|
||||
// Classifier
|
||||
pybind11::class_<vision::ocr::Classifier, FastDeployModel>(m, "Classifier")
|
||||
.def(pybind11::init<std::string, std::string, RuntimeOption, Frontend>())
|
||||
.def(pybind11::init<std::string, std::string, RuntimeOption,
|
||||
ModelFormat>())
|
||||
.def(pybind11::init<>())
|
||||
|
||||
.def_readwrite("cls_thresh", &vision::ocr::Classifier::cls_thresh)
|
||||
@@ -48,7 +50,7 @@ void BindPPOCRModel(pybind11::module& m) {
|
||||
pybind11::class_<vision::ocr::Recognizer, FastDeployModel>(m, "Recognizer")
|
||||
|
||||
.def(pybind11::init<std::string, std::string, std::string, RuntimeOption,
|
||||
Frontend>())
|
||||
ModelFormat>())
|
||||
.def(pybind11::init<>())
|
||||
|
||||
.def_readwrite("rec_img_h", &vision::ocr::Recognizer::rec_img_h)
|
||||
|
Reference in New Issue
Block a user