Skip to main content

Aspose.OCR Cloud SDK

Project description

Aspose OCR Cloud SDK for Python

Aspose OCR Cloud Python SDK is a simple OCR technology, which you can use in your application to convert image to text.

Aspose.OCR Cloud is a simple SDK used to add text recognition to your app with merely a few lines of code.

In detail, it's a set of SDKs for optical character recognition and document scanning in our Cloud. It supports reading and recognizing text from most commonly used raster image formats. Just pass a specific image to the Aspose.OCR Cloud API, and it will return a response with recognized text.

It is easy to get started with Aspose.OCR Cloud, and there is nothing to install. Create an account at Aspose Cloud and get your application information, then you are ready to use SDKs

Release 20.8:

We are glad to introduce this new Python SDK

Features:

  • Automatic skew correction
  • Automatic and manual document layout detection
  • Advanced automated image pre-processing
  • Extract and recognize text from images via OCR
  • Supports multiple international languages
  • High speed with no hardware resources

How to use the SDK?

Our API is completely independent of your operating system, database system, or development language. You can use any language and platform that supports HTTP to interact with our API. However, manually writing client code can be difficult, error-prone, and time-consuming. Therefore, we have provided and support SDKs in many development languages to make it easier to integrate with us.

Examples

from asposeocrcloud.configuration import Configuration
from asposeocrcloud.api.ocr_api import OcrApi
configuration = Configuration(apiKey="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", appSid="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX")
api = OcrApi(configuration)

file_path = r"\your\file\path\5.png"
res = api.post_recognize_from_content(file_path)
print(res.text)

Quickstart

Make your solution using SDK, follow these steps:

1. Get API keys if you haven't

Make a personal account on Aspose Cloud Dashboard and click Get Keys. These keys are useful for all Aspose Cloud products. If you have any trouble, look at this detailed manual.

2. Run Demo

  • Checkout the SDK or get from pip (pip install aspose-ocr-cloud)
  • Set Your AppSid & AppKey
  • Run Python console Demo or UnitTests


Structure

This project includes:

  • Python console demo application - "./demo"
  • Module "asposeocrcloud" - this is SDK located in "./asposeocrcloud". You can integrate it in your application. It contains both OCR and Aspose.Storage API
  • Module "test" - "./test" UnitTest. You can take a look at them to see various code examples.
  • Module "demo" - "./demo" Sample console demo project.
  • Folder "docs" - "./docs" Full documentation for Aspose.OCR SDK in HTML format.

Dependencies


Aspose.OCR Cloud SDKs

.NET & Core Java PHP Ruby Python Node.js Android Objective-C Perl

Resources

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

aspose-ocr-cloud-20.8.1.tar.gz (31.9 kB view hashes)

Uploaded Source

Built Distribution

aspose_ocr_cloud-20.8.1-py3-none-any.whl (61.5 kB view hashes)

Uploaded Python 3

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