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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for longleding-mrc-engine-sdk-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf343cb857c3b66d7a4aac662a61055814d660ca0982b77acea6e2cb2473061f |
|
MD5 | f1ba96cc778881e129d2c6ee3c3d2f20 |
|
BLAKE2b-256 | c020ebe09d65c63d94a36953d4ee0422723be1b2024475ff9c986f5583c5424e |
Close
Hashes for longleding_mrc_engine_sdk-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fd948245e22e691d85745ed7513ceb679dcd1717b125d7d7982335b399f02fe |
|
MD5 | 96f106fc881932197fe64f9b02d2c38b |
|
BLAKE2b-256 | 08b9ab3a2c0d094e736d212ce384f42ccba219d24920b0e8f80e74ce776c59c9 |