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.

Files for longleding-mrc-engine-sdk, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size longleding_mrc_engine_sdk-0.1.1-py3-none-any.whl (20.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size longleding-mrc-engine-sdk-0.1.1.tar.gz (6.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page