Skip to main content

Generates text from image

Project description

shiftlab_ocr

SHIFT OCR is a library fo handwriting text segmentation and character recognition.

Get Started

pip install shiftlab_ocr

import shiftlab_ocr

PATH_TO_IMAGE = 'test.jpg'
scanner = shift_ocr.Scanner(model_name='hw-cyr')
result = scanner.doc2text(PATH_TO_IMAGE)

('Директору Заявление 10 январе 2019г. Ирл Иванов А.П. ',
 [<shift_ocr.crop.Crop at 0x7f158cffd1d0>,
  <shift_ocr.crop.Crop at 0x7f158cffd610>,
  <shift_ocr.crop.Crop at 0x7f158cffd790>,
  <shift_ocr.crop.Crop at 0x7f158cffd8d0>,
  <shift_ocr.crop.Crop at 0x7f158cffdd50>,
  <shift_ocr.crop.Crop at 0x7f158cffd910>])

Also, see Google Colab Demo

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

shiftlab_ocr-0.2-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file shiftlab_ocr-0.2-py3-none-any.whl.

File metadata

  • Download URL: shiftlab_ocr-0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/53.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.6.7

File hashes

Hashes for shiftlab_ocr-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 51722796034ba58e35035b331068c4994015a8cef807f8c5965db586a0a116bb
MD5 995aa65782d12471cb88171914afa702
BLAKE2b-256 3077ea8be6911a7b7d44867aa34507f6fc008037f486bb1a5e2bc7dd33951426

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