ubuntu18 安装tesseract ocr
时间: 2023-08-06 10:08:56 浏览: 169
您可以按照以下步骤在Ubuntu 18上安装Tesseract OCR:
1. 首先,您需要安装Leptonica库。您可以通过以下命令安装libleptonica-dev包:
```
sudo apt-get install libleptonica-dev
```
2. 接下来,您需要从GitHub上克隆Tesseract项目。您可以使用以下命令克隆Tesseract项目:
```
git clone https://github.com/tesseract-ocr/tesseract.git
```
3. 进入Tesseract目录:
```
cd tesseract
```
4. 运行以下命令以生成配置文件:
```
./autogen.sh
```
5. 运行以下命令以配置Tesseract:
```
./configure
```
6. 使用make命令编译Tesseract:
```
make
```
7. 使用sudo make install命令安装Tesseract:
```
sudo make install
```
8. 最后,运行sudo ldconfig命令以更新共享库缓存:
```
sudo ldconfig
```
现在,您应该已经成功安装了Tesseract OCR。您可以通过运行以下命令来验证安装:
```
tesseract --version
```
希望这可以帮助到您!\[1\]\[2\]
#### 引用[.reference_title]
- *1* [ubuntu下安装tesseract-ocr](https://blog.csdn.net/weixin_43156734/article/details/102396439)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [在Ubuntu 18.04上安装tesseract 4.1.1](https://blog.csdn.net/u010087338/article/details/124424680)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [Ubuntu18.04LS和windows&Anaconda安装tesserocr](https://blog.csdn.net/weixin_42353109/article/details/81201427)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文