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截图识别字符末尾有多余的换行 #292

Closed
shfujim opened this issue Jan 2, 2024 · 3 comments
Closed

OCR截图识别字符末尾有多余的换行 #292

shfujim opened this issue Jan 2, 2024 · 3 comments

Comments

@shfujim
Copy link

shfujim commented Jan 2, 2024

请教下:
在cmd中输入

Details

@echo off

set work_path=C:\Umi-OCR_Paddle_v2.0.1

cd %work_path%

for /R . %%s in (*.jpg) do (Umi-OCR.exe --path echo %%s -->>opt.txt)

pause

依次读取当前目录下的jpg并识别, 识别结果依次输出到txt或csv文件,这个文件有额外的空行。请教这个在哪里可以设置?

Snipaste_2024-01-02_19-43-59

@hiroi-sora
Copy link
Owner

按理说 -->> 指令是不会添加多余空行的。我这边测试也是没有空行。

你试试不要用脚本,先单张手动调用Umi-OCR.exe --path xxx -->>opt.txt,看看生成的文件是否正常?

@shfujim
Copy link
Author

shfujim commented Jan 2, 2024

Snipaste_2024-01-02_21-35-01
Snipaste_2024-01-02_21-35-17
Snipaste_2024-01-02_21-35-29
是不是我设别的图片的原因?
D305

@hiroi-sora
Copy link
Owner

软件面板,截图OCR的设置中,段落合并是什么项?如果是 多行-代码段的话,请调回单行试试?

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