Umi-OCR 图片文字智能识别软件,不需联网,Linux 下运行错误修复,AI 识文一文搞定!

Umi-OCR 图片文字智能识别软件,不需联网,Linux 下运行除错修复,AI 识文一文搞定!

Umi-OCR 是一款开源的图片文字只能识别软件,支持多国语言识别,支持截图OCR / 批量OCR / PDF识别 / 二维码 / 公式识别。

支持批量图片格式识别: jpg, jpe, jpeg, jfif, png, webp, bmp, tif, tiff

支持批量文档格式识别: pdf, xps, epub, mobi, fb2, cbz

官网:https://github.com/hiroi-sora/Umi-OCR/releases/

1.下载安装
bash 复制代码
wget https://github.com/hiroi-sora/Umi-OCR/releases/download/v2.1.3/Umi-OCR_Debian_x64_Paddle_2.1.3.tar.xz
tar xvf ./Umi-OCR_Debian_x64_Paddle_2.1.3.tar.xz
cd Umi-OCR_Debian_x64_Paddle_2.1.3
./umi-ocr.sh

运行出错

Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.

qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""

This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

./umi-ocr.sh: 第 26 行: 259469 已中止 (核心已转储) python3 UmiOCR-data/main_linux.py "$@"

安装依赖包

bash 复制代码
sudo apt install libxcb-xinerama0

注意:umi-oci 程序存放绝对路径里不能有中文,否则也会报上述错误!比如~/下载/Umi-OCR_Debian_x64_Paddle_2.1.3这样包含中文路径名的就不行,重新存放到英文路径名下。

重新运行

识别结果

2.添加桌面快捷方式
bash 复制代码
nano ~/.local/share/applications/umi-ocr.desktop

添加以下内容,执行路径根据自己的路径修改:

bash 复制代码
[Desktop Entry]
Name=Umi-OCR 文字识别
Exec=/home/edsolo/soft/Umi-OCR_Debian_x64_Paddle_2.1.3/umi-ocr.sh
Icon=/home/edsolo/soft/Umi-OCR_Debian_x64_Paddle_2.1.3/docs/images/icon-256.png
Type=Application
Terminal=false

添加执行权限

bash 复制代码
chmod +x ~/.local/share/applications/umi-ocr.desktop

程序就出现在程序菜单栏里了。

3.截屏黑屏问题

在使用 Wayland 显示服务器协议时,截屏时屏幕是黑的,只能截取到纯黑的图像。

修复

切换为XOrg显示服务器:

复制代码
nano /etc/gdm3/custom.conf

找到#WaylandEnable=false,取消#注释,保存,重启电脑。

强烈建议

自带的截图功能不好用,建议安装Snipaste截图工具,自定义区域,快捷方便。

Snipaste 安装 -->:
Snipaste 安装不能使用问题解决

相关推荐
不会就选b18 小时前
Linux之网络基础(二)
linux·运维·网络
benchmark_cc18 小时前
批量获取量化数据时,如何设置合理的超时和重试机制?——QuantDash 高性能实战指南
开发语言·人工智能·python·pandas·量化·quantdash
2601_9669496518 小时前
使用 Pandas 读取批量数据时如何避免内存溢出?QuantDash 量化数据工程师避坑指南
开发语言·python·pandas·tushare·akshare·quantdash
65岁退休Coder18 小时前
LangChain v1.3.4 笔记 - 08 MCP & 相关概念
后端·python·langchain
莫浅子19 小时前
Day 4:USB 2.0 时序与带宽预算
linux·运维·网络
wdloumiga19 小时前
使用 Construct 3零基础做一些2D小游戏
python·游戏·游戏2d
ly768919 小时前
Linux 从入门到实践:系统架构、常用命令、服务管理与故障排查详解
linux·运维·系统架构
用户83562907805119 小时前
使用 Python 查找和替换 Word 文档中的文本
后端·python
小雪崩19 小时前
嵌入式学习 day27:标准IO
linux·c语言·学习
Arnold.Shen19 小时前
Dell Storage SC - 如何发送SupportAssist,并启用安全控制台
linux·安全