pyclovaocr
Unofficial python wrapper for Clova AI OCR Service
Install
pip install pyclovaocr
Usage
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 |
Metadata
Release files for pyclovaocr 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyclovaocr-1.0-py3-none-any.whl | Python 3 | none | any | Details for pyclovaocr-1.0-py3-none-any.whl |
Release files / pyclovaocr-1.0-py3-none-any.whl
| Download URL | pyclovaocr-1.0-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
68b06f1e8906cdbb13967653421ac624857af9f9ad54aecef59d41a727d956c1
|
|
BLAKE2b-256 checksum How to use checksums |
c7310fa07300b0d0b545ed6d30c9745f66933a2d46f7ee2b9fc16352131763e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.8.8
|
Security for pyclovaocr 1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.