langdetect
Requires large portions of text. It uses non-deterministic approach under the hood. That means you get different results for the same text sample. Docs say you have to use following code to make it determined:
from langdetect import detect, DetectorFactory DetectorFactory.seed = 0 detect('今一はお前さん')
a
не инициализирована, условие цикла while a > eps:
выполняться не будет
https://pillow.readthedocs.io/en/stable/reference/...
https://pillow.readthedocs.io/en/stable/handbook/c...