Skip to main content

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)

Source distribution for actscene-ocr 0.1.5
File Size Uploaded
actscene_ocr-0.1.5.tar.gz 31.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for actscene-ocr 0.1.5
File Interpreter ABI Platform
actscene_ocr-0.1.5-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page