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

有一个疑问想请教 #16

Open
lvyang98 opened this issue Apr 22, 2020 · 3 comments
Open

有一个疑问想请教 #16

lvyang98 opened this issue Apr 22, 2020 · 3 comments

Comments

@lvyang98
Copy link

请问你是采用什么方法进行图像分割的,比如等于号、根号这种你是如何处理的?期待你的回答,谢谢

@Roujack
Copy link
Owner

Roujack commented Apr 22, 2020

其实输入是有假设的,即假设单个字符一般是联通的(因此根号是一个连通体)。这样采用opencv的findContour就可以分割出来。等于号的处理是,先识别出两个横线,然后在词法分析的时候(把字符合并成一个最小单元),需要确定横线是分数线,减号,还是等于号。
如果这个假设不成立,你想要应用到更加通用的场景,字符之间可以连笔,单个字符可以多个笔划,不建议采用切割的方式,建议采用端到端的模型去做。

@lvyang98
Copy link
Author

我的想法是,在假设没有粘连的情况下,我们切分时将等于号(用连通域分割出的两个横线)合并成一个等于号,你觉得这种想法可行不

@Roujack
Copy link
Owner

Roujack commented Apr 29, 2020

大概是这样做的。你看看词法分析器的知识。

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

2 participants