首页 > 其他分享 >Win11 使用MinGW-w64安装Tesseract

Win11 使用MinGW-w64安装Tesseract

时间:2023-02-07 12:46:45浏览次数:58  
标签:msys2 pacman leptonica MinGW i686 mingw w64 Win11

1. 下载安装mysy2

地址: https://www.msys2.org/

2. 更新软件源

默认的MSYS2 源升级软件或是安装新软件的较慢,这里为了提高速度使用中科大的源

编辑 /etc/pacman.d/mirrorlist.mingw32 ,在文件开头添加:

  1. Server = http://mirrors.ustc.edu.cn/msys2/mingw/i686

编辑 /etc/pacman.d/mirrorlist.mingw64 ,在文件开头添加:

  1. Server = http://mirrors.ustc.edu.cn/msys2/mingw/x86_64

编辑 /etc/pacman.d/mirrorlist.msys ,在文件开头添加:

  1. Server = http://mirrors.ustc.edu.cn/msys2/msys/$arch

(或使用使用清华tuna镜像源,分别修改这三个文件,把“Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/$arch/”放到最前面,保存之。)

 

3.软件安装

# 安装leptonica 32位
pacman -S mingw-w64-i686-leptonica
# 安装leptonica 64位
pacman -S mingw-w64-x86_64-leptonica


# tesseract 32位
pacman -S mingw-w64-i686-tesseract-ocr
# tesseract 64位
pacman -S mingw-w64-i686-tesseract-ocr


4. 卸载软件

pacman -R mingw-w64-i686-tesseract-ocr
pacman -R mingw-w64-i686-leptonica

标签:msys2,pacman,leptonica,MinGW,i686,mingw,w64,Win11
From: https://www.cnblogs.com/zdt168/p/17098001.html

相关文章