tesseract-ocrHow do I install Tesseract OCR on Ubuntu?
- Install Tesseract OCR on Ubuntu by using the following command:
sudo apt-get install tesseract-ocr
- After the installation is complete, you can check the version of Tesseract OCR installed by using the following command:
tesseract --version
Output example
tesseract 4.1.0-rc2
- You can also use the Tesseract OCR command line tool to recognize text from images by using the following command:
tesseract image.png output
- To install the Tesseract OCR language data, use the following command:
sudo apt-get install tesseract-ocr-[language]
Replace [language] with the language data you want to install.
- To use the language data, use the following command:
tesseract image.png output -l [language]
Replace [language] with the language data you want to use.
-
If you want to install additional language data, you can download the language data from the Tesseract OCR GitHub repository.
-
After downloading the language data, copy it to the
/usr/share/tesseract-ocr/4.00/tessdata
folder.
Helpful links
More of Tesseract Ocr
- How do I add Tesseract OCR to my environment variables?
- How can I use tesseract ocr portable to recognize text in images?
- How can I use Tesseract to perform zonal OCR?
- How do I use Tesseract OCR to extract text from a ZIP file?
- How can I use Tesseract OCR to recognize handwritten text?
- How can I use Tesseract OCR with Xamarin?
- How can I determine which file types are supported by Tesseract OCR?
- How do I integrate tesseract OCR into a Qt application?
- How do I install and use language packs with Tesseract OCR?
- How can I use Tesseract OCR to scan a QR code?
See more codes...