Skip to main content

Actscene OCR: 日本語書類向けの包括的OCRパイプライン (PaddleOCRベース)

Project description

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.ndarrayPIL.Image.Image のいずれか
  • max_segment_pixels: セグメントの最大ピクセル数(既定 1,000,000)
  • debug_dir: デバッグ画像の出力先ディレクトリ(省略可)

ライセンス

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

actscene_ocr-0.1.5.tar.gz (31.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

actscene_ocr-0.1.5-py3-none-any.whl (38.1 kB view details)

Uploaded Python 3

File details

Details for the file actscene_ocr-0.1.5.tar.gz.

File metadata

  • Download URL: actscene_ocr-0.1.5.tar.gz
  • Upload date:
  • Size: 31.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.13

File hashes

Hashes for actscene_ocr-0.1.5.tar.gz
Algorithm Hash digest
SHA256 ce35cd917c7857cd243fee7b5fa67f27b55c4847721f6b5c5f1db98702e3e5eb
MD5 0cff1cab7b61e201f69ab020df4c734f
BLAKE2b-256 e927f5aa4c11641f2c235ba9a75b68a2155b13a78f8b28b76c90c68000dbf036

See more details on using hashes here.

File details

Details for the file actscene_ocr-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: actscene_ocr-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 38.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.13

File hashes

Hashes for actscene_ocr-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 594590338e0fd6ef0b5ec0139c3b5cecc29b7542616057c9445630a377c689cc
MD5 8da08e76e618f0bfd37c07618e294c10
BLAKE2b-256 a0e3afbcda6f657c1922cf84bd23b244ba3856f222b06497ab07f673d6fe6136

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page