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.

Files for longleding-ocr-engine-sdk, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size longleding_ocr_engine_sdk-0.1.3-py3-none-any.whl (19.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size longleding-ocr-engine-sdk-0.1.3.tar.gz (5.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page