How to use the pyocr.tesseract function in pyocr

To help you get started, we’ve selected a few pyocr examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github openpaperwork / pyocr / tests / tests_tesseract.py View on Github external
def test_langs(self):
        langs = tesseract.get_available_languages()
        self.assertTrue("eng" in langs,
                        ("English training does not appear to be installed."
                         " (required for the tests)"))
        self.assertTrue("fra" in langs,
                        ("French training does not appear to be installed."
                         " (required for the tests)"))
        self.assertTrue("jpn" in langs,
                        ("Japanese training does not appear to be installed."
                         " (required for the tests)"))
github openpaperwork / pyocr / tests / tests_tesseract.py View on Github external
def test_can_detect_orientation(self):
        self.assertTrue(tesseract.can_detect_orientation())
github openpaperwork / pyocr / tests / tests_tesseract.py View on Github external
def set_builder(self):
        self._builder = tesseract.CharBoxBuilder()