Skip to main content

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)

Metadata

Release files for longleding-mrc-engine-sdk 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for longleding-mrc-engine-sdk 0.1.1
File Size Uploaded Provenance
longleding-mrc-engine-sdk-0.1.1.tar.gz 6.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for longleding-mrc-engine-sdk 0.1.1
File Interpreter ABI Platform
longleding_mrc_engine_sdk-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 27.2 kB

Release files / longleding-mrc-engine-sdk-0.1.1.tar.gz

Download URL longleding-mrc-engine-sdk-0.1.1.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
bf343cb857c3b66d7a4aac662a61055814d660ca0982b77acea6e2cb2473061f
BLAKE2b-256 checksum
How to use checksums
c020ebe09d65c63d94a36953d4ee0422723be1b2024475ff9c986f5583c5424e
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / longleding_mrc_engine_sdk-0.1.1-py3-none-any.whl

Download URL longleding_mrc_engine_sdk-0.1.1-py3-none-any.whl
Size 20.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5fd948245e22e691d85745ed7513ceb679dcd1717b125d7d7982335b399f02fe
BLAKE2b-256 checksum
How to use checksums
08b9ab3a2c0d094e736d212ce384f42ccba219d24920b0e8f80e74ce776c59c9
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for longleding-mrc-engine-sdk 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page