Skip to main content

Longleding MRC Engine SDK

Project description

Longleding Operation MRC 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.1.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

  • Download URL: longleding-mrc-engine-sdk-0.1.1.tar.gz
  • Upload date:
  • Size: 6.3 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.1.tar.gz
Algorithm Hash digest
SHA256 bf343cb857c3b66d7a4aac662a61055814d660ca0982b77acea6e2cb2473061f
MD5 f1ba96cc778881e129d2c6ee3c3d2f20
BLAKE2b-256 c020ebe09d65c63d94a36953d4ee0422723be1b2024475ff9c986f5583c5424e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: longleding_mrc_engine_sdk-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 20.8 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5fd948245e22e691d85745ed7513ceb679dcd1717b125d7d7982335b399f02fe
MD5 96f106fc881932197fe64f9b02d2c38b
BLAKE2b-256 08b9ab3a2c0d094e736d212ce384f42ccba219d24920b0e8f80e74ce776c59c9

See more details on using hashes here.

Supported by

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