Skip to content

Commit

Permalink
rst readme fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sirfz committed Jun 19, 2021
1 parent a690c52 commit 2d4c4e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -109,18 +109,18 @@ you can try to follow `step by step instructions for Windows 64bit` in `Windows.
.. _Windows.build.md: Windows.build.md

tessdata
=====
========

You may need to point to the tessdata path if it cannot be detected automatically. This can be done by setting the ``TESSDATA_PREFIX`` environment variable or by passing the path to ``PyTessBaseAPI`` (e.g.: ``PyTessBaseAPI(path='/usr/share/tessdata')``). The path should contain ``.traineddata`` files which can be found at https://github.com/tesseract-ocr/tessdata.

Make sure you have the correct version of traineddata for your ``tesseract --version``.

You can list the current supported languages on your system using the `get_languages` function:
You can list the current supported languages on your system using the ``get_languages`` function:

.. code:: python
from tesserocr import get_languages
print(get_languages('/usr/share/tessdata')) # or any other path that applies to your system
Usage
Expand Down

0 comments on commit 2d4c4e4

Please sign in to comment.