Open a819411321 opened 3 months ago
1, Using python mmdeploy inference Abinet reuslt is true 2, Using C++ mmdeploy inference Abinet result is false `
using mmdeploy::TextDetector; using mmdeploy::TextRecognizer;
int main() {
std::string device_name = "cuda"; //std::string det_model_path = "D:/workspace/mmlab/cpp_weight/Dbnet"; std::string reg_model_path = "D:/workspace/mmlab/cpp_weight/Abinet"; std::string image_path = "D:/1.jpg"; std::string result_path = "D:/result.jpg"; cv::Mat img = cv::imread(image_path); if (img.empty()) { fprintf(stderr, "failed to load image: %s\n", image_path.c_str()); return -1; } mmdeploy::Device device(device_name); TextRecognizer recognizer{ mmdeploy::Model(reg_model_path), device }; TextRecognizer::Result texts = recognizer.Apply(img); mmdeploy_text_recognition_t& text = texts[0]; printf_s("result %s\n", text.text); return 0;
} ` My 1.jpg
C++ mmdeploy SDK inference textreg
mmdeploy-1.2.0-windows-amd64-cuda11.3
No response
same problem
Checklist
Describe the bug
1, Using python mmdeploy inference Abinet reuslt is true 2, Using C++ mmdeploy inference Abinet result is false `
include
include "mmdeploy/text_detector.hpp"
include "mmdeploy/text_recognizer.hpp"
include "utils/argparse.h"
include "utils/mediaio.h"
include "utils/visualize.h"
using mmdeploy::TextDetector; using mmdeploy::TextRecognizer;
int main() {
} ` My 1.jpg
Reproduction
C++ mmdeploy SDK inference textreg
Environment
Error traceback
No response