Can you send an example of an input document and the output of tesseract as
well of what should be your expectation using the pattern file.

Le jeu. 29 févr. 2024 à 21:40, Roman Seidel <roman.seide...@gmail.com> a
écrit :

> Hi all,
>
> I am currently try to use user-patterns on the PyTessBaseAPI from
> tesserocr [1].
>
> What I've done is to initialize the API with:
>
> with PyTessBaseAPI(path='/usr/share/tesseract-ocr/4.00/tessdata', lang=
> LANGUAGE, psm=int(psm), oem=int(TOEM)) as api:
>
> setting the user patterns file with:
>
> api.SetVariable('user_patterns_file',
> '/home/roman/Dev_d/playground/user_patterns/deu.patterns')
>
> Where the user patterns file contains a pattern, e.g.:
>
> \A\A\A
>
> (which means three characters in capital letters.
>
>
> The result, independently ,whether I use the user_patterns_file argument
> or not, are the same. This brings me to the question if tesserocr supports
> user (and word) patterns?
>
> My versions:
>
> tesserocr 2.6.2
> tesseract 5.3.3
>  leptonica-1.83.1
>   libpng 1.6.34 : zlib 1.2.11
>
> Thanks a lot for your help and best wishes,
> Roman
>
>
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "tesseract-ocr" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to tesseract-ocr+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tesseract-ocr/767cc60f-5325-43d7-a6ef-9cf879f82950n%40googlegroups.com
> <https://groups.google.com/d/msgid/tesseract-ocr/767cc60f-5325-43d7-a6ef-9cf879f82950n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tesseract-ocr+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/CAPJAo_ok%2BQec6cJ1fxfb5NOqLVr8MAovZMNdXT-N3QS3di%2B%3Dng%40mail.gmail.com.

Reply via email to