actscene-ocr
日本語の各種書類向けに最適化した OCR ライブラリ
インストール
pip install actscene-ocr
使い方
from actscene_ocr import ActsceneOCR
ocr = ActsceneOCR()
# 基本的な使い方(画像パス + max_segment_pixels のみ)
result = ocr.shaken("/path/to/image.jpg")
# 全メソッド一覧
res1 = ocr.shaken_kiroku("/path/to/image.jpg")
# -> {"所有者の氏名又は名称": "", "所有者の住所": "", "自動車登録番号又は車両番号": "",
# "初度登録年月": "", "有効期限の満了する日": "", "車台番号": ""}
res2 = ocr.shaken("/path/to/image.jpg")
# -> {"使用者の氏名又は名称": "", "自動車登録番号又は車両番号": "",
# "初度登録年月": "", "車台番号": ""}
res3 = ocr.recycle("/path/to/image.jpg")
# -> {"預託金額合計": "", "車台番号": ""}
res4 = ocr.jouto("/path/to/image.jpg")
# -> {"譲渡人及び譲受人の氏名又は名称及び住所": ""}
res5 = ocr.jibaiseki("/path/to/image.jpg")
# -> {"車台番号": "", "保険期間至": ""}
res6 = ocr.inkan("/path/to/image.jpg")
# -> {"氏名": "", "住所": ""}
res7 = ocr.inin("/path/to/image.jpg")
# -> {"委任人の氏名又は名称及び住所": ""}
共通引数
image: 画像パス、numpy.ndarray、PIL.Image.Imageのいずれかmax_segment_pixels: セグメントの最大ピクセル数(既定 1,000,000)debug_dir: デバッグ画像の出力先ディレクトリ(省略可)
ライセンス
MIT
Metadata
Release files for actscene-ocr 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| actscene_ocr-0.1.5.tar.gz | 31.2 kB | Without provenance | Details for actscene_ocr-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| actscene_ocr-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for actscene_ocr-0.1.5-py3-none-any.whl |
Total release size: 69.2 kB
Release files / actscene_ocr-0.1.5.tar.gz
| Download URL | actscene_ocr-0.1.5.tar.gz |
|---|---|
| Size | 31.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ce35cd917c7857cd243fee7b5fa67f27b55c4847721f6b5c5f1db98702e3e5eb
|
|
BLAKE2b-256 checksum How to use checksums |
e927f5aa4c11641f2c235ba9a75b68a2155b13a78f8b28b76c90c68000dbf036
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.13
|
Release files / actscene_ocr-0.1.5-py3-none-any.whl
| Download URL | actscene_ocr-0.1.5-py3-none-any.whl |
|---|---|
| Size | 38.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
594590338e0fd6ef0b5ec0139c3b5cecc29b7542616057c9445630a377c689cc
|
|
BLAKE2b-256 checksum How to use checksums |
a0e3afbcda6f657c1922cf84bd23b244ba3856f222b06497ab07f673d6fe6136
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.13
|
Security for actscene-ocr 0.1.5
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.