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 安装不能使用问题解决

相关推荐
GL_Rain17 分钟前
快速搭建Halo博客 + 崩溃秒恢复方案(Docker极简部署)
运维·docker·容器
不做无法实现的梦~21 分钟前
Linux 上使用 CLion 开发嵌入式,并用 Codex CLI
linux·运维·服务器
张32339 分钟前
Ansible拆分大型Playbook
linux·ansible
步辞1 小时前
Go语言怎么用channel做信号通知_Go语言channel信号模式教程【完整】
jvm·数据库·python
Ulyanov1 小时前
《PySide6 GUI开发指南:QML核心与实践》 第一篇:GUI新纪元——QML与PySide6生态系统全景
开发语言·python·qt·qml·雷达电子对抗
曲幽1 小时前
FastAPI + SQLAlchemy 2.0 通用CRUD操作手册 —— 从同步到异步,一次讲透
python·fastapi·web·async·sqlalchemy·session·crud·sync·with
Dxy12393102161 小时前
Python 如何使用 XPath 定位元素:从入门到实战
python
用户8356290780511 小时前
Python 设置 PowerPoint 文档属性与页面参数
后端·python
勤自省1 小时前
《RDK X5 ROS 2 Humble 安装与验证:从零到 Hello World》
windows·ubuntu·ssh·ros2
weixin_424999361 小时前
mysql行级锁失效的原因排查_检查查询条件与执行计划
jvm·数据库·python