Skip to main content

Turkmen language LSTM model for Tesseract OCR — pip install turkman_ocr

Project description

turkman_ocr

Turkmen language LSTM model for Tesseract OCR

O'zbek tilida: Tesseract OCR uchun Turkman tili LSTM modeli.

O'rnatish

pip install turkman_ocr

Ishlatish

1. Model faylini tessdata papkasiga o'rnatish

import turkman_ocr

# Avtomatik topib o'rnatadi
turkman_ocr.install()

# Yoki yo'lni o'zingiz ko'rsating:
turkman_ocr.install(tessdata_dir=r"C:\Program Files\Tesseract-OCR\tessdata")

2. Model faylining yo'lini olish

import turkman_ocr

path = turkman_ocr.get_model_path()
print(path)  # .../site-packages/turkman_ocr/data/turkman_ocr.lstm

3. Package ma'lumotlari

import turkman_ocr
import pprint

pprint.pprint(turkman_ocr.info())
# {
#   'package': 'turkman_ocr',
#   'version': '0.1.0',
#   'model_size_mb': 3.12,
#   'language': 'Turkmen (tuk)',
#   'engine': 'Tesseract LSTM',
#   'tessdata_dir': 'C:\\Program Files\\Tesseract-OCR\\tessdata',
#   'model_installed': True,
#   ...
# }

4. Tesseract bilan OCR qilish

import turkman_ocr
import pytesseract
from PIL import Image

# Avval o'rnating
turkman_ocr.install()

# Keyin ishlatish
img = Image.open("rasm.png")
text = pytesseract.image_to_string(img, lang="turkman_ocr")
print(text)

5. O'chirish

import turkman_ocr
turkman_ocr.uninstall()

Talablar

Litsenziya

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

turkman_ocr-0.1.1.tar.gz (3.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

turkman_ocr-0.1.1-py3-none-any.whl (3.1 MB view details)

Uploaded Python 3

File details

Details for the file turkman_ocr-0.1.1.tar.gz.

File metadata

  • Download URL: turkman_ocr-0.1.1.tar.gz
  • Upload date:
  • Size: 3.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for turkman_ocr-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b4cad8b444a73a8aac846c0cbf5bdd84f49650a298163db78383ef264f557cb9
MD5 3d5284c10f32eb495487b084ebeb1129
BLAKE2b-256 c75e4256721bb3776973090550169957e8a807c3f079c70af53cd887be0ed4f5

See more details on using hashes here.

File details

Details for the file turkman_ocr-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: turkman_ocr-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for turkman_ocr-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0600c359c16af0819612ea26f22154e4449faae0d91c147ef0d6963274ed3e9f
MD5 2ade0070520137be023e12a7161778f5
BLAKE2b-256 927ab6e0d5f183a14aa06b27b05547ef7de3bf976fcd07fc014b36abb222e744

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page