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

fix skip_lang #783

Closed
wants to merge 8 commits into from
Closed

fix skip_lang #783

wants to merge 8 commits into from

Conversation

popcion
Copy link
Contributor

@popcion popcion commented Dec 10, 2024

发现这部分代码在一开始位置就放错了,从检测OCR后零碎的textline改为检测合并后的text_regions从而提高了langdetect的正确率,从只有零星几个正确识别反转成了仅零星几个错误识别,使得skip_lang有效了(检测库依然不够准确需要进一步提升)

@zyddnys
Copy link
Owner

zyddnys commented Dec 13, 2024

再加个if not ctx.textlines:
await self._report_progress('skip-no-text', True)

@popcion
Copy link
Contributor Author

popcion commented Dec 13, 2024

那个保留在OCR后了,在OCR后立即判断应该更好

@popcion popcion closed this by deleting the head repository Dec 14, 2024
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

Successfully merging this pull request may close these issues.

2 participants