Longleding OCR Engine SDK
Project description
Longleding Operation OCR Engine SDK
Supported Python Versions
Python >= 3.6
Installation
longleding-ocr-engine-sdk is available for Linux, macOS, and Windows.
$ pip install longleding-ocr-engine-sdk
Basic Usage
# -*- coding: utf-8 -*-
import ocr_engine
ocr_engine_endpoint = "localhost:80"
ocr_engine_src = "demo"
ocr_engine.init_service(endpoint=ocr_engine_endpoint, src=ocr_engine_src)
if __name__ == '__main__':
print(ocr_engine.ocr_with_image_oss_path('upload/some_image.jpg'))
print(ocr_engine.ocr_with_image_url('https://some.domain.com/some_image.jpg'))
with open('some_image.jpg', 'rb') as f:
img = f.read()
print(ocr_engine.ocr_with_image(img))
Project details
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-ocr-engine-sdk-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1722f15d599c3bb0c5fdf97e17bfd62c05f37edd9296caa81285b3678d46ab76 |
|
MD5 | 98faca9e790525f506e67c50812f736e |
|
BLAKE2b-256 | cf711c930aa7efce2bc1ef722ff621b81cf7cc725caa9d254b033131dc68fcba |
Close
Hashes for longleding_ocr_engine_sdk-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15c4f7001d5f633379b2cb26e8ea92db495e39f637a799fd8dccbdb5e07c5dd9 |
|
MD5 | 4cfcda535e8256246983e6b7cec72c82 |
|
BLAKE2b-256 | e7bcbd9f7200bdfdd7726f54780aa6f92c7c9c5fc40653da24cbc7ec13f17b96 |