Skip to main content

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

longleding-ocr-engine-sdk-0.1.3.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file longleding-ocr-engine-sdk-0.1.3.tar.gz.

File metadata

  • Download URL: longleding-ocr-engine-sdk-0.1.3.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.0

File hashes

Hashes for longleding-ocr-engine-sdk-0.1.3.tar.gz
Algorithm Hash digest
SHA256 cd7a43edbc9f6089b5b8324e8d8bdd1f724520f435a8f5e3e35e4ec40c5158fa
MD5 6ee9b36c894562f30a91f2c925f5610d
BLAKE2b-256 907a083d184e9da034d2e33264724f2de416bfcc82ea68735d8588950654f91a

See more details on using hashes here.

File details

Details for the file longleding_ocr_engine_sdk-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: longleding_ocr_engine_sdk-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 19.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.0

File hashes

Hashes for longleding_ocr_engine_sdk-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e6391da509adfb889ddee01f96b9f57902daacde24dd879e89b03ddfc1bff32d
MD5 bb022baa54960d6b13431c4518bd7664
BLAKE2b-256 8773328637f7375e3a488e29a324d58c8802cafa1f3c926855ff5190d822a975

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page