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

Uploaded Python 3

File details

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

File metadata

  • Download URL: actscene_ocr-0.1.4.tar.gz
  • Upload date:
  • Size: 31.1 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.4.tar.gz
Algorithm Hash digest
SHA256 4ac835e493c6b3da1e3ca3dc1921b51bcd77757796a2011dce6e9200d3b634aa
MD5 d42e42bfa092a2865b71f55e4eb05939
BLAKE2b-256 0356a20d5de6d760a8acf8e7d632c14f8bd93147b8421ebcc5e9ebf536190988

See more details on using hashes here.

File details

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

File metadata

  • Download URL: actscene_ocr-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b6710b2ae24fff83af0eaf8e75eee9ee4bc3ffa27b92bcf1dc75104632fc2f9b
MD5 2237b6c4ec4d64e2eed32d210c86de38
BLAKE2b-256 8a032dc5b1c31f55178210b5af9a0679f2261b4df27248da191450ecc44c334e

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