Skip to main content

Longleding MRC Engine SDK

Project description

Longleding Operation OCR Engine SDK

Supported Python Versions

Python >= 3.6

Installation

longleding-mrc-engine-sdk is available for Linux, macOS, and Windows.

$ pip install longleding-mrc-engine-sdk

Basic Usage

# -*- coding: utf-8 -*-
import os
os.environ['PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION'] = 'python'
import ocr_engine as oe
import mrc_engine as me


oe.init_service('10.3.1.167:10027', 'demo')
me.init_service('10.3.1.167:10028', 'demo')

ocr_res: str
with open('./f2.jpg', 'rb') as f:
    ocr_res = oe.ocr_with_image(image=f.read())

hospital, doc_type, sub_doc_type = me.ocr_result_classify(ocr_res, "")
print(hospital, doc_type, sub_doc_type)
res = me.ocr_result_matching(ocr_res, hospital, doc_type, sub_doc_type, ['单核细胞计数'])
print(res)

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

longleding-mrc-engine-sdk-0.1.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

longleding_mrc_engine_sdk-0.1.0-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

Details for the file longleding-mrc-engine-sdk-0.1.0.tar.gz.

File metadata

  • Download URL: longleding-mrc-engine-sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.0

File hashes

Hashes for longleding-mrc-engine-sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7ff09e44e68b2dc1215577cfc0019524bfa3dde16c724175644eed4415a3c0d0
MD5 da5d27062a6116d2a2a1b152482540e4
BLAKE2b-256 8dd2079e9b5339566107eb4e348f3d0587669e0689d082705aeed5b2c8dccccf

See more details on using hashes here.

File details

Details for the file longleding_mrc_engine_sdk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: longleding_mrc_engine_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.0

File hashes

Hashes for longleding_mrc_engine_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab10ea7de43e47340ae68f9570911269ee14cc3d5d071f6750e59aa086664f62
MD5 b84b457cb7e005b0e9578fc9b2367f2b
BLAKE2b-256 4be4966762808364d76a5d3898fbacfa0c3e27e56a90aa8b1e934797f1b9377d

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