Paddle-Lite-Demo
Paddle-Lite-Demo copied to clipboard
android demo只能框出文字,没有展示具体提取的文字,有对应的api么
android demo只能框出文字,没有展示具体提取的文字,有对应的api么
Apparently, issues like this are caused if the .cpp files use incorrect image shapes with the models. I'm currently investigating this problem, my suspicion is that maybe the image shape configurations were not updated at one point when the models were.
修改pipeline.cc文件的这边即可,大概在309行,但是中文字使用openCV的putText方式是乱码 ` predictTime = GetElapsedTime(t);
// visualization auto img_res = Visualization(bgrImage_resize, boxes, savedImagePath); cv::Mat img_vis; cv::resize(img_res, img_vis, cv::Size(textureWidth, textureHeight)); cv::cvtColor(img_vis, img_vis, cv::COLOR_BGR2RGBA); // show ocr results on image VisualizeResults(rec_text, rec_text_score, &img_vis,&visualizeResultsTime); // VisualizeStatus(readGLFBOTime, writeGLTextureTime, predictTime, rec_text, // rec_text_score, visualizeResultsTime, &img_vis); `