semvec/pypi-packages huggingface dataset:
shift-ocr 0.2.5
Generates text from image
License: MIT
Keywords: data,computer vision,handwritting,doc2text

# shift_ocr

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

# Get Started

``` 
pip install shift_ocr

```

```
import shift_ocr

PATH_TO_WEIGHTS = 'ocr_transformer_rn50_64x256_53str_jit.pt'
PATH_TO_IMAGE = 'test.jpg'
scanner = shift_ocr.Scanner(PATH_TO_WEIGHTS)
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>])

```

the list of avaliable models see [here](https://github.com/constantin50/shift_ocr)