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
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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ff09e44e68b2dc1215577cfc0019524bfa3dde16c724175644eed4415a3c0d0 |
|
MD5 | da5d27062a6116d2a2a1b152482540e4 |
|
BLAKE2b-256 | 8dd2079e9b5339566107eb4e348f3d0587669e0689d082705aeed5b2c8dccccf |
Close
Hashes for longleding_mrc_engine_sdk-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab10ea7de43e47340ae68f9570911269ee14cc3d5d071f6750e59aa086664f62 |
|
MD5 | b84b457cb7e005b0e9578fc9b2367f2b |
|
BLAKE2b-256 | 4be4966762808364d76a5d3898fbacfa0c3e27e56a90aa8b1e934797f1b9377d |