semvec/pypi-packages huggingface dataset:
longleding-mrc-engine-sdk 0.1.1
Longleding MRC Engine SDK
Requires Python: >=3.6

Longleding Operation MRC Engine SDK

# Supported Python Versions

Python >= 3.6

# Installation

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

```shell script
$ pip install longleding-mrc-engine-sdk
```

# Basic Usage

```python
# -*- 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)

```