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

OCR抽風 抓取ROI失敗 #389

Open
Vincent-2019 opened this issue Oct 13, 2024 · 5 comments
Open

OCR抽風 抓取ROI失敗 #389

Vincent-2019 opened this issue Oct 13, 2024 · 5 comments

Comments

@Vincent-2019
Copy link

向瑪莉佬請安
我遇到這個問題,麻煩您幫我看看:
ROI原本是正確的(748, 158) 但OCR識別後會到達錯誤地方(808,165)
L452-453
maa20241013.log
以下是原碼區,出現點在resource 裡面的 task.json 與 excel.py
https://github.com/Vincent-2019/MRA

@Vincent-2019
Copy link
Author

感謝幫忙!!!

@Vincent-2019
Copy link
Author

assets/resource/pipeline 這是檔案path

@Windsland52
Copy link
Member

Windsland52 commented Oct 13, 2024

看了下log,识别结果没有问题,可能是bug?

[filtered_results_=[{"box":[748,158,84,19],"score":0.908324,"text":"樺石發財樹"}]] [best_result_={"box":[748,158,84,19],"score":0.908324,"text":"樺石發財樹"}] [cost=2452ms] [param_.model=] [param_.only_rec=false] [param_.expected=["樺石發財樹"]]

@Vincent-2019
Copy link
Author

是的,
在前半段识别文字起点的时候一切正常,
但是到了后面传送roi给custom的时候无法正常传送(808,165)

@MistEO
Copy link
Member

MistEO commented Oct 15, 2024

[2024-10-13 16:02:48.278][TRC][Px3764][Tx60461][Recognizer.cpp][L350][MaaNS::TaskNS::Recognizer::get_roi] pre task [name=辨別位置(樺石發財樹)] [raw=[84 x 19 from (748, 158)]] 
[2024-10-13 16:02:48.384][TRC][Px3764][Tx60461][OCRer.cpp][L48][MaaNS::VisionNS::OCRer::analyze] OCRTask [uid_=300000002] [all_results_=[{"box":[808,165,14,6],"score":0.000000,"text":""}]] [filtered_results_=[{"box":[808,165,14,6],"score":0.000000,"text":""}]] [best_result_={"box":[808,165,14,6],"score":0.000000,"text":""}] [cost=105ms] [param_.model=] [param_.only_rec=false] [param_.expected=[".*"]] 

没看明白,这里有啥问题? 辨別位置(樺石發財樹) 是 (748, 158, 84, 19) (x, y, 宽,高),是一个矩形,在这个矩形 ROI 中去识别 OCRTask,得到结果是 [808,165,14,6] ,挺正常的啊?

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