Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android demo只能框出文字,没有展示具体提取的文字,有对应的api么 #356

Open
cornflower10 opened this issue Apr 24, 2023 · 3 comments

Comments

@cornflower10
Copy link

android demo只能框出文字,没有展示具体提取的文字,有对应的api么

@cornflower10
Copy link
Author

image

@szaboz
Copy link

szaboz commented Aug 30, 2023

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.

@channingkuo
Copy link

修改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);
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants