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.3.tar.gz (31.0 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.3-py3-none-any.whl (38.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: actscene_ocr-0.1.3.tar.gz
  • Upload date:
  • Size: 31.0 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.3.tar.gz
Algorithm Hash digest
SHA256 3558d327888ed95387ae5ca07b8a220f4ab63598f20a5af595781aab8be2f264
MD5 761c032e451eba373b325e0e984b11f1
BLAKE2b-256 cd953df0711113af641f72427e9a6161d8aaf2505b375e743c3d70b250faa7fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: actscene_ocr-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 38.0 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fd15f5a5a4af7f018ff93d2c32a1801ffb86b6e1fb916c187c12e63f8d25010e
MD5 551fdb13170227464a5aebe3e99c9ff1
BLAKE2b-256 7a9d3c9ad199ed4a2bb2f8bb9258fb6dda60218491fc44e84320acbb6c670cd4

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