LoginSignup
3
4

More than 3 years have passed since last update.

WSLにtesseractをインストールする

Posted at

tesseractとは

OCRライブラリ。画像中の文字列を読みだすことができる。

インストール

Windowsネイティブのインストーラもあるが、WSLの場合はLinux同様の手順でaptを使ってインストールできる。

手順にあるtesseract-ocrlibtesseract-devのほかに、日本語を使う場合はtesseract-ocr-jpnも必要。

sudo apt install tesseract-ocr libtesseract-dev tesseract-ocr-jpn

実行手順

これは手順通り。日本語を使う場合は-l jpnとオプションを付ける。

tesseract input.png output -l jpn
3
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
4