semvec/pypi-packages huggingface dataset:
pyclovaocr 1.0
Unofficial Clova AI OCR python wrapper
License: MIT

# pyclovaocr

Unofficial python wrapper for [Clova AI OCR Service](https://clova.ai/ocr)

## Install
```bash
pip install pyclovaocr
```

## Usage

```python
from pyclovaocr import ClovaOCR

ocr = ClovaOCR()

result = ocr.run_ocr(
    image_path='kor_image.jpg',
    language_code='ko',
    ocr_mode='general'
)
print(result) 
'''
{'lines': [{'boundingBox': [[381, 462], [528, 461], [529, 521], [382, 522]],
            'id': 1,
            'wordIDs': [1]},
           {'boundingBox': [[214, 509], [524, 509], [524, 572], [214, 572]],
            'id': 2,
            'wordIDs': [2]}, ...

 'meta': {'domain': 'general',
          'imageSize': {'height': 800, 'width': 564},
          'language': 'ja',
          'version': 'general_rt__v2.2.0'},

 'words': [{'boundingBox': [[381, 462], [528, 461], [529, 521], [382, 522]],
            'confidence': 1.0,
            'id': 1,
            'isVertical': False,
            'text': '岩手山'},
           {'boundingBox': [[214, 509], [524, 509], [524, 572], [214, 572]],
            'confidence': 0.9989,
            'id': 2,
            'isVertical': False,
            'text': 'アトレッセンス'}, ...
'''
```


#### Supported Language Codes

Code | Description
--|--
ko | Korean
ja | Japanese
en | English


#### Supported Language OCR Modes

Modes | Description | Supported Language 
--|--|--
general | General OCR | ko, ja, en
receipt | Receipts | ko, ja, en
credit-card | Credit Cards | ko, ja, en
business-license | Business Licenses | ko
giro | Bills | ko
name-card | Business Cards | ko, ja, en
id-card | ID Cards | ko, ja
invoice | Invoice | ja
DataGun 0.1.2
Data converter
License: MIT
Keywords: datagun,data,transform,transformer,deserialize,serialize

# Deserialization and converting data to the required type using Python tools, for subsequent insertion into the database

![Supported Python Versions](https://img.shields.io/static/v1?label=python&message=>=3.5&color=green)
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/vintasoftware/datagun/master/LICENSE)
[![Downloads](https://pepy.tech/badge/tapi-yandex-metrika)](https://pepy.tech/project/datagun)
<a href="https://github.com/psf/black"><img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-000000.svg"></a>

## Installation
```
pip install datagun
```

## Documentation

## Authors
Pavel Maksimov -
[Telegram](https://t.me/pavel_maksimow),
[Facebook](https://www.facebook.com/pavel.maksimow)

Good luck friend! Put an asterisk;)

Удачи тебе, друг! Поставь звездочку ;)

Copyright (c) Pavel Maksimov.

## Change log